Sorry, I've been really slacking on the docs. Tomorrow I'll put some
good time into it, and hopefully get b2 out in the next couple days.
You can specify a type for both views and transforms. You can specify
defaults like this:
<maverick version="2.0" default-view-type="domify"
default-transform-type="xslt">
...
</maverick>
Otherwise, the default will be the last view or transform type defined.
If you don't define a factory, the defaults are "document" and "xslt".
Take a look at the friendbook-domify example in the opt-domify package.
The current b1 version doesn't illustrate setting the
limit-transform-param, but the cvs version does. Here's the
maverick.xml:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/mav/opt-domify/examples/f
riendbook-domify/WEB-INF/maverick.xml?rev=1.4&content-type=text/vnd.view
cvs-markup
Jeff Schnitzer
[EMAIL PROTECTED]
> -----Original Message-----
> From: Gerald de Jong [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 05, 2002 12:04 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [Mav-user] Reader as Model
>
> aye, i used <view .... type="trivial"> and it worked. which is the
> default
> view type?
>
> something else.. where does "limit-transform-param" get set, and is
there
> a
> default?
>
> On Tuesday 05 February 2002 08:56, Gerald de Jong wrote:
> > i see it instantiating the trivial view during startup, but i can't
> figure
> > out how to "use" the trivial view. is there a "type" attribute or
> something?
> >
> > i'm pretty lost without config docs, because i don't really have the
> time
> to
> > read sources to find config things out or configure by trial and
error.
> is
> > there a better way?
> >
> > On Monday 04 February 2002 15:00, Jeff Schnitzer wrote:
> > > Are you using the "trivial" view type?
> > >
> > > Since this feature made no use of Domify, and was useful to people
who
> > > aren't using Domify, we moved it into a separate view type. The
> trivial
> > > view can return the model as a Reader, a String, or a Node and it
will
> > > be handed off to whatever kind of transform you specify.
> > >
> > > You can also return null and specify no transform and simply write
> data
> > > back to the HttpServletResponse in your controller.
> > >
> > > Jeff Schnitzer
> > > [EMAIL PROTECTED]
> > >
> > > > -----Original Message-----
> > > > From: Gerald de Jong [mailto:[EMAIL PROTECTED]]
> > > > Sent: Monday, February 04, 2002 8:44 AM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: [Mav-user] Reader as Model
> > > >
> > > > is it not the case that if you return a java.io.Reader as a
model in
> > > your
> > > > controller, the reader is taken as-is and read to send the
results
> to
> > > your
> > > > XSLT pipeline?
> > > >
> > > > i'm using Maverick 2 and it changes the result to a single tag
<FD/>
> > > which
> > > > is
> > > > not something recognizable that the reader would have produced.
> > > > --
> > > > Beautiful Code BV
> > > > Rotterdam, The Netherlands
> > > > http://www.beautifulcode.nl
> > > >
> > > > _______________________________________________
> > > > Mav-user mailing list
> > > > [EMAIL PROTECTED]
> > > > https://lists.sourceforge.net/lists/listinfo/mav-user
> > >
> > > _______________________________________________
> > > Mav-user mailing list
> > > [EMAIL PROTECTED]
> > > https://lists.sourceforge.net/lists/listinfo/mav-user
> > >
> > >
> >
> > --
> > Beautiful Code BV
> > Rotterdam, The Netherlands
> > http://www.beautifulcode.nl
> >
> > _______________________________________________
> > Mav-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/mav-user
> >
> >
>
> --
> Beautiful Code BV
> Rotterdam, The Netherlands
> http://www.beautifulcode.nl
>
> _______________________________________________
> Mav-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/mav-user
_______________________________________________
Mav-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mav-user