This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes JSF and the fly likes Rendering the command link based on the value of the hidden variable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Rendering the command link based on the value of the hidden variable" Watch "Rendering the command link based on the value of the hidden variable" New topic
Author

Rendering the command link based on the value of the hidden variable

Kanav Khajuria
Greenhorn

Joined: Mar 16, 2009
Posts: 2
Hi,

Can we render a command link based on the value of the hidden variable.
if yes how can we do it?

thanks

kanav
Sib Pete
Greenhorn

Joined: Apr 27, 2009
Posts: 26
I am guessing you could set the "rendered" property to some method of the backing bean that reads the hidden field. So you would have something like:

<jsf:component id="someId" rendered="#{ManagedBean.methodThatReadsHiddenField}"/>
 
Don't get me started about those stupid light bulbs.
 
subject: Rendering the command link based on the value of the hidden variable