Hi all,
note: manual section refers to version 1.8.2 chapter 23.9
Once I had the "registration" example working I decided to redo it with
dojo.
It would "fatal" on the mailing list subscriptions page if nothing was
selected -- never made it to the validation stage.
After quite a bit of sleuthing I found the culprits.
1) It seems that dojo strips submit input elements. As long as there
are other, non-multi elements in the subform it will still work because
those elements are included in the array and pass the is_array test.
2) If, on the other hand, a subform contains only multi and none of them
are chosen and since the submit has been stripped *nothing* will be
posted. This causes the application to fail the is_array test.
Solution:
If a subform contains nothing except multi type elements include a
hidden input element which contains the name of the subform. This
insures that an array will be submitted and the app will proceed to
validation. Plus there's a css side benefit: you know the ids of the
decorators that you'll want to hide.
Hope this saves somebody else some time :)