[ http://issues.apache.org/jira/browse/MYFACES-667?page=all ]
sean schofield closed MYFACES-667:
----------------------------------
Resolution: Won't Fix
The problem was on my end. My converter was converting the empty string
instead of returning empty string. Since the converted value is what is
checked during required, there was technically a non empty value now so the
required case did not fail as I had expected it to.
> 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