-
1. Re: rich:extendedDataTable firing dataModel unnecessarily
ilya_shaikovsky Jun 9, 2010 2:12 AM (in response to ptilsworth)I've also attempted using the "limitToList" option as well but with no luck.
It's official solution. if you using limittolist=true on control - dataTable should not call for model on requests from the control. So please show your code if it's fails for you.
Also you could check the second workaround with region - but it's not really convenient for all the cases.
-
2. Re: rich:extendedDataTable firing dataModel unnecessarily
ptilsworth Jun 9, 2010 3:00 PM (in response to ilya_shaikovsky)here's the code:
<rich:tabPanel switchType="ajax" selectedTab="#{bean.selectedTab}" id="tabPanel" > <rich:tab id="tab1" label="First" limitToList="true" reRender="dt1"> <h:form id="f1"> <rich:extendedDataTable id="dt1" value="#{bean.capitals1}" var="cap1" > <rich:column> <h:outputText value="#{cap1.name}" /> </rich:column> </rich:extendedDataTable> </h:form> </rich:tab> <rich:tab id="tab2" label="Second" limitToList="true" reRender="dt2" > <h:form id="f2"> <rich:extendedDataTable id="dt2" value="#{bean.capitals2}" var="cap2" > <rich:column> <h:outputText value="#{cap2.name}" /> </rich:column> </rich:extendedDataTable> </h:form> </rich:tab> <rich:tab id="tab3" label="Third" name="tab3" limitToList="true" reRender="f3" > <h:form id="f3"> This is the third tab </h:form> </rich:tab> </rich:tabPanel>
<rich:tabPanel switchType="ajax" selectedTab="#{bean.selectedTab}" id="tabPanel" > <rich:tab id="tab1" label="First" limitToList="true" reRender="dt1"> <h:form id="f1"> <rich:extendedDataTable id="dt1" value="#{bean.capitals1}" var="cap1" > <rich:column> <h:outputText value="#{cap1.name}" /> </rich:column> </rich:extendedDataTable> </h:form> </rich:tab> <rich:tab id="tab2" label="Second" limitToList="true" reRender="dt2" > <h:form id="f2"> <rich:extendedDataTable id="dt2" value="#{bean.capitals2}" var="cap2" > <rich:column> <h:outputText value="#{cap2.name}" /> </rich:column> </rich:extendedDataTable> </h:form> </rich:tab> <rich:tab id="tab3" label="Third" name="tab3" limitToList="true" reRender="f3" > <h:form id="f3"> This is the third tab </h:form> </rich:tab> </rich:tabPanel>
sample output:
setSelectedTab = tab1 getCapitals1()getCapitals2()getCapitals1()getCapitals2() setSelectedTab = tab2 getCapitals1()getCapitals1()getCapitals2()getCapitals2()getCapitals1() setSelectedTab = tab3 getCapitals1()getCapitals2()getCapitals1()getCapitals2()
-
3. Re: rich:extendedDataTable firing dataModel unnecessarily
ilya_shaikovsky Jun 10, 2010 5:39 AM (in response to ptilsworth)looks like real issue in extendedDataTable itself.. working fine with simple dataTable.
-
4. Re: rich:extendedDataTable firing dataModel unnecessarily
ilya_shaikovsky Jun 10, 2010 7:56 AM (in response to ilya_shaikovsky)feel free to rise an issue but currently we have no plans for 3.x branch.