cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Danny Bols" <db...@osirion.be>
Subject RE: Woody and Flow Script
Date Wed, 12 Nov 2003 15:56:48 GMT
Thanks for the quick response.

I like the FlowJXPathSelectionListBuilder solution but I it's not available
in my Cocoon 2.1.2 :-(.
Any idea if it will be shipped with the new upcoming release?

--

Danny

> -----Original Message-----
> From: Bruno Dumon [mailto:bruno@outerthought.org]
> Sent: woensdag 12 november 2003 16:08
> To: users@cocoon.apache.org
> Subject: Re: Woody and Flow Script
>
>
> On Wed, 2003-11-12 at 16:06, Antonio Gallardo wrote:
> > Danny Bols dijo:
> > > 2. How can I fill the key/value pairs of a selection list
> based upon the
> > > values available in a business object?
> >
> > Hi:
> >
> > We use 2 internal pipeline to address this:
> >
> > <!-- Flow to generate XML docs to fill combos -->
> > <map:match pattern="*.combo">
> >   <map:call function="{1}Combo"/>
> > </map:match>
> >
> > <!-- Combo data in Woody format -->
> > <map:match pattern="*Combo-data">
> >   <map:generate type="jx" src="forms/combo/{1}.xml"/>
> >  <map:serialize type="xml"/>
> > </map:match>
> >
> > The flow is:
> >
> > function auth_resourceCombo() {
> >     var factory = cocoon.getComponent(Packages.o.a.c...JdoPMF.ROLE);
> >     var bean = new Packages.test.Auth_resourceList();
> >     var handler = new Packages.test.Auth_resourceHandler();
> >     handler.getList(bean, factory);
> >     cocoon.sendPage("auth_resourceCombo-data", {"bean": bean});
> >     cocoon.releaseComponent(factory);
> > }
> >
> > In woody we write:
> >
> > <wd:selection-list src="cocoon:/auth_resource.combo" dynamic="true"/>
> >
> > The handler is a java class that use OJB.
> >
> > Hope this help. :-D
>
> Or much simpler, use the flow-jxpath selection list implementation. See
> also the javadocs of the FlowJXPathSelectionListBuilder class for more
> information:
>
> http://cvs.apache.org/viewcvs.cgi/*checkout*/cocoon-2.1/src/blocks


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message