Many thanks, Marius, it works. If error is returned, URL is with action "preview" and entered data are still not saved. Valdis
Hi Valdis,
Did you try adding a hidden input to your form that submits the sheet?
<input type="hidden" name="sheet" value="$!escapetool.xml($request.sheet)" />
This way when the save action is 'rendered', because the validation failed, the sheet manager can see the sheet parameter on the request. I haven't tested though. You may have an issue if your sheet is bound to the edit action (in case you added a sheet descriptor object) since the action will be 'save' when the validation fails, I think. To be tested.
Hope this helps, Marius
On Sat, Oct 26, 2013 at 4:13 PM, Valdis Vītoliņš <[email protected]> wrote:
In general I use custom edit sheet passed as a get/post parameter as described in http://extensions.xwiki.org/xwiki/bin/view/Extension/Sheet +Module and validation with groovy according to: http://platform.xwiki.org/xwiki/bin/view/DevGuide/Creating+a+form+with +validation+and+tooltips
Problem is that after validation error default sheet is used. What could be means to return to previous dynamically passed sheet?
Thanks in advance! Valdis
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users