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
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 ] |
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 ] |