[richfaces-issues] [JBoss JIRA] Updated: (RF-9897) rich:dataTable, rich:extendedDataTable - dynamic changes of facets leads to output markup inconsistency (applies only for full page refresh)

Lukas Fryc (JIRA) jira-events at lists.jboss.org
Thu Dec 2 07:22:04 EST 2010


     [ https://jira.jboss.org/browse/RF-9897?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lukas Fryc updated RF-9897:
---------------------------

               Summary: rich:dataTable, rich:extendedDataTable - dynamic changes of facets leads to output markup inconsistency (applies only for full page refresh)  (was: rich:dataTable - dynamic changes of facets leads to output markup inconsistency (applies only for full page refresh))
           Description: 
Applies for both, rich:dataTable and rich:extendedDataTable.

When you are dynamically changing the content of facets like table header, column header, noData, caption or column footer, the component may end up in inconsistent state.

Say, we have

<f:facet name="header">
<h:outputText value="foo" rendered="#{expression}" />
</f:facet>

When we trigger ajax-render of table and during that expression changes from true to false, header is still shown but with no content.
It is inconsistent with state you can get using full-page-refresh.

However this can be reproduced only by clearing the view (which needs to have backing bean stored in session scope).

See Steps to Reproduce and attached screenshots.

  was:
When you are dynamically changing the content of facets like table header, column header, noData, caption or column footer, the component may end up in inconsistent state.

Say, we have

<f:facet name="header">
<h:outputText value="foo" rendered="#{expression}" />
</f:facet>

When we trigger ajax-render of table and during that expression changes from true to false, header is still shown but with no content.
It is inconsistent with state you can get using full-page-refresh.

However this can be reproduced only by refreshing the view (which needs to have backing bean stored in session scope).

See Steps to Reproduce and attached screenshots.

    Steps to Reproduce: 
1. modify RichDataTable bean to be @SessionScoped
2. package and deploy
3. open http://localhost:8080/metamer/faces/components/richDataTable/facets.xhtml
4. clear the input for Header Facet and blur the input
(ajax request triggered)
You can see empty header between Caption and columns' headers
5. use Full Page Refresh and Rerender All buttons (in page header) to order regular and ajax request in scope of current view
The empty header is still there
6. use Refresh (F5) to get a clean view
FAIL: The header is not rendered

7. click Full Page Request or Rerender All
FAIL: The header is rendered again

(the same for rich:extendedDataTable sample)

  was:
1. modify RichDataTable bean to be @SessionScoped
2. package and deploy
3. open http://localhost:8080/metamer/faces/components/richDataTable/facets.xhtml
4. clear the input for Header Facet and blur the input
(ajax request triggered)
You can see empty header between Caption and columns' headers
5. use Full Page Refresh and Rerender All buttons (in page header) to order regular and ajax request in scope of current view
The empty header is still there
6. use Refresh (F5) to get a clean view
FAIL: The header is not rendered

7. click Full Page Request or Rerender All
FAIL: The header is rendered again



> rich:dataTable, rich:extendedDataTable - dynamic changes of facets leads to output markup inconsistency (applies only for full page refresh)
> --------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: RF-9897
>                 URL: https://jira.jboss.org/browse/RF-9897
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 4.0.0.Milestone4
>         Environment:     * RichFaces 4.0.0-SNAPSHOT r.20272
>     * Metamer 4.0.0-SNAPSHOT r.20302
>     * Mojarra 2.0.3-FCS
>     * Apache Tomcat 6.0.29
>     * OpenJDK Runtime Environment 1.6.0_18-b18 @ Linux
>     * Firefox 3.6.12 @ Linux x86_64
>            Reporter: Lukas Fryc
>            Priority: Minor
>
> Applies for both, rich:dataTable and rich:extendedDataTable.
> When you are dynamically changing the content of facets like table header, column header, noData, caption or column footer, the component may end up in inconsistent state.
> Say, we have
> <f:facet name="header">
> <h:outputText value="foo" rendered="#{expression}" />
> </f:facet>
> When we trigger ajax-render of table and during that expression changes from true to false, header is still shown but with no content.
> It is inconsistent with state you can get using full-page-refresh.
> However this can be reproduced only by clearing the view (which needs to have backing bean stored in session scope).
> See Steps to Reproduce and attached screenshots.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the richfaces-issues mailing list