cd34
unread,Nov 2, 2009, 4:46:33 PM11/2/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ToscaWidgets-discuss
I have an application where I have a url of:
/widgets
From that list, you can view the detail of an individual widget with:
/widget/1
This page displays widget_header and widget_detail lines. The form at
the bottom allows the user to add a new detail line.
@validate(widget_form, error_handler='widget')
However, when I need to do validation on the form submission on the
url /widget/1, error_handler is set to 'widget', which causes the page
generation to fail because it doesn't pass id, and, request.params is
empty at this point. Since the form is adding a detail line to a
header record, using RestController doesn't seem to really fit the
requirements unless I am not implementing RestController correctly.
How have others handled this situation without resorting to a modal
form?