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 Thu, 29 May 2008 12:32:44 GMT


Mohammed Aashik commented on COCOON-2207:

First of all ,Thanks for your reply. 
I've some ajax based repeaters in my form. 
As u said ,i've added below code in forms-styling.xsl

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

My Form Template is look this

<ft:form-template id="form1" action="#{$cocoon/continuation/id}.continue" method="POST"
<ft:widget id="save" class="Button">
              <fi:styling onClick="turnOffAjax();"></fi:styling>

After including the above script ,we found that the existing Repeater functionality throwed
an error,which is shown below

java.lang.IllegalStateException: Submit widget already set to Submit 

Thanks in Advance.

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
> 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