jsf - All tabs of tabpanel refreshed, when event happens in any one of the tab (Richface 3.3.4) -
we have tabpanel
has multiple tabs. when event performed in of tabs (e.g. click 'ajaxsubmit' button in tab1) tabs refreshed causing performance issues (e.g. getter of 'table' value invoked tab3).
we tried wrap content of each tab in <a4j:region>
, getters of components in tab3 still invoked.
please find sample code snippet below:
<r:tabpanel id="tabworkingpanel" styleclass="ottmcontainer" selectedtab="#{tabhandlerbean.activetab}"> <rich:tab id="tab1"> <h:commandbutton value="ajaxsubmit"/> </rich:tab> <rich:tab id="tab2" /> <rich:tab id="tab3"> <rich:datatable id="table" value="#{bean.somevalue}">...</rich:datatable> </rich:tab> </r:tabpanel>
i think should using rerender
relevant tabs refreshed. think should wrap contents of each tab in form not submitted on each submit, though perhaps that's trying region
. read documentation make sure you're using these correctly.
i have not used richfaces, i'm not positive work, similar approach works primefaces.
balusc's description of process
, update
may useful. he's discussing primefaces, think same concepts apply.
Comments
Post a Comment