You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "sean schofield (JIRA)" <my...@incubator.apache.org> on 2005/10/05 16:25:48 UTC

[jira] Commented: (MYFACES-667) Nonstandard validation/conversion behavior of

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

sean schofield commented on MYFACES-667:
----------------------------------------

[Offlist email from Bill Dudney]

On page 3-18 of the spec it
says that the 'required' attribute specifies that the user must
supply a non-empty value for the component if the attribute is set to
'true'. Which says to me that if its null or empty it should fail
(I'm fairly sure the default impl does that). Perhaps it is as you say a
difference between the tomahawk input and the impl input.

Worth filing a bug over I'd say.

> Nonstandard validation/conversion behavior of <t:inputText>
> -----------------------------------------------------------
>
>          Key: MYFACES-667
>          URL: http://issues.apache.org/jira/browse/MYFACES-667
>      Project: MyFaces
>         Type: Bug
>   Components: Tomahawk
>     Versions: 1.1.0
>     Reporter: sean schofield

>
> Not sure if this is a bug but shouldn't a required field throw a
> validation error if nothing (empty string) is posted?  My
> understanding was that JSF will skip conversion and consider the value
> missing.  I'm seeing a conversion attempt (which I didn't expect) and
> then no validation error is   thrown.
> I know there are some subtleties with null vs. empty but I thought I
> understood things correctly.  Is it possible that the tomahawk version
> is not behaving in the same way as the core version?

-- 
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