RE: AW: Tiles newbie with questions/errors
"Louis Moore" <[email protected]> Thu, 9 Sep 2004 14:18:27 -0700
| Newsgroups | gmane.comp.java.keel.user |
|---|---|
| Message-ID | <C5E6D04B7C014946B7CCBFC2AF30DB62C0972C@corpmail01.corp.walmart.com> |
Shash, I had thought about breaking the tiles-defs into snippets but just never got around to doing it. To do it you'd need something like this: ====================== SNIPPET1: <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE tiles-definitions PUBLIC "-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd"> <tiles-definitions> SNIPPET2: <optional, this is a global default definition for others to extend> <definition name="default" path="/layouts/defaultLayout.jsp"> <put name="title" value="My Title"/> <put name="header" value="/tiles/header.jsp"/> <put name="footer" value="/tiles/footer.jsp"/> <put name="message" value="/tiles/message.jsp"/> </definition> **APP-SPECIFIC TILE DEFS HERE** SNIPPET3: </tiles-definitions> ========================= SAMPLE APP_SPECIFIC TILE DEF (from app-register): <definition name="register.Default" extends="default"> <put name="message" value="/tiles/registerMessage.jsp"/> </definition> <definition name="register.Register" extends="register.Default"> <put name="body" value="/register/register.jsp"/> </definition> <definition name="register.Login" extends="register.Default"> <put name="body" value="/register/login.jsp"/> </definition> <definition name="register.SendPassword" extends="register.Default"> <put name="body" value="/register/sendpassword.jsp"/> </definition> <definition name="register.ChangePassword" extends="register.Default"> <put name="body" value="/register/changepassword.jsp"/> </definition> -----Original Message----- From: user-keelframework.org-admin-rI8AND0JKYOgdSakss0wQjfEH8FBEnyy@public.gmane.org [mailto:user-keelframework.org-admin-rI8AND0JKYOgdSakss0wQjfEH8FBEnyy@public.gmane.org] On Behalf Of Shash Chatterjee Sent: Thursday, September 09, 2004 1:50 PM To: user-6VIttnCrOeJXNEnpj1eHPNi2O/[email protected]; user-6VIttnCrOeJXNEnpj1eHPNi2O/[email protected] Subject: Re: AW: [Keel User] Tiles newbie with questions/errors Lou/Gene, It's pretty trivial to add tiles-defs.xml in the build process. If you are familiar with what pieces need to be broken out in snippets (like we have snippets for struts-config.xml) that need to be assembled on a per-app basis, please advise. I'll incorporate into build system. This is good timing anyway, since someone that looks very much like me needs to experiment with tiles on a new project. Shash > Thanks Louis, but I was afraid of that. I really dislike the idea > of having to customize the keel files, because I always forget and > update over the changes. However, a working solution IS a WORKING > solution. > > thanks again > gene > > Louis Moore wrote: > > >Gene, > > > >I'm still using the build system from 2.1-dev, so if you're on the new build system this probably won't help. But using the 2.1-dev system, I had to add a step to the keel_bundle_client:buildconfigstruts target in $KEEL_HOME/keel-build/import/keel-bundle-client.xml. I keep my tiles-defs.xml file in $KEEL_HOME/clnt-struts/conf/client/webapp and this is how I got it to deploy: > _______________________________________________ User mailing list [email protected] http://lists.keelframework.org/listinfo.cgi/user-keelframework.org