KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have a question. Is that possible to update two components at a time? I am trying a code like this: <h:panelGroup id="pickList"> <p:panel rendered="#{customCalender.visible}" widgetVar="searchTableBox"> //Some codes..... <p:commandButton value="Cancel" update="pickList" actionListener="#{customCalender.closeList}" style="background:#25A6E1;color:red;font-family:'Helvetica Neue',sans-serif;font-size:10px;border-radius:4px;" /> <p:commandButton value="Save" update="custDataTablePanel" actionListener="#{customCalender.saveTargetList}" style="background:#25A6E1;color:red;font-family:'Helvetica Neue',sans-serif;font-size:10px;border-radius:4px;"/> </p:panel> </h:panelGroup> .... ..... <h:panelGroup id="custDataTablePanel"> <p:panel rendered="#{customCalender.dataTableVisible}"> .. .. </p:panel> </h:panelGroup> Now I want when I click on the Save button it hides the <h:panelGroup id="pickList"> and displays the <h:panelGroup id="custDataTablePanel"> so I have two boolean values to control their visibility. but I need to update two of these panels. One I did with update="custDataTablePanel" it displays the data table after the button click.(in the method saveTargetList I updated the visibility of the custDataTablePanel to true.) but cant manage to hide the panel pickList . So I was wandering is there any way to hide and show these two panels in one button click. Please suggest.
Tags (comma-separated)
Save Edits
Cancel