I hava an unordered List navigation and i wanted to transform this to JSF code.
Actually , there is no JSF tag ..
Here is the raw-HTML Navigation :
<ul id="navbar">
<li id="articles"><a href="Link1">Articles</a></li>
<li id="topics"><a href="Link2" title="Topics">Topics</a></li>
....
</ul>
..so what should i do ?
One way to do ad-hoc templating is to use Facelets instead of JSPs. Since these have become part of JSF 2.0 (due in JEE6), I think it is a good time to consider them.
For example, for the beans:
…and:
…defined in session scope:
…can be used in this Facelet page:
…to produce this output:
If you are sticking with JSPs, there isn’t anything in the core implementation that will let you do this (the only repeating control is the dataTable). You may find something in one of the 3rd party component libraries.