Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

<li> around outputtext

 
Frank Jacobsen
Ranch Hand
Posts: 358
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In html i would have written li around the text, but what do i do i jsf, i have tried many things but i dident find the right solution ?

Frank

 
Tim Holloway
Saloon Keeper
Pie
Posts: 18277
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
4 possible solutions, but nothing I know of is guaranteed 100%:

1. Use the <ul> and <li> tags in the traditional way but quote them using <f:verbatin>.

2. Stuff the HTML in by brute force and depend that the implementation of JSF and supporting framework, if any (e.g.: Facelets) will pass them through.

3. Implement a custom JSF tag definition that has an HTML renderer that creates bulleted items (cleanest approach, but it's more work).

4. Define CSS styles for the displayed are that do the bulleting in CSS.
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you're using JSF 1.2, just do it as you want.
If you're still at 1.1 or older, then you indeed have to wrap it with f:verbatim.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic