I created a template using Tiles. No problem. I needed a dynamic menuing system. So I created a tag lib that would output the desired menu based on a parameter passed to it. I then put the taglib in the tamplate like this:
<table>
<tr><nd:tabmgr page="main"/></tr>
</table>
This works great other than now all pages that use the template have the "main" menu tab highlighted. So I need to dynamically change page. Ok. Fine. Use the template to define page, right? I tried this:
<table>
<tr><nd:tabmgr page="<tiles:get name="page"/>"/></tr>
</table>
Well, I quickly found out I cannot use a jsp tag as an attribute to another jsp tag. This is a no go. Makes sense, but, how do I get my menu to work? I want the tempate to control the menu. If possible, I want the tamplate to control a taglib that controls the the menu. Any ideas?
<table>
<tr><nd:tabmgr page="main"/></tr>
</table>
This works great other than now all pages that use the template have the "main" menu tab highlighted. So I need to dynamically change page. Ok. Fine. Use the template to define page, right? I tried this:
<table>
<tr><nd:tabmgr page="<tiles:get name="page"/>"/></tr>
</table>
Well, I quickly found out I cannot use a jsp tag as an attribute to another jsp tag. This is a no go. Makes sense, but, how do I get my menu to work? I want the tempate to control the menu. If possible, I want the tamplate to control a taglib that controls the the menu. Any ideas?