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 
condition is true. The problem is that, when I click on the button (at this 
time the condition is true, 'cause I can click on the button) nothing happens.

CASE 1:

<h:commandButton
      value="#{globalBundle.deleteButtonLabel}"
      action="#{UserBean.delete}"
      rendered="#{UserBean.userCode != ''}"
/>

The button is only visible when the condition is true, but when I click on it, 
nothing happens (the action isn't called). This is my problem.

CASE 2:

<h:commandButton
      value="#{globalBundle.deleteButtonLabel}"
      action="#{UserBean.delete}"
/>

The button is always visible, and the action is called when I click on the 
button.


--
Norbert Csík

Reply via email to