----- Original Message ----- From: "Josema Alonso" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, November 09, 2002 5:35 PM Subject: Re: how to manage several XMLForms in a sitemap? (it was: dynamically choosing an action at runtime)
> > I am not sure if I would do this like you did. > > There are is a certain lifecycle contract between every Cocoon component > and > > the container. > > By invoking directly you may be violating this contract. > > I would probably let the sitemap do the forwarding to actions. > > In your case action sets might be good. > > http://xml.apache.org/cocoon/userdocs/concepts/actions.html > I considered them and maybe I'll use them. I'm trying to make a good > decision. > > > Alternatively you can use one dispatcher action which inherits from > > AbstractXMLFormAction and works directly with the backend based on the > > requested command. > I see. Someone pointed this one, too, but I'm that Avalon savvy to implement > something like this currently. Just open org.apache.cocoon.samples.xmlform.WizardAction.java then look more carefully in webapp/samples/xmlform > > > Yet another alternative is for the extending action to return an > objectmodel > > parameter which is matched later in the sitemap. > > <map:action type="myxmlformaction"> > > ... > > <map:call src="cocoon:{whichaction}"> > This one sounds new, interesting and easy to code. I'll give it a try :-) > > Thank you very much. > > > --------------------------------------------------------------------- > Please check that your question has not already been answered in the > FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> > > To unsubscribe, e-mail: <[EMAIL PROTECTED]> > For additional commands, e-mail: <[EMAIL PROTECTED]> > --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>