[ 
https://issues.apache.org/jira/browse/COCOON-2207?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12600758#action_12600758
 ] 

Mohammed Aashik commented on COCOON-2207:
-----------------------------------------

Hi,
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; 
        } 
</script> 

My Form Template is look this

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


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.

Regards,
Mohammed Aashik.

> Validatiion errors not working in ajax
> --------------------------------------
>
>                 Key: COCOON-2207
>                 URL: https://issues.apache.org/jira/browse/COCOON-2207
>             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.

Reply via email to