Only 48 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Accessing scriplet value with jsf?  RSS feed

 
E Paisley
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have the scriplet below at the top of a JSF page. How can I access the reportLocation variable inside of a JSF link element? I guess what I'm asking is what is the JSF syntax to access the reportLocation variable?

 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might want to check my reply to David Salaete: http://www.coderanch.com/t/214714/JSF/java/Calling-managed-bean-method-parameters

It's not one of my clearest explanations, but the short message is "You shouldn't code logic on JSF pages". Put the value in a backing bean, then reference the backing bean.

Your question where you're using JSTL in JSF has the same answer. JSTL doesn't work that well with JSF.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!