Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 3.0.RC1
-
Fix Version/s: 3.0.1, EE-3.0.0.GA
-
Component/s: Framework
-
Labels:None
-
Environment:Tomcat 7.0.12
ICEfaces 3RC1a
Description
The valueChangeListener in an h:selectOneMenu is being used to cross validate with another field in one of my applications. If another field is a certain value, the h:selectOneMenu value should be set to '0', even if '0' was the initial value before the change.
When an attempt is made to set back to '0' the following response comes back in the console:
<?xml version='1.0' encoding='UTF-8'?>
<partial-response><changes><update id="javax.faces.ViewState"><![CDATA[574103076592712092:7902382816915448980]]></update><eval><![CDATA[alert('Invalid Cycle');]]></eval><extension aceCallbackParam="validationFailed">{"validationFailed":false}</extension></changes></partial-response>
When the value is not set to '0', the component updates as expected.
Attached is a war file and source code for a test case.
When an attempt is made to set back to '0' the following response comes back in the console:
<?xml version='1.0' encoding='UTF-8'?>
<partial-response><changes><update id="javax.faces.ViewState"><![CDATA[574103076592712092:7902382816915448980]]></update><eval><![CDATA[alert('Invalid Cycle');]]></eval><extension aceCallbackParam="validationFailed">{"validationFailed":false}</extension></changes></partial-response>
When the value is not set to '0', the component updates as expected.
Attached is a war file and source code for a test case.
Activity
| Status | Resolved [ 5 ] | Closed [ 6 ] |
| Assignee Priority | P1 |
| Status | Reopened [ 4 ] | Resolved [ 5 ] |
| Resolution | Fixed [ 1 ] |
| Attachment | Test2.zip [ 14094 ] |
| Repository | Revision | Date | User | Message |
| ICEsoft Public SVN Repository | #28021 | Fri Feb 24 15:01:13 MST 2012 | ted.goddard | using regex to make minimal modifications to h:selectOneMenu output during applyBrowserChanges ( |
| Files Changed | ||||
MODIFY
/icefaces3/branches/icefaces-3.0.x-maintenance/icefaces/core/src/main/java/org/icefaces/impl/context/DOMPartialViewContext.java
|
| Repository | Revision | Date | User | Message |
| ICEsoft Public SVN Repository | #28020 | Fri Feb 24 14:58:52 MST 2012 | ted.goddard | using regex to make minimal modifications to h:selectOneMenu output during applyBrowserChanges ( |
| Files Changed | ||||
MODIFY
/icefaces3/trunk/icefaces/core/src/main/java/org/icefaces/impl/context/DOMPartialViewContext.java
|
| Assignee | Mark Collette [ mark.collette ] | Ted Goddard [ ted.goddard ] |
| Repository | Revision | Date | User | Message |
| ICEsoft Public SVN Repository | #27993 | Wed Feb 22 16:32:19 MST 2012 | ken.fyten | Reverted |
| Files Changed | ||||
MODIFY
/icefaces3/trunk/icefaces/core/src/main/java/org/icefaces/impl/context/DOMPartialViewContext.java
|
| Salesforce Case | [] | |
| Fix Version/s | EE-3.0.0.GA [ 10262 ] | |
| Fix Version/s | EE-3.0.0.BETA [ 10324 ] |
| Resolution | Fixed [ 1 ] | |
| Status | Resolved [ 5 ] | Reopened [ 4 ] |
| Repository | Revision | Date | User | Message |
| ICEsoft Public SVN Repository | #27980 | Wed Feb 22 13:00:38 MST 2012 | ken.fyten | Reverted |
| Files Changed | ||||
MODIFY
/icefaces3/branches/icefaces-3.0.x-maintenance/icefaces/core/src/main/java/org/icefaces/impl/context/DOMPartialViewContext.java
|
| Repository | Revision | Date | User | Message |
| ICEsoft Public SVN Repository | #27957 | Tue Feb 21 14:27:56 MST 2012 | ted.goddard | removed System.out ( |
| Files Changed | ||||
MODIFY
/icefaces3/branches/icefaces-3.0.x-maintenance/icefaces/core/src/main/java/org/icefaces/impl/context/DOMPartialViewContext.java
|
| Repository | Revision | Date | User | Message |
| ICEsoft Public SVN Repository | #27956 | Tue Feb 21 13:49:22 MST 2012 | ted.goddard | removed System.out ( |
| Files Changed | ||||
MODIFY
/icefaces3/trunk/icefaces/core/src/main/java/org/icefaces/impl/context/DOMPartialViewContext.java
|
| Salesforce Case | [] | |
| Fix Version/s | EE-3.0.0.BETA [ 10324 ] |
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Fix Version/s | EE-3.0.0.BETA [ 10324 ] | |
| Resolution | Fixed [ 1 ] |
| Salesforce Case | [] | |
| Fix Version/s | EE-3.0.0.BETA [ 10324 ] |
| Repository | Revision | Date | User | Message |
| ICEsoft Public SVN Repository | #27938 | Mon Feb 20 10:07:30 MST 2012 | mark.collette | |
| Files Changed | ||||
MODIFY
/icefaces3/branches/icefaces-3.0.x-maintenance/icefaces/core/src/main/java/org/icefaces/impl/context/DOMPartialViewContext.java
|
| Repository | Revision | Date | User | Message |
| ICEsoft Public SVN Repository | #27937 | Mon Feb 20 10:02:04 MST 2012 | mark.collette | |
| Files Changed | ||||
MODIFY
/icefaces3/trunk/icefaces/core/src/main/java/org/icefaces/impl/context/DOMPartialViewContext.java
|
| Salesforce Case | [] | |
| Assignee Priority | P2 | P1 |
| Salesforce Case | [] | |
| Fix Version/s | 3.0.1 [ 10282 ] | |
| Fix Version/s | 3.0 [ 10241 ] | |
| Assignee Priority | P2 | |
| Assignee | Ken Fyten [ ken.fyten ] | Mark Collette [ mark.collette ] |
| Assignee | Ken Fyten [ ken.fyten ] |
| Salesforce Case | [] | |
| Description |
The valueChangeListener is an h:selectOneMenu is being used to cross validate with another field in one of my applications. If another field is a certain value, the h:selectOneMenu value should be set to '0', even if '0' was the initial value before the change. When an attempt is made to set back to '0' the following response comes back in the console: <?xml version='1.0' encoding='UTF-8'?> <partial-response><changes><update id="javax.faces.ViewState"><![CDATA[574103076592712092:7902382816915448980]]></update><eval><![CDATA[alert('Invalid Cycle');]]></eval><extension aceCallbackParam="validationFailed">{"validationFailed":false}</extension></changes></partial-response> When the value is not set to '0', the component updates as expected. Attached is a war file and source code for a test case. |
The valueChangeListener in an h:selectOneMenu is being used to cross validate with another field in one of my applications. If another field is a certain value, the h:selectOneMenu value should be set to '0', even if '0' was the initial value before the change. When an attempt is made to set back to '0' the following response comes back in the console: <?xml version='1.0' encoding='UTF-8'?> <partial-response><changes><update id="javax.faces.ViewState"><![CDATA[574103076592712092:7902382816915448980]]></update><eval><![CDATA[alert('Invalid Cycle');]]></eval><extension aceCallbackParam="validationFailed">{"validationFailed":false}</extension></changes></partial-response> When the value is not set to '0', the component updates as expected. Attached is a war file and source code for a test case. |
| Attachment | Test.zip [ 14022 ] |
| Field | Original Value | New Value |
|---|---|---|
| Attachment | Test_war_exploded.war [ 14021 ] |

The encodeEnd() method of MenuRenderer which makes use of FastStringWriter to embed the text node in the DOM does allow for a "multiple" select option.