Announcement Announcement Module
Collapse
No announcement yet.
Custom Menu in view with Apache Tiles Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Custom Menu in view with Apache Tiles

    I'm new with ROO...
    I tried to create a custom menu for my application that uses apache tiles when viewing a specific view for my entity people.
    So I extended my views.xml with the following code:


    Code:
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <!DOCTYPE tiles-definitions PUBLIC "-//Apache Software Foundation//DTD Tiles Configuration 2.1//EN" "http://tiles.apache.org/dtds/tiles-config_2_1.dtd">
    <tiles-definitions>
        <definition extends="default" name="sec/people/list">
            <put-attribute name="body" value="/WEB-INF/views/sec/people/list.jspx"/>
        </definition>
    <definition extends="default" name="sec/people/show">
            <put-attribute name="body" value="/WEB-INF/views/sec/people/show.jspx"/>
        </definition>
    <definition extends="default" name="sec/people/create">
            <put-attribute name="body" value="/WEB-INF/views/sec/people/create.jspx"/>
        </definition>
    <definition extends="default" name="sec/people/update">
            <put-attribute name="body" value="/WEB-INF/views/people/update.jspx"/>
        </definition>
        
           <definition extends="default" name="/sec/people">
      		<put-attribute name="menu" value="/WEB-INF/views/sec/people/menu-people.jspx" />
    	</definition>
    
    </tiles-definitions>
    I included this:

    Code:
    <definition extends="default" name="/sec/people">
      		<put-attribute name="menu" value="/WEB-INF/views/sec/people/menu-people.jspx" />
    </definition>
    So that when I view people I can change the view of my menu, but this does not work.
    The definition of the menu in views.xml does not overwrite the previous definition.


    Thanks in advance
Working...
X