Wendy,

The beauty of tiles is that they can operate entirely as autonomous
components. The case you are talking about is the simplest, one
controller (=the Struts Action class) that forwards to a view which is
composed of several small tile views where each tile contains JSP and
has no action to execute. 
The case I am talking about is having a page with tiles in it, where
each can have something to do before going to the tile's JSP fragment.
The case I was talking about is when you have a tile which is part of a
big page and can be planted anywhere, that needs to initialize a form.
The containing page's controller action cannot do that for the tile
because it does not always know that the tile will be included.

Hope this time I made myself clearer :)

--Erez

-----Original Message-----
From: Wendy Smoak [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 02, 2004 8:20 PM
To: Struts Users Mailing List
Subject: Re: initialize a form in a tile

From: "Jim Barrows" <[EMAIL PROTECTED]>
>   <put name="formBit" value="/setupForm.do"/>

I have nothing with .do in my tiles-defs.xml file.  One of mine looks
like:

  <definition name="account.inquiry.page" extends="masterPage">
    <put name="heading"     value="Account Inquiry" />
    <put name="tabs"        value="/WEB-INF/jsp/accountInquiryMenu.jsp"
/>
    <put name="body"        value="/WEB-INF/jsp/accountInquiry.jsp" />
  </definition>

accountInquiry.jsp has the form in it, and the Action that forwards to
'account.inquiry.page' handles prepopulating the form if necessary.

I don't think I understand the original question though... the Tiles
stuff
comes at the end, it's a replacement for the JSP.  The Tiles controller
just
handles assembling the parts, it doesn't need to know about the form.
At
least, not the way I use it.

-- 
Wendy


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



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

Reply via email to