i has the following problem:
I am new to JSF2 and in it.
I have a table on the page that will be filled with information after the user enters the row and clicks CommandButton. After clicking the button, I want it to be disabled before processing is complete.
To disable CommandButton, I do the following:
<p:commandButton update=":outPanel" widgetVar="btnSend" id="btnsend" value="Calcular" actionListener="#{calcBean.getTrfs}" onclick="btnSend.disable()" oncomplete="btnSend.enable()" />
And then I have a panel where I want to show its contents:
<p:panel id="outPanel" widgetVar="outpanel"> #{calcBean.result} </p:panel>
How to hide this panel when the page loads for the first time?
How can I hide it when I press CommandButton, and only show it again if processing in my bean is successful?
Thanks.
source share