tiles-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antonio Petrelli" <antonio.petre...@gmail.com>
Subject Re: [Tile2] Help in Page Layout Design using Tiles2
Date Mon, 12 Nov 2007 18:30:07 GMT
Mmm... You are confusing Tiles and Frames:
http://tiles.apache.org/faq.html#refresh

Antonio

2007/11/12, Raghuveer Rawat <raghuveer.rawat@gmail.com>:
>
> There is little difference between Left Panel and Center Panel links.
> Okay, let me explain it with below example..
>
> This definition will define mail layout for the page.
>
> <definition name=".layout" template= "/WEB-INF/common/Layout.jsp">
> <put-attribute name="title" value ="Title"/>
> <put-attribute name="header" value="/WEB-INF/common/Header.jsp"/>
> <put-attribute name="leftPanel" value="nothing"/>
> < put-attribute name= "content" value="nothing"/>
> <put-attribute name="rightPanel" value="nothing"/>
> <put-attribute name="footer" value="/WEB-INF/common/Footer.jsp"/>
> </definition>
>
> My my case main Menu is part of Header.jsp and they are simple anchor
> tags.
> Now when we click on My Account Link in Main Menu then below definition
> will
> replace Left, Center and Right Panel.
>
> <definition name="myAccount" extends=".layout">
> <put-attribute name="title" value="My Account"/>
> <put-attribute name="leftPanel" value="/WEB-INF/jsp/MyAccountLeft.jsp"/>
> <put-attribute name="content" value="/WEB-INF/jsp/MyAccount.jsp"/>
> <put-attribute name="rightPanel" value="/WEB-INF/jsp/Right.jsp"/>
> </definition>
>
> Now again if we click on My Articles link in Left Panel (MyAccount
> Left.jsp)
> then only Center Panel will get change to My Articles.jsp. Here there is
> no
> change in Left or Right Panel.
>
> <definition name="myArticles" extends="myAccount">
> <put-attribute name="title" value="My Articles"/>
> <put-attribute name="content" value="/WEB-INF/jsp/MyArticles.jsp"/>
> </definition>
>
> Now again this page MyArticles.jsp have a menu items (few links) in it for
> diffirentiating between diffirent types of Articles. Menu items will be
> static but page below menu will be changed based on Menu Item Selection.
>
> I also to change background color of Menu selection in Main Menu, Left
> Menu
> and Center Menu.
> Is it possible to do this using Tiles?
>
>
>
> On 11/12/07, Antonio Petrelli <antonio.petrelli@gmail.com> wrote:
> >
> > 2007/11/12, Raghuveer Rawat <raghuveer.rawat@gmail.com>:
> > > I am wondering what will be best way to Design Layout of this
> Center.jsp
> > .
> >
> > I just cannot understand what is your doubt...
> > From my POV the links in your left part and in your center part work
> > the same way: they both link to a new page, where the center part
> > changes.
> > So probably you have to design them in the same way.
> >
> > Antonio
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message