the UIFormTextAreaInput component does not save the state when enter a "empty"
value
------------------------------------------------------------------------------------
Key: GTNPORTAL-402
URL:
https://jira.jboss.org/jira/browse/GTNPORTAL-402
Project: GateIn Portal
Issue Type: Bug
Affects Versions: 3.0.0-Beta03
Reporter: Trong Tran
Fix For: 3.0.0-Beta04
* To reproduce :
1. Enter some texts in UIFormTextAreaInput field and save it.
2. Then remove texts and save .the textArea still has the value which is before deleting
* To fix :
{code}
public void decode(Object input, WebuiRequestContext context) throws Exception {
String val = (String) input ;
if((val == null || val.length() == 0)) return ; // Should remove this line
value_ = val ;
if(value_ != null && value_.length() == 0) value_ = null ;
}
{code}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira