[gatein-issues] [JBoss JIRA] Assigned: (GTNPORTAL-402) the UIFormTextAreaInput component does not save the state when enter a "empty" value

Minh Hoang TO (JIRA) jira-events at lists.jboss.org
Thu Dec 17 22:55:31 EST 2009


     [ https://jira.jboss.org/jira/browse/GTNPORTAL-402?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the gatein-issues mailing list