You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Adam Winer (JIRA)" <de...@myfaces.apache.org> on 2007/09/24 17:36:51 UTC
[jira] Commented: (TRINIDAD-695) tr:form skips c/s validation on
submit by 'defaultCommand'
[ https://issues.apache.org/jira/browse/TRINIDAD-695?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12529893 ]
Adam Winer commented on TRINIDAD-695:
-------------------------------------
Easy to turn on client-side validation: in Core.js, _submitOnEnter,
change
submitForm(frm,0,params);
to
submitForm(frm,1,params);
But we can only change that 0 to 1 if the button isn't immediate, which
is not easy.
> 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.