[
https://issues.apache.org/jira/browse/COCOON-2207?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12601079#action_12601079
]
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");
subId.value="";
var frm = document.getElementById("form1");
frm.setAttribute("onsubmit", "forms_onsubmit();");
frm.setAttribute("ajax", "false");
cocoon.forms.ajax = false;
}
</script>
Changes in forms-field-styling.xsl :
<input name="forms_submit_id" id="forms_submit_id" type="hidden">
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
> 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.