No problem, this is easy to do.  Check the JavaDocs for
DocumentViewFactory:

http://mav.sourceforge.net/api/org/infohazard/maverick/view/DocumentView
Factory.html

Just redefine the document view-factory in your <modules> section like
this:

<modules>
  <view-factory type="document"
provider="org.infohazard.maverick.view.DocumentViewFactory">
     <default-bean-name value="m"/>
  </view-factory>
</modules>

Jeff Schnitzer
[EMAIL PROTECTED]

> -----Original Message-----
> From: Victor Rodriguez [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 24, 2002 12:40 PM
> To: [EMAIL PROTECTED]
> Subject: [Mav-user] Model root keyword
> 
> Hello all,
> 
>       I just started using Maverick for a new project. I found out
about
> Maverick because I was looking for a MVC framework that supported
> velocity. It took me a bit to figure things out, but I find myself
> liking Maverick more and more as I go along!
> 
>       Now this might be a silly/stupid question, but I'll ask it
anyways
> in
> the hope that some kind soul can elighten me. Is there a way to access
> the model in the view other than through the $model root? I decided on
> velocity in the first place to get away from all the unnecesary typing
> you have to do with jsps. Having to type "$model." for everything is
> something I would like to avoid, as it would save me time and would
make
> my templates easier to read and write. At the very least, is it
possible
> to change the root keyword, for example, to a single m?
> 
>       If this is something that can't be done without some hacking,
can
> someone point me in the right direction? I guess I need to know where
> the model is put into the velocity context.
> 
>       Thanks in advance for your help!
> 
> Best Regards,
> 
> Victor R.
> 
> ps. Yo tambien hablo espannol.
> 
> --
> victor m. rodriguez | ximis | telephone 915.832.0134 | fax
915.832.0135
> 6006 north mesa st. | suite 902 | coronado tower | el paso | tx |
79912
> 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Mav-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/mav-user
> Archives are available at http://www.mail-archive.com/


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Mav-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mav-user
Archives are available at http://www.mail-archive.com/

Reply via email to