tags:

views:

119

answers:

2

Hi I need to implement a unordered list in jsf - just wondering if I have to create a custom tag for this ? I have tried using but it is currently falling outside of the jsf component tree. Cheers

A: 

very crude - i know but just settled for the good old tag e.g. <f:verbatim><ul></f:verbatim> <f:verbatim><li></f:verbatim>Lorem ipsum dolor sit amet<f:verbatim></li></f:verbatim> <f:verbatim><li></f:verbatim>Lorem ipsum dolor sit amet<f:verbatim></li></f:verbatim> <f:verbatim><li></f:verbatim>Lorem ipsum dolor sit amet<f:verbatim></li></f:verbatim> <f:verbatim><li></f:verbatim>Lorem ipsum dolor sit amet<f:verbatim></li></f:verbatim> <f:verbatim><li></f:verbatim>Lorem ipsum dolor sit amet<f:verbatim></li></f:verbatim> <f:verbatim></ul><f:verbatim>

jonathan p
A: 

You don't have to embed every start tag, inner text, and end tag in a distinct <f:verbatim>. You can simply do this:

<f:verbatim>
<ul>
 <li>foo</li>
 <li>bar</li>
 <li>baz</li>
</ul>
</f:verbatim>

Alternatively you can use Facelets which handles interleaving of JSF and HTML tags like a charm.

Hope this helps.

Bytecode Ninja