Re: commandButton's action vs rendered

2005-04-27 Thread Csík Norbert
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

Re: commandButton's action vs rendered

2005-04-27 Thread Rob Decker
}/ - 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

commandButton's action vs rendered

2005-03-31 Thread Csk Norbert
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

Re: commandButton's action vs rendered

2005-03-31 Thread Matthias Wessendorf
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

Re: commandButton's action vs rendered

2005-03-31 Thread Csík Norbert
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.

Re: commandButton's action vs rendered

2005-03-31 Thread Matthias Wessendorf
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

Re: commandButton's action vs rendered

2005-03-31 Thread Csík Norbert
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

Re: commandButton's action vs rendered

2005-03-31 Thread Csík Norbert
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.