RSS feed
<< SHIMO, an extremely well done CISCO compliant VPN Client for OSX | Home | RailsWorks beta preview; source code available >>

JMaki, JPublish ... what if?

These days I am trying to design an additional layer for using AJAX with JPublish. Now that DWR works beautifully with JPublish, I would like to add some Ajax UI support to JPublish to be used in the Views, something like the old AjaxTags, not via any taglibs definitely, but a streamlined AJAX support for our Velocity or Freemarker templates. This is where Rails excels again :(

I browsed again the web for finding some Ajax macros for Velocity or Freemarker (JPublish's favorite template managers) but nothing so far.

And then I found something very cool: JMaki. There is a demo showing JMaki and DWR working together and I am almost convinced, but I'll have to write some more integration tests and only after that I'll try to see how JMaki can be integrated with JPublish; I'll let you know how it goes.

If you're a Glassfish user, then find some time to spend and play with JMaki; JMaki is very nice.

I'll keep you tuned.
-florin


Re: JMaki, JPublish ... what if?

Nice to see others trying out jMaki. jMaki works with any Servlet 2.4 / JSP 2.1 container including tomcat. If it doesn't work with your servlet container let us know.

Re: JMaki, JPublish ... what if?

Greg, I can't find an easy and elegant way to "convince" the taglibs to work with Velocity (rumors are that FreeMarker supports taglibs ...), in JPublish we are not supporting JSP ... on purpose.

I wonder if it will be possible to use jMaki without the taglibs? What am I going to loose without the taglib support from jMaki?

Re: JMaki, JPublish ... what if?

jMaki works with facelets which is not advertised too much. There is an example in our bundle. We also work with PHP, Embedded JavaSript (Phobos), and we have Ruby support as well. The design of our runtime should allow for velocity and tapestry evironments as well.

Re: JMaki, JPublish ... what if?

Greg - could you please recommend a starting point for using jMaki as a view renderer only? Simply put, in JPublish we're merging the templates with the pages and obtain the final html (generally speaking), and what I am trying with this integration is to render Velocity first, merge the templates and then in a second tier will render jMaki code. Eventually I could look at a jMaki ViewRenderer only, where Velocity/Freemarker or a third party rendering engine will be discarded. Thank you!

Re: JMaki, JPublish ... what if?

jMaki works great with Glassfish, but you are not limited to that ... it's just a class library that will work on any reasonably recent servlet container. Oh, and the jMaki runtimes work for PHP, serverside Javascript (Project Phobos) and Ruby on Rails as well.

Re: JMaki, JPublish ... what if?

As expected, is running very nice with Jetty :) and I guess it will run with Tomcat as well.

Re: JMaki, JPublish ... what if?

We test on Tomcat 5.5 which is bundled with Netbeans and jMaki works just fine. We make it a point to make sure we allow for J2SE 1.4 as well.

Add a comment Send a TrackBack