gunakan dojox.widget.DialogSimple untuk 1 form. Dalam form ini ada dijit.form.DateTextBox dengan option required=true.
Apabila form ini dalam 1 page biasa, DateTextBox itu akan validated apabila submit.
Namun apabila form ini dimuatkan dalam DialogSimple, tiba2 sahaja validation tidak berfungsi (validation berlaku, namun form masih dihantar).
Penyelesaian:
Gunakan dojo form
<form:form name="aprSessionSetupForm" id="aprSessionSetupForm" modelAttribute="aprSession" action="${formMethod}" data-dojo-type="dijit/form/Form" >
kemudian tambah skrip
<script type="dojo/on" data-dojo-event="submit">
if(this.validate()){
return true;
}else{
return false;
}
return true;
</script>
error, issue, RnD, notes for my colleagues ... anything related with my job. A good programmer should be a good and fast reader. This log just to cut the costs of my RnD. Nothing personal :)
Showing posts with label dojox.widget.DialogSimple. Show all posts
Showing posts with label dojox.widget.DialogSimple. Show all posts
Tuesday, 18 December 2012
Friday, 14 December 2012
dojox.widget.DialogSimple : Unable to load
Error:
RequestError: Unable to load /slaps/app/setup/aprSession/edit/APRS1?dojo.preventCache=1355475120302 status: 404
.cache.dojo/errors/create/</</_56d()dojo.js (line 15)
_3dd()dojo.js (line 15)
_3e9()dojo.js (line 15)
...);var _350=_33a(_34e,{el:1});var qt=_34e.tag;var _351=("*"==qt);var ecs=_300()["...
Punca:
Tidak boleh load sebab tiada request mapping sesuai dalam controller
Subscribe to:
Posts (Atom)