You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Andreas Knuth (JIRA)" <de...@myfaces.apache.org> on 2006/03/02 15:31:40 UTC

[jira] Commented: (MYFACES-1160) Null Value for Attribute_value in UIInput can have two different meanings

    [ http://issues.apache.org/jira/browse/MYFACES-1160?page=comments#action_12368507 ] 

Andreas Knuth commented on MYFACES-1160:
----------------------------------------

A possible workaroud could be:

You already have a Flag called _localValueSet:

Probably use this Flag and override the getValues() and setValue() Method in UIInput:
{code} 
public Object getValue() {
    if (isLocalValueSet()){
        return theValue;
    }
    return super.getValue();
}
{code} 
{code} 
public void setValue(Object value) {
    theValue = value;
    super.setValue(value);
}
{code} 
where *theValue* is a member variable of UIInput and will be saved by the StateManager


> Null Value for Attribute_value in UIInput can have two different meanings
> -------------------------------------------------------------------------
>
>          Key: MYFACES-1160
>          URL: http://issues.apache.org/jira/browse/MYFACES-1160
>      Project: MyFaces Core
>         Type: Bug
>   Components: General
>     Reporter: Andreas Knuth

>
> 1. no value is set to this component
> 2. An submitted value is empty ("").
> In both cases the getValue() Method will result the valueBinding
> Problem:
> If any validation error occurs on the page, the submitted empty value will be replaced by the valueBinding and can be <> ""
> Any workarounds ??
> regards,
> Andreas
> ----- I will close the ticket MYFACES-1056: It's the same background -------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira