myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mathias Broekelmann (JIRA)" <>
Subject [jira] Closed: (MYFACES-113) dataTable/dataScroller do not work in conditional rendered panelGroup
Date Mon, 01 Aug 2005 11:58:41 GMT
     [ ]
Mathias Broekelmann closed MYFACES-113:

    Fix Version: Nightly Build
     Resolution: Invalid

I´ve tested your examples and saw it was not working as you described. But the problem is
not myfaces.

The rendered attribute is evalutated in the decode phase and will return false everytime since
your bean is request scope. That means you lose the state of your bean between the requests.
Try using session scope for your bean and it will work. You can also try to use x:savestate
with your bean to hold the state between requests.

> dataTable/dataScroller do not work in conditional rendered panelGroup
> ---------------------------------------------------------------------
>          Key: MYFACES-113
>          URL:
>      Project: MyFaces
>         Type: Bug
>     Versions: 1.0.8 beta
>  Environment: jdk 1.5, myfaces 1.0.8
>     Reporter: Mario Ivankovits
>     Assignee: sean schofield
>      Fix For: Nightly Build
>  Attachments:, dataTableBug.jsp
> I tracked down a strange example where the dataScroller do not work. It ignores any click
on the page navigation.
> The main point is, that it is a child in an conditionally rendered <h:panelGroup.
> If I change the panelGroup to be always rendered (<h:panelGroup rendered="true">)
it works.
> Attached you might find my bean and the simplest possible jsf page.
> This needs to be added to the faces-config.xml
>     <managed-bean>
>         <managed-bean-name>MyBean</managed-bean-name>
>         <managed-bean-class>MyBean</managed-bean-class>
>         <managed-bean-scope>request</managed-bean-scope>
>     </managed-bean>

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message