i think that's the problem , but i cannot make a solution... i think that t:saveState is conflict with Seam... and when the button is rendered the conversation is End, so when i press the button the consulta dont exist...



On 9/28/06, Mario Ivankovits <[EMAIL PROTECTED]> wrote:
Hi Angelo!
>        <h:panelGroup rendered=" #{consulta.id <http://consulta.id> !=
> null}">
>                <h:commandButton id="newButton1"
> action="" " value="New" style="margin-top: 5px;"
> immediate="true"/>
>        </h:panelGroup>
>
You have to ensure that the " consulta.id != null" is true, even if the
user pressed the button. It is not sufficient to just render the button,
JSF will not fire the action if the button is not rendered.
In other words "consulta.id != null" has to be true even between
multiple requests (as long as you would like to do something with the
button)

There are different ways to achieve this, one is, to save the bean (in
your case "conulta") for the next request using t:saveState

Ciao,
Mario


Reply via email to