Roller MenuTag

Matt mentioned the idea of adding an option for drop-down menus in the Editor UI and mentioned StrutsMenu. Some time ago, I looked at StrutsMenu and it did not do quite what I wanted to to, so I set about creating a generic JSP menu tag using an MVC architecture. The Roller MenuTag reads the menu configuration from an XML file and then calls a Velocity script to render the menu.

So, creating a new drop-down menu should be as simple as writing a new Velocity script to spit out the right code to invoke CoolMenu or Hiermenu or what have you.

Looking back, I probably should have used Struts Menu as a base for my work, but I wanted to try out the ideas in Gregory Gerard's article on Accelerating JSP Tag Development with Jakarta Velocity


Like this post?  del.icio.us Bookmark it   |   submit to dig digg.com Digg it   |   slashdot Slashdot it   |   technorati See who links to it

Comments:

Post a Comment:
  • HTML Syntax: Allowed

This work is licensed under a Creative Commons License.
Copyright 2002-2007, David M Johnson (dave.johnson at rollerweblogger.org)

This is a personal weblog, I do not speak for my employer.