Hi Angelo!
>        <h:panelGroup rendered=" #{consulta.id <http://consulta.id> !=
> null}">
>                <h:commandButton id="newButton1"
> action="marcacaoConsulta " 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