[
https://issues.apache.org/jira/browse/TRINIDAD-695?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12577117#action_12577117
]
Vadim Dmitriev commented on TRINIDAD-695:
-----------------------------------------
Just a wild thought: won't it be a little more proper not to fire
"submitForm(frm,1/0,params);" from _submitOnEnter, but to execute JS contained
in "onclick" of element specified in "defaultCommand" of tr:form?
In this case 'immediate' state of commandButton will be indirectly properly
handled by c/s validation. At least tr:form submit behavior will be consistent
with behavior of targeted commandButton.
> tr:form skips c/s validation on submit by 'defaultCommand'
> ----------------------------------------------------------
>
> Key: TRINIDAD-695
> URL: https://issues.apache.org/jira/browse/TRINIDAD-695
> Project: MyFaces Trinidad
> Issue Type: Bug
> Affects Versions: 1.0.2-core
> Reporter: Vadim Dmitriev
>
> tr:form skips client-side validation when submitted by "defaultCommand".
> For example:
> <tr:form defaultCommand="submitter">
> <tr:inputText value="" required="true" />
> <tr:commandButton id="submitter" />
> </tr:form>
> will produce c/s validation errors when tr:commandButton clicked, but will
> submit form to server if 'enter' is pressed while in tr:inputText.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.