> -----Original Message----- > From: Vic Cekvenich [mailto:[EMAIL PROTECTED] > Sent: 24 February 2003 15:24 > To: [EMAIL PROTECTED] > Subject: Re: [TILES] Foxy Tiles Problem > > > One thing that might help you is this, Tiles 201, that basicaly has a > controler for each tile, with it's own setup, it should give you good > ideas, else repost. > http://blogs.browsermedia.com/patrick/index.do?date=20030211#130200 > > Templates are deprecated in favor of tiles.
I think you are confused. By `Templates' I am talking abouts `Layout files' as in Tiles layout files, not Struts 1.0 template taglibs. I should have also mentioned that in the monolithic JSP design I am using the classic header/menu/content/footer layout as described in "Struts In Action" et al in a dozen or so pages. The problem is subdivision of the "content" part where I can see that large parts of the site has shareable page areas, and others are distinctly unique. I could replicate the core page and tile design ad infinitum, but there has to be a better way. > > PILGRIM, Peter, FM wrote: > > Hi > > > > I got a Tiles template design question. I have a web site > like Amazon.com > > that > > using Tabs to navigate around a set of HTML Form elements. > Each Page has a > > HTML Form that contain lots of HTML Input elements. I have > written the JSP > > in the first phase to be monolithic and now I want to break down the > > layout to use Tiles. > > > > I want to take advantage of the fact, that certain areas of > the layout > > design are shared. Unfortunately I have run in to > difficulty because > > they want a specific design that forces me to run an > <html:form> outside > > all the shareable and non-shareable tiles. > > > > Ideally, I would like to dynamically set the name of the > `action' tag > > of <html:form> below. I would like to say action="/Main.do" > and then > > action="/Shipping.do" for a single template layout. How can > I do this, > > using TILES? Otherwise I will have to create template layouts > > for each tab page. (Yuck) > > > > Also is it good practice to have template layout within > templates layout? > > > > > > // This is a template layout.jsp > > > > <!-- Search form --> > > <tiles:insert attribute="customer-search-form" /> > > <%-- e.g. ``customerSearchPrompt.jsp'' grabs a CRM record > > from database. This tile is common to all > > tabbed pages > > --%> > > > > <html:form action="..." /> > > > > <!-- Order Type and Id --> > > <tiles:insert attribute="form-header" /> > > <%-- e.g. `sectionHeaderType.jsp' common to all tabs --%> > > > > <!-- Core Tab Navigation --> > > <tiles:insert attribute="tab-navigation" /> > > <%-- e.g. `tabNavigation.jsp' common to all tabs --> > > > > <!-- Form area --> > > <tiles:insert attribute="form-content" /> > > <%-- e.g.``MainTab.jsp'', ``ShippingTab.jsp'' > > this is the heart of the form entry area. > > This tile will change from tab page to tab page. > > --%> > > > > <!-- Form action --> > > <tiles:insert attribute="form-action" /> > > <%-- e.g. `MainActions.jsp'', ``ShippingActions.jsp'' > > Each tab page shares a set of common buttons, > > but has it possible for a tab page to have its > > own custom buttons. > > This tile will change from tab page to tab page. > > --%> > > > > </html:form> > > > > Any ideas appreciated, MTIA > > > > -- > > Peter Pilgrim, > > Struts/J2EE Consultant, RBoS FM, Risk IT > > Tel: +44 (0)207-375-4923 -- Peter Pilgrim, Struts/J2EE Consultant, RBoS FM, Risk IT Tel: +44 (0)207-375-4923 *********************************************************************** Visit our Internet site at http://www.rbsmarkets.com This e-mail is intended only for the addressee named above. As this e-mail may contain confidential or privileged information, if you are not the named addressee, you are not authorised to retain, read, copy or disseminate this message or any part of it. The Royal Bank of Scotland plc is registered in Scotland No 90312 Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB Regulated by the Financial Services Authority *********************************************************************** --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]