Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Passing parameters to a backing bean method

843842May 16 2005 — edited Oct 7 2006
Hi all,

I�m trying to do the following :

Pass a parameter to a backing bean method that will return true or false to the rendered property of a commandButton component.

I need something like this :

<h:commandButton rendered="#{SecurityBean.rendered('123')}" id="cmdInsert" action="#{UserBean.saveUser}" value="#{messages.button_insert}" />

Where 123 is the code that i need to get in the Backing Bean method to consult if the user has access to this button.

I tried to use the f:param tag but does not work, any idea??

Thanks
Rogerio
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 4 2006
Added on May 16 2005
14 comments
643 views