Comments below, mailing list cc'd.

On 6/27/06, Vidhir Kaup <[EMAIL PROTECTED]> wrote:
>
> Hi Matt,
>
> I am working on a project in which I am implementing Tiles.
>
> 1: tiles-def.xml
> <definition name="xxxx.classic"
> path="/WEB-INF/views/jsp/layouts/classicLayout.jsp">
>  <put name="logo"
> value="/WEB-INF/views/jsp/header/logo.jsp" />
>  <put name="userInfo"
> value="/WEB-INF/views/jsp/header/userInfo.jsp" />
>  <put name="appName"
> value="/WEB-INF/views/jsp/header/appName.jsp" />
>  <put name="rightSection"
> value="/WEB-INF/views/jsp/header/links.jsp" />
>
>  <put name="mainMenu"
> value="/WEB-INF/views/jsp/header/menu.jsp" />
>
>  <put name="leftSection"
> value="/WEB-INF/views/jsp/body/leftNav.jsp" />
>  <put name="mainBody"
> value="/WEB-INF/views/jsp/body/landing.jsp" />
> </definition>
>
> 2. I am using the struts-menu for the <mainMenu> which is a horizontal list
> of items with vertical lists per item.
> Here is how my menu-config.xml looks:
> <?xml version="1.0" encoding="UTF-8" ?>
>
> <MenuConfig>
>  <Displayers>
>   <Displayer name="CoolMenu"
> type="net.sf.navigator.displayer.CoolMenuDisplayer" />
>  </Displayers>
>  <Menus>
>   <Menu name="_Client" title="Client">
>    <Item name="Contacts" title="Contacts" />
>    <Item name="Billing" title="Billing" />
>    <Item name="Reports" title="Reports" />
>     <Item name="Audit" title="Audit" />
>   </Menu>
>   <Menu name="_Portfolio" title="Portfolio">
>    <Item name="Setup" title="Setup" />
>    <Item name="Manage Events" title="Manage Events" />
>   </Menu>
>   <Menu name="_Program" title="Program">
>    <Item name="Search / Edit" title="Search / Edit" />
>    <Item name="Activity Log" title="Activity Log"/>
>    <Item name="Checklist" title="Checklist"/>
>    <Item name="Calendar View" title="Calendar View"/>
>   </Menu>
>  </Menus>
> </MenuConfig>
> As of now, I havent linked any of these items to pages.
> I need your help with 3 things:
> 1. Current Tab Highlight
> The particular header in the menu needs to remain highlighted when I am in
> any of the pages under that heading.
> e.g If I click <Contacts> under heading <Client> then Client has to be
> highlighted.

The default behavior is to try to match on URL, and then on last tab
clicked (b/c a cookie gets set when you click on it).  You could
customize this to somehow set an "activeTab" variable in your tile
definition.  I've done this with SiteMesh:

http://raibledesigns.com/page/rd?entry=dependency_injection_with_sitemesh

>
> 2. User Permissions
> I need to disable certain links for some user. Users in my application have
> roles and I need your help to understand the RolesAdapter interfarce.

If you use Container-Managed Authentication (or Acegi Security), the
RolesAdapter should work out-of-the-box.  Or you could create a custom
adapter:

http://struts-menu.sourceforge.net/security.html

>
> 3. OnMouseOver
> This is regarding some cosmetic changes for the struts-menu. Along with
> everything that already exists, is it possible to have the text in the menus
> have an underscore onmouseover.
> I should be able to convince the users to leave this requirement but they
> are getting very particular abt these things.

You should be able to add an onmouseover attribute to your menu item
in menu-config.xml.

Hope this helps,

Matt

>
> I have looked up a lot of websites and thought about a lot of alternatives
> but struts-menu seems to be the best and shortest solution for this
> requirement.
> Even if you could provide me answers for individual queries above, I would
> start working on them one by one. I would really appreciate your help in
> this direction.
>
> Regards,
> Vidhir Kaup

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
struts-menu-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/struts-menu-user

Reply via email to