You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by Apache Wiki <wi...@apache.org> on 2006/02/11 19:42:34 UTC

[Myfaces Wiki] Update of "Tiles and JSF" by Pedro Rosón Fernández

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Myfaces Wiki" for change notification.

The following page has been changed by Pedro Rosón Fernández:
http://wiki.apache.org/myfaces/Tiles_and_JSF

The comment on the change is:
Minor addition to Out-of-order problems when mixing template text and JSF tags.

------------------------------------------------------------------------------
  Currently the only solution is to ensure that all output from the included page is generated by JSF tags. This means wrapping all
  plain text in <f:verbatim> tags, or using the [http://jsftutorials.net/htmLib/ htmlib JSF library] (though that can have performance implications).
  
+ If <f:verbatim> tag doesn't work you can use <h:outputText> tag to generate the plain text (with "escape="false"" or chars like '<' or '>' became &lt and &gt). Example (generating <pre> </pre>):
+ {{{
+   	<h:outputText value="<pre>" escape="false"/> 
+ <h:outputText value="#{DocBacker.document}"/>
+ 	<h:outputText value="</pre>" escape="false"/>
+ }}}
+ 
  Note that this is a different issue than the one which causes out-of-order problems when mixing JSF and non-JSF content within a JSF component which renders its children (eg a Panel).