Serge Knystautas wrote:
I'm using ajaxtags.sf.net in some JSPs and need to expose them through
some scripts in my templating system.  I'm going to be creating a
pseudo lifecycle and pagecontext classes to handle this... nothing
advanced like support a taglib that needs a body, but if anyone has
scrap code they can send me or wants a look, let me know.

I'm personally not interested in changing the velocity syntax to
support ad-hoc taglib creation, but saw this on the roadmap and
figured someone else has thought about it.

<sigh>

Well, FreeMarker has JSP taglib support that is, at this point, quite well tested. It's been part of our stable releases for several years and was one of the main reasons (the other being error reporting) that Webwork switched from using Velocity to FreeMarker.

In any case, by all accounts, it basically just works. (I never had cause to use it myself.)

If you're going to have to switch to FreeMarker eventually because it has the features you need, you might as well do it sooner rather than later. The pain incurred by migrating is the same and you might as well start getting the benefits immediately.

You know, I think the cost of switching may be overblown. You could probably summarize for page designers all the differences between VTL syntax and FTL syntax on a 3x5 index card.

#if (condition)...#else....#end

becomes:

<#if condition>....<#else>...</#if>

and

#foreach ($item in $items)....#end

becomes:

<#list items in item>...</#list>

and a few other things. It would be a little bump in the road, I guess, but people would probably get back up to speed within a couple of days at most.

Jonathan Revusky
--
lead developer, FreeMarker project, http://freemarker.org/


--
Serge Knystautas
Lokitech >> software . strategy . design >> http://www.lokitech.com
p. 301.656.5501
e. [EMAIL PROTECTED]


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

Reply via email to