Hello,

Attila Szegedi wrote:
----- Original Message -----
From: "Rickard Öberg" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 28, 2003 6:48 PM
Subject: Re: [OS-webwork] Freemarker WAS Using SiteMesh for the UI tags

<snip/>

Actually if I understand it right, the integration is quite trivial. We have
a Model2-compliant view servlet bundled into the core distribution. It lets
templates access request, session, and servlet context attributes. It also
lets templates use any JSP taglib present in the webapp. Therefore it is
pretty much a drop-in replacement for JSP as far as WebWork is concerned. Is
there anything else codewise that should be done for integration? (My
feeling is that there isn't, but please correct me if there are some
gotchas).
Although you could call the WW JSP tags, in many cases this won't make sense. For instance, you will want to use the FM <if> tag, not the <ww:if> tag. Velocity doesn't support the WW expression language. FM may not need to support it (much) either.

IF FM has something like Velocity's context chaining, you could transparently support finding objects on the ValueStack. See WebWorkVelocityServlet. For more specific access to the ValueStack, it should be put into the context so one can call specific methods to access or manipulate the stack. I just posted a couple of suggested ways this could be done for Velocity.

I guess all it takes is adding another chapter to WebWork documentation that
shows how to set up FreeMarker's built-in view servlet in the build.xml and
maybe a small example. I can prepare this documentation if you're willing to
place it into the "Supported Views" chapter.
For examples, you will also want to implement the monthlist example plus some more substantive ones if possible.

Cheers,
  Attila.


/Rickard

-Bill




-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to