|Referencing Bean values in JSF page [message #663842]
||Wed, 06 April 2011 11:45
Registered: May 2010
[New to JSF, so apologies if too basic or explained badly]|
I have a Session scoped managed bean (A) that is populated from a form with selectOneMenu items. On submit, the controller Bean (B) routes based on the categories chosen by the user.
The target page must display one or more graphs depending on variables contained in the session bean A. But the URL of the chart or graph depends on variables in Bean A. In some cases one chart is needed, in other cases several. So I need to conditionally include code on this .xhtml page, and somehow create the appropriate URL for the charts.
I can't get the syntax to make a URL like:
A.index = 5
I need a URL like: "chart-3/"+A.index+"/1.html" to be inserted.
Thanks for any help.
Powered by FUDForum
. Page generated in 0.01575 seconds