Hi all i am using tiles as a templating mechanism in my application and like
the
controller mechanism a lot.

This is my defintion which will add 3 tiles (add,rank,publish) in a column
layout.

<definition name="godavari.index.deinteres.body"
path="/layouts/zonesLayout.jsp"
  controllerUrl="/godavari/controller/linksSettings.do">

    <put name="add" value="/portal/deinteres/tiles/addLinkTile.jsp" />
    <put name="rank" value="/portal/deinteres/tiles/deinteresSettings.jsp"
/>
    <put name="preview" value="/portal/deinteres/tiles/currentDeinteres.jsp"
/>
</definition>

All three tiles in this definition use the same data coming from the
controller and disply them in different formats.

i do this in addLinkTile.jsp.

<tiles:importAttribute name="links" />

But my individual files cannot find this data in the component context
unless i define three seperate defintions and use a column layout to display
them is there a way to jsut declare the controller once and use in all the
tiles that are added to a definition. If i use seperate defintions
controller is called thrice and in real world situations will cause lot of
over head on the server.

Any help in this matter from cedric or anyone else will be greatly
appreciated.

Also is there a way i can change my "preview" tile based on some input from
the client in the controller if so can anyone post a snippet please.

Right now in my controller i display different data based on the user input
in colloboration with a plain action.

Regards
Rajesh Kalluri


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>


Reply via email to