[
https://issues.apache.org/jira/browse/TRINIDAD-1906?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12906906#action_12906906
]
Andrew Robinson commented on TRINIDAD-1906:
-------------------------------------------
I would vote that this is not a bug, and should not be fixed for Trinidad 2.
f:ajax is a JSF tag, not a Trinidad tag and we should not have to support it
with respect to client validation in JSF 2.0 for the following reasons.
I would say that we should wait for JSF 2.1 where, hopefully, the EG puts in
API hooks to allow users to perform client side validation during a JSF ajax
request. It was commented for JSF 2.0 that such a hook should exist and the EG
dropped the ball on it and it was not included into the spec.
A work around is to use the Trinidad APIs to submit the request. I would say
that we could provide a tr:ajax that would be supported or we could hijack the
f:ajax tag handler, although I would hesitate to do that as it would make
Trinidad not "play nice" with other JSF libraries.
I do not feel that replacing the JSF request function is a good choice as we
ought not to be messing with the JSF internal code if we can possibly help it.
> Client Validation igonred with <f:ajax> tag
> -------------------------------------------
>
> Key: TRINIDAD-1906
> URL: https://issues.apache.org/jira/browse/TRINIDAD-1906
> Project: MyFaces Trinidad
> Issue Type: Bug
> Affects Versions: 2.0.0.3-core
> Reporter: Matthias Weßendorf
>
> Have a form like:
> ...
> <tr:form....>
> <tr:panelFormLayout>
> <tr:inputText id="ajax" label="Field 1:">
> <f:ajax event="change" />
> </tr:inputText>
> <tr:inputText id="ppr" label="Field 2:" required="true">
> </tr:inputText>
> </tr:panelFormLayout>
> </tr:form>
> ...
> Go to field1, type and TAB out:
> => An ajax request is queued and send down to the server
> In Trinidad (with autosubmit, instead of f:ajax) you'd see a warning that
> "Field 2" is required
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.