[
https://issues.apache.org/jira/browse/TAP5-2189?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Emmanuel DEMEY updated TAP5-2189:
---------------------------------
Description:
There is a bug when an upload field is required. The client-side validation
works well, but I have some bad effect on the server side.
The Upload component extends the AbstractField class, that implements the
isRequired method (and returning always false). So if my field is required,
when I create a ValidationDecorator, the field.isRequired return always false !
For other inputs, everything is OK, because they are extending the
AbstractTextField class that override again the isRequired method (but with the
expected behavior)
was:
There is bug when an upload field is required. The client-side validation works
well, but I have some bad effect on the server side.
The Upload component extends the AbstractField class, that implements the
isRequired method (and returning always false). So if my field is required,
when I create a ValidationCreator, the field.isRequired return always false !
For other inputs, everything is OK, because they are extending the
AbstractTextField class that override again the isRequired method (but with the
expected behavior)
> Upload component does not override the isRequired method
> --------------------------------------------------------
>
> Key: TAP5-2189
> URL: https://issues.apache.org/jira/browse/TAP5-2189
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-upload
> Affects Versions: 5.3.7
> Reporter: Emmanuel DEMEY
> Priority: Minor
>
> There is a bug when an upload field is required. The client-side validation
> works well, but I have some bad effect on the server side.
> The Upload component extends the AbstractField class, that implements the
> isRequired method (and returning always false). So if my field is required,
> when I create a ValidationDecorator, the field.isRequired return always false
> !
> For other inputs, everything is OK, because they are extending the
> AbstractTextField class that override again the isRequired method (but with
> the expected behavior)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira