RE: AW: Tiles newbie with questions/errors

"Louis Moore" <[email protected]> Thu, 9 Sep 2004 10:37:19 -0700
Newsgroups gmane.comp.java.keel.user
Message-ID <C5E6D04B7C014946B7CCBFC2AF30DB62C0972A@corpmail01.corp.walmart.com>
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:

Find this target in keel-bundle-client.xml:

    <target name="keel_bundle_client:buildconfigstruts" if="use.struts">
        <echo message="Struts configuration: Preparing struts-config.xml  ..."/>

And add this at the end:

        <echo message="Struts configuration: Copying tiles definitions to webapp  ..."/>
        <copy todir="${keel.install.clientconf.dir}">
            <fileset dir="${keel.clientsupt.dir}/clnt-struts/webapp">
                <include name="tiles-defs.xml"/>
            </fileset>
        </copy>

If you want to keep your tiles def file elsewhere or if you want to make it so each app has its own and they are concatenated during assemble-deploy, you'll need to do it differently but this approach works for me.

-Lou

-----Original Message-----
From: user-keelframework.org-admin-rI8AND0JKYOgdSakss0wQjfEH8FBEnyy@public.gmane.org [mailto:user-keelframework.org-admin-rI8AND0JKYOgdSakss0wQjfEH8FBEnyy@public.gmane.org] On Behalf Of Vidakovic Aleksandar
Sent: Thursday, September 09, 2004 9:17 AM
To: user-6VIttnCrOeJXNEnpj1eHPNi2O/[email protected]
Subject: AW: AW: [Keel User] Tiles newbie with questions/errors

Salut Gene,

Hmm, as I don't use keel's normal build system for my project (it's maven) I cannot answer this question... anyone else?!?

Aleks

-----Ursprüngliche Nachricht-----
Von: Gene McCullough [mailto:[email protected]]
Gesendet: Donnerstag, 9. September 2004 17:51
An: user-6VIttnCrOeJXNEnpj1eHPNi2O/[email protected]
Betreff: Re: AW: [Keel User] Tiles newbie with questions/errors


Hi Aleks, thanks for the reply.  I'm now having issues with my build not 
moving my definitions file, tiles-defs.xml into my build directory.  I 
currently have it in my conf/client folder for my project, which is 
apparently not the proper place.  Where should I place this file so that 
it gets built properly?

Thanks again,
gene

PS  Thanks for the email on viewing inputs, it was very helpful also

Vidakovic Aleksandar wrote:

>Salut Gene,
>
>I'm using tiles extensively... I think you can't point your keel forwards directly to your tiles definitions... if you have a tiles definition like this:
>
>[code]
>
>    ....
>
>    <definition name="form.yourformname"
>                path="/layout/default.jsp">
>        <put name="content"
>             value="/form/default.jsp"/>
>    </definition>
>
>    ....
>
>[/code]
>
>...then you'll need to define a struts forward in your struts config like this
>
>
>[code]
>
>  	<global-forwards>
>
>            ....
>
>		<forward name="prefix.form.yourformname"
>        		 path="form.yourformname"/>
>
>            ....
>
>  	</global-forwards>
>
>[/code]
>
>... and now you can use the struts forward name in your models:
>
>[code]
>
> 		<model name="yourmodelname">
>		    <attribute name="forward" value="prefix.form.yourformname"/>
> 		</model>
>
>[/code]
>
>Note: I'm not sure if you can use the same names for struts forwards and tiles definitions. I decided to give them different names... that's why you see this "prefix" for the struts forwards.
>
>Hope this helps,
>
>Aleks
>
>-----Ursprüngliche Nachricht-----
>Von: Gene McCullough [mailto:[email protected]]
>Gesendet: Donnerstag, 9. September 2004 05:24
>An: Keel Users
>Betreff: [Keel User] Tiles newbie with questions/errors
>
>
>Hi, is anyone using tiles and definitions?  I've setup a definitions 
>file, and pointed my struts-config TilesPlugin element to the file.
>
>However, when I set an action forward to my definition names, Tomcat 
>gives me a resource not found.  If I try using a .forward.name notation 
>for the tiles definitions, I get a struts error that the forward does 
>not begin with a "/"
>
>any help appreciated
>
>gene
>_______________________________________________
>User mailing list
>[email protected]
>http://lists.keelframework.org/listinfo.cgi/user-keelframework.org
>_______________________________________________
>User mailing list
>[email protected]
>http://lists.keelframework.org/listinfo.cgi/user-keelframework.org
>
>  
>

_______________________________________________
User mailing list
[email protected]
http://lists.keelframework.org/listinfo.cgi/user-keelframework.org
_______________________________________________
User mailing list
[email protected]
http://lists.keelframework.org/listinfo.cgi/user-keelframework.org