1 Reply Latest reply on Dec 12, 2011 9:48 AM by pvito

    commandLink/param: how to prevent escape value

    javatwo

      <a4j:commandLink  ...

            value="#{bean.commandName}" />

       

      <h:commandButton  ...

            value="#{bean.commandName}" />

       

      <f:param name="content" value="#{bean.content}"/>

       

      when the values are UTF-8 chinese characters, they are escaped.

      When I open source view from IE or Firefox browser, they are seen as like:

      &#25687;&#31585;&#25516;&#28377;

       

      however, there is no problem showing chinese chars on web pages.

       

      But our customers like them to be chinese characters in source view.

       

      Is there a way to prevent value(chinese characters in UTF-8) from being escaped?

       

      Thanks for help.

      Dave