Hi!
I've worked out a solution for my problem (see the attachments for
details). The problem was when I clicked on the delete button nothing
happend, the original page rerendered but the delete method never
invoked.
The problem was that when I clicked the delete button the JSF checked
the
}/
- Original Message -
From: Csík Norbert [EMAIL PROTECTED]
To: Myfaces users users@myfaces.apache.org
Sent: Wednesday, April 27, 2005 5:54 AM
Subject: Re: commandButton's action vs rendered
Hi!
I've worked out a solution for my problem (see the attachments for
details). The problem was when
Hi!
I have a h:commandButton with a simple action in the backing bean. It's a
delete button, so it should be visible if there is a row in the backing bean
(ie. the code of the row exists). I use the rendered attribute of the
commandButton to decide wether or not to display the component. The
Have you tried somthing like
rendered=#{UserBean.shouldButtonBeVisible}
?
That was that what Heath was meaning... I guess
Csk Norbert wrote:
Sorry, maybe I wasn't clear enough. When the rendered property is set as
in the example below, the button renders correctly. It is on the page
when the
yes. the only difference between the two cases is the existence of the rendered
property.
Slawek rta:
sure that in case 1 your button is inside somme form?:P
thats my favorite bug;)
slawek
Yes I've tried, but nothing happend. The button is still does nothing.
The action method is uncalled.
ok...
please test
private boolean shouldButtonBeVisible = false;
set / is method
and then use:
rendered=#{UserBean.shouldButtonBeVisible}
Csk Norbert wrote:
yes. the only difference between the two cases is the existence of the
rendered property.
Slawek rta:
sure that in case 1 your button is
I've made a property named loaded (boolean type, with set/is methods), and
the result was the same: the button rendered as I expected (rendered when the loaded is
true, not rendered when it is false), but a click on the button has no effect, the
referenced method in the backing bean didn't
yes. the only difference between the two cases is the existence of the rendered
property.
Slawek rta:
sure that in case 1 your button is inside somme form?:P
thats my favorite bug;)
slawek
Yes I've tried, but nothing happend. The button is still does nothing.
The action method is uncalled.
8 matches
Mail list logo