• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Accessing scriplet value with jsf?

 
E Paisley
Greenhorn
Posts: 14
  • 0
  • 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
Saloon Keeper
Pie
Posts: 17646
39
Android Eclipse IDE Linux
  • 0
  • 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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic