I have two events, one that displays a form (form.display) and one
that the form submits to (form.submit). After form.display posts data
to form.submit the user gets redirected back to form.display using
this in my XML:
<result do="form.display" redirect="true"/>
My problem is sometimes errors happen on form.submit, I'd like to
display these errors next to to the form elements on the form.display
page. What is a good way to do this? I thought state was supposed to
be preserved when doing a redirect, but if I set something in the
form.submit event like:
<cfset arguments.event.setValue("ryantest", "foo")>
Then in my view page "ryantest" is blank:
<cfoutput>its #viewstate.getValue("ryantest")#</cfoutput>
ryantest is blank. Is that supposed to work? Or is there a better/
different way of doing this?
Thanks,
-Ryan
--
Model-Glue Sites:
Home Page: http://www.model-glue.com
Documentation: http://docs.model-glue.com
Bug Tracker: http://bugs.model-glue.com
Blog: http://www.model-glue.com/blog
You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en