[
https://issues.apache.org/jira/browse/TRINIDAD-1906?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12906769#action_12906769
]
Matthias Weßendorf commented on TRINIDAD-1906:
----------------------------------------------
For that we need to replace the request() function, provided by JSF
E.g. something like:
_replaceJsfAjaxFunctions = function()
{
if (this._jsfAjaxInit || typeof this._window.jsf == "undefined" ||
typeof this._window.jsf.ajax == "undefined")
{
return;
}
var a = jsf.ajax;
a._origRequest = a.request;
a._origAddOnEvent = a.addOnEvent;
a._origAddOnError = a.addOnError;
a.request = this.createCallback(_ourStuff_);
a.addOnEvent = this.createCallback(_ourStuff_);
a.addOnError = this.createCallback(_ourStuff_);
this._jsfAjaxInit = true;
}
> 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.