Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: EE-1.8.2.GA_P03, 2.1-Beta2
-
Fix Version/s: 3.0.RC1, 3.0, EE-1.8.2.GA_P04
-
Component/s: ICE-Components
-
Labels:None
-
Environment:-
-
Assignee Priority:P1
Description
If immediate is true and you have done 1 pagination beyond the first page, the addMessage action event will no longer be called. If you remove the immediate attribute from the paginator, the action fires but then validation is not bypassed:
<ice:commandButton value="add faces message" action="#{page1BackingBean.addMessage}"/>
<ice:dataPaginator for="partResults" immediate="true">
........
<ice:dataTable id="partResults">
<ice:column>
<ice:panelGroup>
<ice:inputText value="#{column}">
</ice:inputText>
</ice:panelGroup>
</ice:column>
</ice:dataTable>
Test case attached.
<ice:commandButton value="add faces message" action="#{page1BackingBean.addMessage}"/>
<ice:dataPaginator for="partResults" immediate="true">
........
<ice:dataTable id="partResults">
<ice:column>
<ice:panelGroup>
<ice:inputText value="#{column}">
</ice:inputText>
</ice:panelGroup>
</ice:column>
</ice:dataTable>
Test case attached.
-
Hide
- sf-10618.war
- 6.35 MB
- Tyler Johnson
-
- META-INF/MANIFEST.MF 0.0 kB
- WEB-INF/classes/NavigationUtil.java 4 kB
- WEB-INF/classes/Page1BackingBean.java 1 kB
- WEB-INF/.../NavigationUtil$Page.class 3 kB
- WEB-INF/classes/NavigationUtil.class 2 kB
- WEB-INF/classes/Page1BackingBean.class 3 kB
- WEB-INF/faces-config.xml 0.5 kB
- WEB-INF/includes/content/menu.xhtml 16 kB
- WEB-INF/includes/templates/footer.xhtml 0.3 kB
- WEB-INF/includes/templates/header.xhtml 0.7 kB
- WEB-INF/.../three-col-page-template.xhtml 0.5 kB
- WEB-INF/lib/commons-beanutils.jar 226 kB
- WEB-INF/lib/commons-collections.jar 558 kB
- WEB-INF/lib/commons-digester.jar 140 kB
- WEB-INF/lib/commons-lang.jar 240 kB
- WEB-INF/lib/commons-logging.jar 52 kB
- WEB-INF/lib/icefaces-compat.jar 2.35 MB
- WEB-INF/lib/icefaces.jar 240 kB
- WEB-INF/lib/javax.faces.jar 2.48 MB
- WEB-INF/lib/jstl.jar 20 kB
- WEB-INF/lib/jxl.jar 708 kB
- WEB-INF/web.xml 4 kB
- images/icefaces.gif 8 kB
- index.jsp 0.1 kB
- page1.xhtml 1 kB
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
Steps to reproduce using attached test:
1. Navigate from page 1 to any other page.
2. Try to click the commandbutton but nothing happens. The method should generate a facesMessage and display it to the screen.
Show
Tyler Johnson
added a comment - Steps to reproduce using attached test:
1. Navigate from page 1 to any other page.
2. Try to click the commandbutton but nothing happens. The method should generate a facesMessage and display it to the screen.
Mark commented:
It sounds like the dataPaginator is not clearing out that it has changed to page 2, and so subsequently keeps thinking it's changing to page 2, and that doesn't look different to the rest of our framework, since nothing is changing, but it would involve the immediate processing that skips the rest of the lifecycle. It might be due to a lack of clearing out a hidden input field, or something wrong in the decoding.
Show
Tyler Johnson
added a comment - Mark commented:
It sounds like the dataPaginator is not clearing out that it has changed to page 2, and so subsequently keeps thinking it's changing to page 2, and that doesn't look different to the rest of our framework, since nothing is changing, but it would involve the immediate processing that skips the rest of the lifecycle. It might be due to a lack of clearing out a hidden input field, or something wrong in the decoding.
Command: Commit
Modified: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component\src\com\icesoft\faces\component\datapaginator\DataPaginatorRenderer.java
Sending content: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component\src\com\icesoft\faces\component\datapaginator\DataPaginatorRenderer.java
Completed: At revision: 26421
Command: Commit
Modified: D:\work\development\head\svn\ossrepo\icefaces2\trunk\icefaces\compat\components\src\main\java\com\icesoft\faces\component\datapaginator\DataPaginatorRenderer.java
Sending content: D:\work\development\head\svn\ossrepo\icefaces2\trunk\icefaces\compat\components\src\main\java\com\icesoft\faces\component\datapaginator\DataPaginatorRenderer.java
Completed: At revision: 26422