]
Minh Hoang TO reassigned GTNPORTAL-402:
---------------------------------------
Assignee: Minh Hoang TO
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
Assignee: Minh Hoang TO
Fix For: 3.0.0-Beta04
Original Estimate: 1 hour
Remaining Estimate: 1 hour
* 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: