I've found that I have been able to do everything I have wanted using jsf. You can "include" a bullet list in another page by doing something like this:

        <h:outputText value="<ul><li>#{index.HomePageText3}</li>
                <li>#{index.HomePageText4}</li>
                <li>#{index.HomePageText5}</li>
                <li>#{index.HomePageText6}</li>
                <li>#{index.HomePageText7}</li>
                <li>#{index.HomePageText8}</li></ul>" escape="false"/>

Carl


Simon Kitching wrote:
I'm talking about stuff like:
<ul>
  <li><h:outputText value="#{somebean.item1}"/>
  <li><h:outputText value="#{somebean.item2}"/>
</ul>

which will render normally if the page it is in is the one redirected to by the jsf navigation. But if it's a page *included* into another, eg by using Tiles then you get:

item1text
item2text
<ul>
  <li>
  <li>
</ul>
(or maybe it's the html first; I forget).


Even &nbsp; will cause you problems. I bet if you "view source" on the generated pages, you'll find that the &nbsp; isn't in the place you expected it to be. Of course if it's just occasional usage you can work around that with:
  <h:outputText escape="true" value="&nbsp;"/>
That workaround quickly becomes unmanageable though for cases like the list above.

Regards,

Simon


Reply via email to