cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mohammed Aashik (JIRA)" <>
Subject [jira] Commented: (COCOON-2207) Validatiion errors not working in ajax
Date Fri, 30 May 2008 10:49:45 GMT


Mohammed Aashik commented on COCOON-2207:

Hi kamal Bhatt,
Thanks for your feedback.
We've fixed the issue as per ur suggestion ,but with a small change.

Thought it may be useful for somebody in need,and hence added the code snippet below
Anyway i once again thank for your reply.

 <script type="text/javascript"> 
        function turnOffAjax() 
           var subId = document.getElementById("forms_submit_id"); 
            var frm = document.getElementById("form1"); 
            frm.setAttribute("onsubmit", "forms_onsubmit();"); 
            frm.setAttribute("ajax", "false"); 
            cocoon.forms.ajax = false; 

Changes in forms-field-styling.xsl :

<input name="forms_submit_id" id="forms_submit_id" type="hidden">

Mohammed Aashik.

> Validatiion errors not working in ajax
> --------------------------------------
>                 Key: COCOON-2207
>                 URL:
>             Project: Cocoon
>          Issue Type: Bug
>          Components: * Cocoon Core
>    Affects Versions: 2.1.10
>            Reporter: Mohammed Aashik
>             Fix For: 2.1.10
> Hi,
> Im using Cocoon 2.1.10. I've implemented ajax in my form.
> My form has plenty of widgets. So,i need to have a general area to show all the validation
error messages. 
> When im using ajax ,<fi:validation-errors> is NOT working but when i make ajax="false"

> <fi:validation-errors> is working fine. 
> And one more thing if i make ajax="false" a validation error Message (Exclamation mark)
is shown near the tab,
> but if i make ajax="true" validation error Message (Exclamation mark) is NOT shown near
the tab.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message