grails still hates me,
the last couple of hours I tried to figure out why my multipartform did not work with g:actionsubmit as they were supposed to be. They always used "get" instead of "post" and so they failed.
solution:
You need to define this in your interceptor of the controller. It is ugly, but it works.
// temporary hack since g.actionSubmit does not work with multipart forms
if (params["_action_save"]) {
save()
}
else if (params["_action_update"]) {
update()
}
else if (params["_action_delete"]) {
delete()
}
else if (params["_action_Save"]) {
save()
}
else if (params["_action_Update"]) {
update()
}
else if (params["_action_Delete"]) {
delete()
}
you can read more about this issue here:
http://jira.codehaus.org/browse/GRAILS-2774
Friday, August 01, 2008
Subscribe to:
Post Comments (Atom)
2 comments:
This wouldn't be a problem if you used django ;p
-B
i would give django a try in a non java environment, but in my case it has to be based on the jvm and I do not want to run django in jython.
Post a Comment