Hi Ryan,

I believe you are right. The documentation example:
http://docs.model-glue.com/wiki/ReferenceMaterials/ModelGlueXmlReference#result

Mentions: PreserveState (Optional, default = "true") - If set to false and
REDIRECT is set to true, then all state values will removed before
redirecting to the event handler declared in the DO attribute. If using this
be sure that session management is enabled.


So, if you have session management on, and you are sure this isn't working,
let's move to step 2: Please read this and give us the pertinent information
so we can provide more detailed help:

http://docs.model-glue.com/wiki/FAQs/WhatInformationShouldIProvideForTheMailingList


DW





On Wed, Sep 22, 2010 at 1:31 PM, Ryan Stille <[email protected]> wrote:

> 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]<model-glue%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/model-glue?hl=en




-- 
William Osler - "We are here to add what we can to life, not to get what we
can from life."

-- 
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

Reply via email to