O

M

G

Please forgive the noise.  However, in hopes of helping some poor soul down
the road who pulls something as stupid as I just did, here's a ***REALLY***
important (even if pathetically kindergarten) tip:

Make sure you actually add the damn value to the event!!!!  (e.g.
event.setValue("myValue",dumbass);)

/wrists

As an aside, also be sure you add the value to the event -before- you add
the result.

== correct ==
event.setValue("myValue",dumbass);
event.addResult("Yeah, I'm an ID10T");

== INcorrect ==
event.addResult("Yeah, I'm an ID10T");
event.setValue("myValue",dumbass);


HTH


On Sat, Jun 25, 2011 at 11:17 AM, Matt Quackenbush wrote:

> I'm doing some maintenance work on an old MG2 application and am running
> into a situation where preservestate is not behaving as it should.
>
> <result name="FooHappened" do="this.other.thing" redirect="true"
> preserveState="true" />
>
> Yes, preserveState defaults to true anyways, but I added the explicit
> declaration since I am experiencing the weird behavior.  Unfortunately, the
> behavior did not change.
>
> I have stepped through the entire process and everything behaves as
> anticipated right up until this controller line:
>
> event.addResult("FooHappened");
>
> Obviously that triggers the <result /> above, and the request is redirected
> as it should be.  However, upon arrival at "this.other.thing" the event
> values are all gone.  Session variables are enabled (and used in plenty of
> places), and the sessiontimeout is set at an appropriate length.
>
> I am kind of at a loss here, as everything _should_ be ready to rock.  Any
> ideas as to what I might have overlooked here??
>
>

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