Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Cannot Reproduce
-
Affects Version/s: 3.1.0.RC1
-
Fix Version/s: 3.2
-
Component/s: None
-
Labels:None
-
Environment:Mojorra 2.1.10, ICEfaces 3.1.0.RC1 vs. ICEfaces 3.0.1
-
ICEsoft Forum Reference:
Description
I have the following in an XHTML file
<ui:repeat var="codeValue" value="#{crfItemInstance.selectableCodeValues}" rendered="#{!codeValue.subGroupExistent}"/>
and the following underlying Java code within CRFItemInstance.java
public List<CodeListItem> getSelectableCodeValues() {
return this.selectableCodeValues;
}
and within CodeListItem.java also
public boolean isSubGroupExistent() {
return this.subGroupExistent;
}
Using the above in ICEfaces 3.0.1 with Mojorra 2.1.10 works fine but for ICEfaces 3.1.0.RC1 with Mojorra 2.1.10, I get the following exception
javax.el.PropertyNotFoundException: /pages/print/crfPrintInstance.xhtml @49,151 rendered="#{!codeValue.subGroupExistent}": Property 'subGroupExistent' not found on type javax.faces.model.SelectItem
So it seems that "#{crfItemInstance.selectableCodeValues}" returns a collection of SelectItem objects instead of a collection of CodeListItem objects.
<ui:repeat var="codeValue" value="#{crfItemInstance.selectableCodeValues}" rendered="#{!codeValue.subGroupExistent}"/>
and the following underlying Java code within CRFItemInstance.java
public List<CodeListItem> getSelectableCodeValues() {
return this.selectableCodeValues;
}
and within CodeListItem.java also
public boolean isSubGroupExistent() {
return this.subGroupExistent;
}
Using the above in ICEfaces 3.0.1 with Mojorra 2.1.10 works fine but for ICEfaces 3.1.0.RC1 with Mojorra 2.1.10, I get the following exception
javax.el.PropertyNotFoundException: /pages/print/crfPrintInstance.xhtml @49,151 rendered="#{!codeValue.subGroupExistent}": Property 'subGroupExistent' not found on type javax.faces.model.SelectItem
So it seems that "#{crfItemInstance.selectableCodeValues}" returns a collection of SelectItem objects instead of a collection of CodeListItem objects.
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
Holger Stenzhorn
created issue -
Ken Fyten
made changes -
Field | Original Value | New Value |
---|---|---|
Salesforce Case | [] | |
Fix Version/s | 3.1 [ 10312 ] | |
Assignee Priority | P1 | |
Assignee | Mark Collette [ mark.collette ] |
Ken Fyten
made changes -
ICEsoft Forum Reference | http://jforum.icesoft.org/JForum/posts/list/21042.page#74037 | |
Salesforce Case | [] |
Ken Fyten
made changes -
Salesforce Case | [] | |
Assignee Priority | P1 | P2 |
Ken Fyten
made changes -
Fix Version/s | 3.2 [ 10338 ] | |
Fix Version/s | 3.1 [ 10312 ] |
Migration
made changes -
Assignee | Mark Collette [ mark.collette ] | yip.ng [ yip.ng ] |
Ken Fyten
made changes -
Status | Open [ 1 ] | Closed [ 6 ] |
Assignee Priority | P2 [ 10011 ] | |
Resolution | Cannot Reproduce [ 5 ] |