• 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
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

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: 28102
198
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: 28102
198
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.
 
joke time: What is brown and sticky? ... ... ... A stick! Use it to beat this tiny ad!
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic