The action methodBinding is only executed when that button is clicked.
Obviously, if its not rendered, then it won't ever be clicked.
However, there is a limit to what you can put into the EL for your
rendered attribute, and I think you're outside that limit. Just bind
the rendered property to a boolean getter on your backing bean, and
then you can do whatever you want in Java code.
On Thu, 31 Mar 2005 18:52:09 +0200, Cs�k Norbert <[EMAIL PROTECTED]> wrote:
> 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
>
--
-Heath Borders-Wing
[EMAIL PROTECTED]