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 problem is, 
when the rendered attribute is set, JSF doesn't call the action method in the 
backing bean. When I delete the rendered property, it works fine (but the 
button is visible all the time).

What's wrong?

Here's my button's code:

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

thnx,

--
Norbert Csík

Reply via email to