On Wed, 2009-01-07 at 13:15 +0100, Thorsten Scherler wrote:
> El mié, 07-01-2009 a las 13:08 +0100, Andreas Hartmann escribió:
> > Hi Thorsten,
> > 
> > Thorsten Scherler schrieb:
> > > I have a usecase where I need to switch from jx to "normal" pipeline
> > > processing for the view due to performance optimizations.
> > > 
> > > How can I hook up this up, since now I have in my config
> > > <view uri="modules/someThing.jx"/>
> > > but it would need to be a pipeline match.
> > 
> > I usually do it like this:
> > 
> > 
> > <jx:choose>
> >    <jx:when test="…"> (view selection)
> >      <form …>
> >        …
> >      </form>
> >    </jx:when>
> >    <jx:otherwise>
> >      <inc:include src="cocoon://myPipelineView.xml"/>
> >    </jx:otherwise>
> > </jx:choose>
> > 
> > 
> > Would this work for you?
> > 
> 
> Hmm, should but that does not really feels right. 
> 
> Will try and thanks for the hint. 

It works with limitations. Let me explain. 

I am using the cocoon paginator to display some reports. [1] Since some
reports can become rather big I need to paginate them.

The paginator will return something like 
<page:link type="prev" uri="/cocoon/samples/paginator/page(1)"
page="1" /> 

However it seems using 
<cinclude:include
src="cocoon://modules/reporter/${report}(${reportPage})"/>
it uses the underlying url (of the usecase) and not the included one.
This makes the links unusable.

I just thought about a workaround for my usecase, but that is why I said
it does not feel right. 

[1] http://cocoon.apache.org/2.1/howto/howto-paginator-transformer.html

salu2
-- 
Thorsten Scherler <thorsten.at.apache.org>
Open Source Java <consulting, training and solutions>



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to