Creating a required Number-Field does not work as expected
----------------------------------------------------------
Key: TAPESTRY-1019
URL: http://issues.apache.org/jira/browse/TAPESTRY-1019
Project: Tapestry
Issue Type: Bug
Components: Framework
Affects Versions: 4.0.1
Reporter: Marcus Schulte
If "hoNr" is an Integer property the following code sets it to null, if the
user starts his input with a blank (" 123"):
<INPUT jwcid="[EMAIL PROTECTED]" displayName="Verkaufs-Händler"
value="ognl:hoNr"
validators="validators:required,max=999999"
translator="translator:number" />
Workaround:
Make the translator trim the value like this:
translator="translator:number,trim"
Proposed fix: Let the NumberTranslator set AbstractTranslator's trim-field to
true by default
Somewhat arbitrary Note: This is related to TAPESTRY-820. I'd LOVE to see that
on fixed :-).
--
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
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]