sree2007
Sep 11th, 2007, 10:15 PM
Hi,
In my current project , I need to develop a screen with Java Tiles, where the body contains two horizantal Tiles(tile1 and tile2). Each Tile has few buttons and each button click represents a new JSP page. The data for every button click, a JSP should be displayed on the same page(ie tile1). I'm also using
Java spring to control the navigation of pages internally .first half of
the screen displays data according to the first button(selected).2nd half of
the screen displays data accordingly the buttons selected.in both the cases
the whole page refreshes and content with buttons should be shown.
<definition name="view1" extends="template">
<put name="body1" value="/WEB-INF/jsp/tiles1.jsp"/>
<put name="body2" value="/WEB-INF/jsp/tiles2.jsp"/>
</definition>
<definition name="view2" extends="template">
<put name="body1" value="/WEB-INF/jsp/tiles3.jsp"/>
<put name="body2" value="/WEB-INF/jsp/tiles4.jsp"/>
</definition>
In the tiles-def.xml file presently my spring controller is returning a view with the definition name(view1/view2)according to the button clicked.
I'm looking for a solution where body1 and body2 will map to a jsp dynamically depending on the button clicked insted of mentioning jsp for each button.something like${body1}.
How to achieve it in Java Tiles? Does anyone have a sample code for this ?
In my current project , I need to develop a screen with Java Tiles, where the body contains two horizantal Tiles(tile1 and tile2). Each Tile has few buttons and each button click represents a new JSP page. The data for every button click, a JSP should be displayed on the same page(ie tile1). I'm also using
Java spring to control the navigation of pages internally .first half of
the screen displays data according to the first button(selected).2nd half of
the screen displays data accordingly the buttons selected.in both the cases
the whole page refreshes and content with buttons should be shown.
<definition name="view1" extends="template">
<put name="body1" value="/WEB-INF/jsp/tiles1.jsp"/>
<put name="body2" value="/WEB-INF/jsp/tiles2.jsp"/>
</definition>
<definition name="view2" extends="template">
<put name="body1" value="/WEB-INF/jsp/tiles3.jsp"/>
<put name="body2" value="/WEB-INF/jsp/tiles4.jsp"/>
</definition>
In the tiles-def.xml file presently my spring controller is returning a view with the definition name(view1/view2)according to the button clicked.
I'm looking for a solution where body1 and body2 will map to a jsp dynamically depending on the button clicked insted of mentioning jsp for each button.something like${body1}.
How to achieve it in Java Tiles? Does anyone have a sample code for this ?