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:05:40 UTC
[jira] Created: (MYFACES-1160) Null Value for Attribute_value in
UIInput can have two different meanings
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
[jira] Commented: (MYFACES-1160) Null Value for Attribute_value in
UIInput can have two different meanings
Posted by "Andreas Knuth (JIRA)" <de...@myfaces.apache.org>.
[ http://issues.apache.org/jira/browse/MYFACES-1160?page=comments#action_12368509 ]
Andreas Knuth commented on MYFACES-1160:
----------------------------------------
Sorry, Text formatting in Jira is not supported before V 3.4
> 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
[jira] Commented: (MYFACES-1160) Null Value for Attribute_value in
UIInput can have two different meanings
Posted by "Andreas Knuth (JIRA)" <de...@myfaces.apache.org>.
[ 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