Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: EE-3.0.0.GA
-
Fix Version/s: 3.1.0.BETA1, 3.1
-
Component/s: Sample Apps
-
Labels:None
-
Environment:Showcase App Mojarra MyFaces
-
Assignee Priority:P2
-
Affects:Sample App./Tutorial
Description
While the issue can be replicated with our showcase example, it's not specific to ICEfaces and can be reproduced in a simple test case running either Mojarra or MyFaces
To reproduce:
- build showcase with Myfaces (ant clean servlet profile -Dmyfaces="true") or Mojarra
- deploy to Tomcat7.
- load the page in any browser: http://localhost:8080/showcase/showcase.jsf?exp=dataTableBean&grp=aceMenu
- choose the Pagination example
- select on the page: Table Rows (1-30) = 5 and tab out
- then change Selected Page (1-6) = 6 and submit.
- a validation message renders on the page: "Specified attribute is not between the expected values of 1 and 3."
The issue being that use of an EL expression for the maximum attribute doesn't work.
To reproduce:
- build showcase with Myfaces (ant clean servlet profile -Dmyfaces="true") or Mojarra
- deploy to Tomcat7.
- load the page in any browser: http://localhost:8080/showcase/showcase.jsf?exp=dataTableBean&grp=aceMenu
- choose the Pagination example
- select on the page: Table Rows (1-30) = 5 and tab out
- then change Selected Page (1-6) = 6 and submit.
- a validation message renders on the page: "Specified attribute is not between the expected values of 1 and 3."
The issue being that use of an EL expression for the maximum attribute doesn't work.
Activity
| Field | Original Value | New Value |
|---|---|---|
| Assignee | Evgheni Sadovoi [ evgheni.sadovoi ] |
| Salesforce Case | [] | |
| Fix Version/s | 3.1 [ 10312 ] | |
| Assignee Priority | P2 | |
| Assignee | Evgheni Sadovoi [ evgheni.sadovoi ] | Deryk Sinotte [ deryk.sinotte ] |
| Salesforce Case | [] | |
| Affects | [Sample App./Tutorial] | |
| Assignee | Deryk Sinotte [ deryk.sinotte ] | Ken Fyten [ ken.fyten ] |
| Salesforce Case | [] | |
| Fix Version/s | 3.1.0.BETA1 [ 10335 ] |
| Summary | showcase - ace:dataTable - Paginator - incorrect validation on the page when using MyFaces JSF | showcase - ace:dataTable - Paginator - incorrect validation on the page |
| Salesforce Case | [] | |
| Fix Version/s | 3.1.0.BETA1 [ 10335 ] | |
| Assignee | Ken Fyten [ ken.fyten ] | Deryk Sinotte [ deryk.sinotte ] |
| Environment |
EE-3.0.GA build 10 (showcase app built with myFaces) Server: Tomcat7 Browsers: All |
Showcase App |
| Salesforce Case | [] |
| Summary | showcase - ace:dataTable - Paginator - incorrect validation on the page | Paginator can't use expression for attributes |
| Environment | Showcase App | Showcase App Mojarra MyFaces |
| Salesforce Case | [] | |
| Description |
In the showcase application built with myFaces, on the ace:dataTable -> Paginator page: selecting Table Rows (1-30) = 5 and Selected Page (1-6) = 6 , a validation message renders on the page: "Specified attribute is not between the expected values of 1 and 3." This does not appear to be correct. This is not an issue when using Mojarra JSF. To reproduce: - build showcase with Myfaces (ant clean servlet profile -Dmyfaces="true"), deploy to Tomcat7. - load the page in any browser: http://localhost:8080/showcase/showcase.jsf?exp=dataTableBean&grp=aceMenu - select on the page: Table Rows (1-30) = 5 and Selected Page (1-6) = 6 and submit. |
While the issue can be replicated with our showcase example, it's not specific to ICEfaces and can be reproduced in a simple test case running either Mojarra or MyFaces To reproduce: - build showcase with Myfaces (ant clean servlet profile -Dmyfaces="true") or Mojarra - deploy to Tomcat7. - load the page in any browser: http://localhost:8080/showcase/showcase.jsf?exp=dataTableBean&grp=aceMenu - choose the Pagination example - select on the page: Table Rows (1-30) = 5 and tab out - then change Selected Page (1-6) = 6 and submit. - a validation message renders on the page: "Specified attribute is not between the expected values of 1 and 3." The issue being that use of an EL expression for the maximum attribute doesn't work. |
| Repository | Revision | Date | User | Message |
| ICEsoft Public SVN Repository | #29060 | Wed May 16 09:40:23 MDT 2012 | deryk.sinotte | |
| Files Changed | ||||
MODIFY
/icefaces3/trunk/icefaces/samples/showcase/showcase/src/main/webapp/resources/examples/ace/dataTable/dataTablePaginator.xhtml
MODIFY
/icefaces3/trunk/icefaces/samples/showcase/showcase/src/main/java/org/icefaces/samples/showcase/example/ace/dataTable/DataTablePaginator.java
|
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Resolution | Fixed [ 1 ] |
| Salesforce Case | [] | |
| Fix Version/s | 3.1.0.BETA1 [ 10335 ] | |
| Security | Private [ 10001 ] |
| Link | This issue is duplicated by ICE-8049 [ ICE-8049 ] |
| Status | Resolved [ 5 ] | Closed [ 6 ] |

Nils said:
private int rows = 10;
{ return (int)Math.ceil(30.0/(double)rows); }... public int getStartPageMaximum()
so there should only be 3 pages by default. changing to 5 rows should cause statePageMaximum to return 6
and it does because the text says pages 1-6
however the validator isn't updated somehow
nothing to do with the table directly
looks like it could be myfaces issue with validators