• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Issue with jstl + facelets

 
Julien Martin
Ranch Hand
Posts: 384
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I am trying to obtain a dynamic menu. I have the following xhtml facelets pages:

menu.xhtml


and in my home page:



The unexpected result is as follows: the contents of both <c:when... and ><c:otherwise is displayed!!!

Can anyone please help?

Thanks in advance,

J.>
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18154
52
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSTL does not work well with JSF, facelets or not.

There are some very nice JSF Menu components out there, however. For example: http://livedemo.exadel.com/richfaces-demo/richfaces/dropDownMenu.jsf
 
Julien Martin
Ranch Hand
Posts: 384
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Tim,
I eventually found a solution: that is using the <h:panelGroup with only the rendered attribute. Thus I have no ><span or ><div in my html.
Regards,
J.>
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18154
52
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually, I recommend little or no actual HTML. JSF tags can generally do everything you need. Sometimes it can be a little awkward, but you'll be in better shape in case you need to adapt the app for a non-HTML platform some day.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic