-
1. Re: Rendered attribute on commandButton breaks action
nbelaevski Jul 14, 2010 5:54 PM (in response to daxxy)Hi Tanya,
For JSF components "rendered" attribute is checked several times: it is processed either on rendering, as on postback processing. So, for your case it looks like "editPageMode" has request lifetime, and on the postback when "op1" link is clicked, its "rendered" expression is evaluated to false, thus link is not processed and action doesn't happen.
-
2. Re: Rendered attribute on commandButton breaks action
daxxy Jul 15, 2010 6:50 AM (in response to nbelaevski)Thanks for replying Nick.
The problem is not that the component is not rendering -- the component is rendering. Therefore editPageMode must be evaluating to true. The problem is that the action is not firing when the component is rendered.
Can you duplicate this problem?
PS I tried expanding the scope of this context variable and the pageBean component to CONVERSATION and it did not help.
-
3. Re: Rendered attribute on commandButton breaks action
nbelaevski Jul 15, 2010 7:06 AM (in response to daxxy)Can you please try with session-scoped variable?
-
4. Re: Rendered attribute on commandButton breaks action
daxxy Jul 15, 2010 7:09 AM (in response to nbelaevski)Hey! That works!
Thanks, Nick.
-
5. Re: Rendered attribute on commandButton breaks action
raja4web Jan 26, 2011 10:02 AM (in response to daxxy)Hi,
I m newbie to richfaces. and i am facing the same problem.
I have two commandbuttons with same action, but rendered attribute has alternate values for both buttons. the buttons are rendered as they should. but the action is not called. When i remove the rendered attribute, the action is called then. So far i am unable to find any solution for that.
Please help
thanks in advance.
Raja
-
6. Re: Rendered attribute on commandButton breaks action
ilya40umov Jan 26, 2011 11:54 AM (in response to raja4web)To Mudassar,
Please, create a new discussion and provide a sample code.
-
8. Re: Rendered attribute on commandButton breaks action
raja4web Feb 15, 2011 4:07 AM (in response to nbelaevski)Thanks, the problem was with scope of the object.