cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christopher Oliver" <>
Subject RE: Need help fixing a Woody flow sample
Date Thu, 21 Aug 2003 20:17:45 GMT
Oh, you're talking about cocoon.sendPage(). Well, yeah you have to pass
the object then. The way you did it is correct. Of course, you could
have simply passed the form widget itself:

cocoon.sendPage("success-pipeline", form.getModel());


Most of this _is_ documented:


-----Original Message-----
From: Timothy Larson [] 
Sent: Thursday, August 21, 2003 12:54 PM
Subject: Re: Need help fixing a Woody flow sample

Thanks for the help.
So far, this is the only way I have gotten this to work.
In the flow change:
  cocoon.sendPage("success-pipeline", {"woody":form.getModel()});
and in a JXTemplate file use this syntax to get the value of the
"name" widget:
  <h3>Name: ${}</h3>

--Tim Larson

--- Christopher Oliver <> wrote:
> IMO the change to use "woody-form" is very poor choice because its not
> valid Jexl identifier. This means that if you want to access it in 
> JXTemplate you have to use this syntax:
> ${flowContext['woody-form'].someWidget}
> If you change it to say 'woodyForm' you can access it directly:
> ${woodyForm.someWidget}
> As far as Xsp, you should be able to access it using jpath:
> <jpath:value-of select="woody-form/someWidget"/>
> My $0.02,
> Chris

Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.

View raw message