Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 2.0.1, EE-2.0.0.GA
-
Fix Version/s: 2.1-Beta, 3.0, EE-2.0.0.GA_P01
-
Component/s: ICE-Components
-
Labels:None
-
Environment:-
-
Assignee Priority:P1
Description
<ice:selectInputText>
<f:facet name="selectInputText">
<ice:panelGrid columns="1">
<ice:outputText onclick="alert('test');" id="AutoCmpSt" value="#{city.state}" />
</ice:panelGrid>
</f:facet>
</ice:selectInputText>
This is not an issue in 1.8.2 P02.
-
Hide
- sc10064.war
- 8.95 MB
- Tyler Johnson
-
- META-INF/MANIFEST.MF 0.0 kB
- .DS_Store 6 kB
- WEB-INF/classes/BaseBean.java 4 kB
- WEB-INF/classes/City.java 3 kB
- WEB-INF/classes/CityDictionary.java 8 kB
- WEB-INF/classes/MessageBundleLoader.java 3 kB
- WEB-INF/.../SelectInputTextController.java 6 kB
- WEB-INF/classes/.DS_Store 6 kB
- WEB-INF/classes/BaseBean.class 3 kB
- WEB-INF/classes/City.class 2 kB
- WEB-INF/classes/CityDictionary$1.class 0.8 kB
- WEB-INF/classes/CityDictionary.class 4 kB
- WEB-INF/.../MessageBundleLoader.class 2 kB
- WEB-INF/.../SelectInputTextController.class 4 kB
- WEB-INF/classes/messages_en.properties 48 kB
- WEB-INF/faces-config.xml 0.6 kB
- WEB-INF/lib/FastInfoset.jar 285 kB
- WEB-INF/lib/commons-beanutils.jar 226 kB
- WEB-INF/lib/commons-digester.jar 140 kB
- WEB-INF/lib/commons-logging.jar 52 kB
- WEB-INF/lib/icefaces-ee-composite.jar 357 kB
- WEB-INF/lib/jstl.jar 20 kB
- WEB-INF/lib/jxl.jar 708 kB
- WEB-INF/.../krysalis-jCharts-1.0.0-alpha-1.jar 151 kB
- WEB-INF/lib/jsf-api.jar 593 kB
- WEB-INF/lib/jsf-impl.jar 1.78 MB
- WEB-INF/lib/icefaces-ee-ext.jar 56 kB
- WEB-INF/lib/icefaces-ee.jar 206 kB
- WEB-INF/lib/icefaces-ee-compat.jar 2.67 MB
- WEB-INF/lib/icefaces-ee-ace.jar 2.39 MB
-
- Firebug_console_2.0.jpg
- 209 kB
-
- screenshot-02.png
- 213 kB
-
- screenshot-03.png
- 224 kB
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
Do we have any estimate on fixing this Bug?
Tried displaying the response body in the browser and there was no error. See screenshot 2. So the malformed XML error must be caused by something else?
onclick attribute is rendered by PassThruAttributeWriter. PassThruAttributeWriter is exactly the same in ICEfaces 1.8 and ICEfaces 2. Yet the single quote in the onclick attribute value is escaped in 1.8 but not in 2. Why?
This is caused by changes in ICE-5551. org.icefaces.impl.util.DOMUtils#escapeAttribute was added to replace org.icefaces.impl.util.DOMUtils#escapeAnsi. In escapeAttribute() the single quote character was purposely removed from the list of characters to be escaped. Put it back in? Would it cause problems for other calls (many indirectly) to the function?
Single quote escaping doesn't warrant changing utility methods. Private method created just to escape single quote in SelectInputTextRenderer.
Revision: 24823
Modified : /icefaces2/trunk/icefaces/compat/components/src/main/java/com/icesoft/faces/component/selectinputtext/SelectInputTextRenderer.java
Revision: 24824
Modified : /icefaces2/branches/icefaces-2.0.x-maintenance/icefaces/compat/components/src/main/java/com/icesoft/faces/component/selectinputtext/SelectInputTextRenderer.java
Test case attached. Intended for deployment on Tomcat 6.