• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Issue with jstl + facelets

 
Ranch Hand
Posts: 384
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.>
 
Saloon Keeper
Posts: 27752
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 27752
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic