Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: EE-2.0.0.GA
-
Fix Version/s: 2.1-Beta, 3.0, EE-2.0.0.GA_P01
-
Component/s: None
-
Labels:None
-
Environment:Mojarra 2.1.1-b04
-
Assignee Priority:P2
-
Affects:Compatibility/Configuration
-
Workaround Exists:Yes
-
Workaround Description:I the value is set to an empty string the result is as expected. But that's no real option for us as we are already using nulls everywhere.
Description
Given this form:
<h:form id="myForm">
<h:inputText id="myInput" value="#{myBean.myValue}"/>
<h:commandButton id="submitButton" action="#{myBean.submit}" value="Submit"/>
</h:form>
and this action mehod:
public String submit() {
myValue = null;
return null;
}
the user expects the textfield to be empty after the request finished.
This works with plain Mojarra (org.icefaces.render.auto = false) but not with ICEfaces.
I think the problem is that TextRenderer.getEndTextToRender() doesn't call the ResponseWriter if the value is null.
<h:form id="myForm">
<h:inputText id="myInput" value="#{myBean.myValue}"/>
<h:commandButton id="submitButton" action="#{myBean.submit}" value="Submit"/>
</h:form>
and this action mehod:
public String submit() {
myValue = null;
return null;
}
the user expects the textfield to be empty after the request finished.
This works with plain Mojarra (org.icefaces.render.auto = false) but not with ICEfaces.
I think the problem is that TextRenderer.getEndTextToRender() doesn't call the ResponseWriter if the value is null.
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #24900 | Fri Jun 24 21:06:37 MDT 2011 | mark.collette | |
Files Changed | ||||
MODIFY
/icefaces2/branches/icefaces-2.0.x-maintenance/icefaces/core/src/main/java/org/icefaces/impl/context/DOMPartialViewContext.java
|
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #24899 | Fri Jun 24 18:29:09 MDT 2011 | mark.collette | |
Files Changed | ||||
MODIFY
/icefaces2/trunk/icefaces/core/src/main/java/org/icefaces/impl/context/DOMPartialViewContext.java
|