[
https://issues.apache.org/jira/browse/TRINIDAD-1199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12627698#action_12627698
]
Matthias Weßendorf commented on TRINIDAD-1199:
----------------------------------------------
the client-side validation engine is a bit ugly...
so, best would be... to have a _updateValidators(..........)
to at least ensure something like is is re-set on every PPR as well:
// write out whether or not this element is required
writer.writeText(convertValidate.required? "1" : "0", null);
But writing out a bunch of extra JS could cost some perf....
> Field is always required, even when set to false via PPR
> --------------------------------------------------------
>
> Key: TRINIDAD-1199
> URL: https://issues.apache.org/jira/browse/TRINIDAD-1199
> Project: MyFaces Trinidad
> Issue Type: Bug
> Components: Components
> Affects Versions: 1.2.9-core
> Reporter: Stephen Friedrich
> Attachments: required.png
>
>
> When a tr:inputText is switched from required="true" to required="false"
> using PPR, then the required icon is correctly removed, but validation still
> fails if the inputText is empty.
> See TRINIDAD-1130 for an example app.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.