[richfaces-issues] [JBoss JIRA] (RF-12491) Datatable model is accessed in tab panel which is not rendered using switch type "server"
Denis Pasek (JIRA)
jira-events at lists.jboss.org
Sun Sep 16 10:35:36 EDT 2012
[ https://issues.jboss.org/browse/RF-12491?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Denis Pasek updated RF-12491:
-----------------------------
Steps to Reproduce:
See attached test project:
1) Create a page containing a tab panel with multiple tabs. Set switchType to "server"
2) Add data tables to the tab content
3) Create controller with holds/creates the data model for the data tables
4) Open page on first tab, and see that all three data table values are accessed during rendering of first tab.
was:
See attached test project:
1) Create a page containing a tab panel with multiple tabs. Set switchType to "server"
2) Add data tables to the tab content
3) Create controller with holds/creates the data model for the data table
4) Open page on first tab, and see that all three data table values are accessed during rendering of first tab.
> Datatable model is accessed in tab panel which is not rendered using switch type "server"
> -----------------------------------------------------------------------------------------
>
> Key: RF-12491
> URL: https://issues.jboss.org/browse/RF-12491
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: component-panels-layout-themes, component-tables
> Affects Versions: 4.2.0.Final, 4.2.2.Final
> Environment: Mojarra 2.1.20, JDK 1.6, JDK 1.7, Tomcat 7.0.x
> Reporter: Denis Pasek
> Labels: dataTable, tab, tabPanel
> Attachments: richfaces-visittree.zip
>
>
> When a RichFaces Tab of a TabPanel contains a RichFaces DataTable the model of the DataTable is accessed even if the Tab is not rendered at all.
> Since the retrieval of the data table data might include costly database operations this is a serious performance issue.
> The issue seems to be related to the state saving of JSF: the methods are not called during encodeAll() but during state saving of view.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the richfaces-issues
mailing list