I use form.showForm("sa1-display-pipeline");
can I use jx to do this

johnson


----- Original Message ----- From: "Leszek Gawron" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 04, 2004 4:23 PM
Subject: Re: how to use cocoon.session.getAttribute() in cform template



Johnson wrote:
I use the default sitemap

    <map:match pattern="*-display-pipeline">
      <!-- pipeline to show the form -->
      <map:generate src="forms/{1}_template.xml"/>
      <map:transform type="forms"/>
      <map:transform type="i18n">
        <map:parameter name="locale" value="{request:locale}"/>
     </map:transform>
no such thing as the *default* sitemap :)


what you should do is to declare JXTemplateGenerator in your sitemap:
<map:generator name="jx" src="org.apache.cocoon.generation.JXTemplateGenerator" label="content" logger="sitemap.generator.jx"/>


and then use it like this:
<map:generate src="forms/{1}_template.xml" type="jx"/>

so you can use all JXTG goodies.

HTH

--
Leszek Gawron                                      [EMAIL PROTECTED]


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to