Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Won't Fix
-
Affects Version/s: EE-3.3.0.GA_P03, 4.1.1
-
Fix Version/s: EE-3.3.0.GA_P05, 4.3
-
Component/s: Framework
-
Labels:None
-
Environment:All
-
Assignee Priority:P2
-
Support Case References:Support Case #13718 - https://icesoft.my.salesforce.com/5007000001ZLfA9
-
Workaround Exists:Yes
-
Workaround Description:Workaround for this issue is to use the ice:selectOneListbox or ice:selectOneMenu components instead of the h: ones as they do not have this issue.
Description
With the standard JSF components (h:selectOneListbox, h:selectOneMenu), the backing select item list is not escaping html characters. The same is escaped correctly when using the ice:selectOneListbox/selectOneMenu.
It is also escaping correctly when using a pure JSF sample. When ICEfaces is added, it displays the label like it uses escape=false.
Sample code:
<h:selectOneListbox value="#{testBean.id1}" size="4">
<f:selectItems value="#{testBean.items}"/>
</h:selectOneListbox>
List items:
"hello"
"hello <world"
"8 > 3"
"9 = 9"
With ICEfaces shows list as:
"hello"
"hello "
"8 > 3"
"9 = 9"
Pure JSF and ICE comps show list as:
"hello"
"hello <world"
"8 > 3"
"9 = 9"
It is also escaping correctly when using a pure JSF sample. When ICEfaces is added, it displays the label like it uses escape=false.
Sample code:
<h:selectOneListbox value="#{testBean.id1}" size="4">
<f:selectItems value="#{testBean.items}"/>
</h:selectOneListbox>
List items:
"hello"
"hello <world"
"8 > 3"
"9 = 9"
With ICEfaces shows list as:
"hello"
"hello "
"8 > 3"
"9 = 9"
Pure JSF and ICE comps show list as:
"hello"
"hello <world"
"8 > 3"
"9 = 9"
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
Arran Mccullough
created issue -
Arran Mccullough
made changes -
Field | Original Value | New Value |
---|---|---|
Attachment | Case13718Example.war [ 22103 ] | |
Attachment | Case13718Example.zip [ 22104 ] |
Ken Fyten
made changes -
Assignee | Arturo Zambrano [ artzambrano ] | |
Fix Version/s | EE-3.3.0.GA_P05 [ 13082 ] | |
Fix Version/s | 4.3 [ 13096 ] | |
Assignee Priority | P2 [ 10011 ] |
Ken Fyten
made changes -
Summary | JSF Select menu/list not escaping HTML text in labels | JSF h:selectOneListbox, h:selectOneMenu components not escaping HTML text in labels |
Ken Fyten
made changes -
Workaround Description | Workaround for this issue is to use the ice:selectOneListbox or ice:selectOneMenu components instead of the h: ones as they do not have this issue. | |
Workaround Exists | Yes [ 10007 ] |
Ken Fyten
made changes -
Status | Open [ 1 ] | Closed [ 6 ] |
Resolution | Won't Fix [ 2 ] |