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
Adrian Gygax
created issue -
Adrian Gygax
made changes -
Field | Original Value | New Value |
---|---|---|
Attachment | icefacesSupportEclipseProject.zip [ 13255 ] |
Tyler Johnson
made changes -
Salesforce Case | [5007000000Gv9WV] |
Ken Fyten
made changes -
Fix Version/s | EE-2.0.0.GA_P01 [ 10271 ] | |
Fix Version/s | 2.1 [ 10241 ] | |
Affects | [Compatibility/Configuration] | |
Assignee Priority | P2 | |
Assignee | Mark Collette [ mark.collette ] |
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
|
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
|
Mark Collette
made changes -
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Ken Fyten
made changes -
Fix Version/s | 2.1-Beta [ 10291 ] |
Ken Fyten
made changes -
Status | Resolved [ 5 ] | Closed [ 6 ] |
Attached an Eclipse 3.6 project with a sample application.
To reproduce the bug:
Open http://localhost:8080/icefacesSupport/
Enter any text into the textfield
Press the button
-> The text is still there
In web.xml switch org.icefaces.render.auto to "false" and do the same again
-> The textbox is empty