You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Tim <ko...@gmail.com> on 2011/10/05 20:14:34 UTC
Page .tml location
According to http://tapestry.apache.org/project-layout.html, the page
template files (.tml) /may /be stored in src/main/webapp. Does this
mean that it's possible to put them somewhere else? I would like to put
them into my jar file along with my page classes. Is this possible?
I just tried to put my Index.tml in /src/main/resources, and I tried
/src/main/resources/com/app/pages/ and it didn't work.
Can somebody please confirm or deny that it's possible to put your .tml
page files somewhere else?
Thanks.
--
Tim Koop
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Page .tml location
Posted by Lenny Primak <lp...@hope.nyc.ny.us>.
those can go eitiher in the classpath or webapp, your choice,
you can retrieve them with classpath: or context: binding prefixes from your app.
On Oct 5, 2011, at 3:51 PM, Tim wrote:
> Thanks Lenny and Thiago. My Eclipse wasn't copying everything from my resources to my target. But it works now. Thank you very much.
>
> What about other files like .js files or image files? Can they be put into my jar file?
>
> --
> Tim Koop
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Page .tml location
Posted by Tim <ko...@gmail.com>.
Thanks Lenny and Thiago. My Eclipse wasn't copying everything from my
resources to my target. But it works now. Thank you very much.
What about other files like .js files or image files? Can they be put
into my jar file?
--
Tim Koop
On 05/10/2011 1:28 PM, Lenny Primak wrote:
> The tml files should be right along your .class files that are compiled from your page Java classes.
>
> for example,
> (contents of jar file)
> classes/com/myapp/tappackage/pages/Mypage.class
> classes/com/myapp/tappackage/pages/Mypage.tml
>
> On Oct 5, 2011, at 2:25 PM, Tim wrote:
>
>> So the page .tml files can actually be anywhere in the classpath? So I can just put them into any jar file?
>>
>> Would the home page (Index.tml) reside in the root level of the class path (/Index.tml) or should it be in a subfolder like /com/app/pages/Index.tml) kinda like the components .tml files?
>>
>> --
>> Tim Koop
>>
>>
>> On 05/10/2011 1:18 PM, Lenny Primak wrote:
>>> What you are doing is absolutely correct. Make sure that your war file is packaged as expected. That seems to be recurring problem that the tml files aren't deployed in your war file correctly.
>>>
>>>
>>>
>>> On Oct 5, 2011, at 2:14 PM, Tim<ko...@gmail.com> wrote:
>>>
>>>> According to http://tapestry.apache.org/project-layout.html, the page template files (.tml) /may /be stored in src/main/webapp. Does this mean that it's possible to put them somewhere else? I would like to put them into my jar file along with my page classes. Is this possible?
>>>>
>>>> I just tried to put my Index.tml in /src/main/resources, and I tried /src/main/resources/com/app/pages/ and it didn't work.
>>>>
>>>> Can somebody please confirm or deny that it's possible to put your .tml page files somewhere else?
>>>>
>>>> Thanks.
>>>>
>>>> --
>>>> Tim Koop
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Page .tml location
Posted by Lenny Primak <lp...@hope.nyc.ny.us>.
The tml files should be right along your .class files that are compiled from your page Java classes.
for example,
(contents of jar file)
classes/com/myapp/tappackage/pages/Mypage.class
classes/com/myapp/tappackage/pages/Mypage.tml
On Oct 5, 2011, at 2:25 PM, Tim wrote:
> So the page .tml files can actually be anywhere in the classpath? So I can just put them into any jar file?
>
> Would the home page (Index.tml) reside in the root level of the class path (/Index.tml) or should it be in a subfolder like /com/app/pages/Index.tml) kinda like the components .tml files?
>
> --
> Tim Koop
>
>
> On 05/10/2011 1:18 PM, Lenny Primak wrote:
>> What you are doing is absolutely correct. Make sure that your war file is packaged as expected. That seems to be recurring problem that the tml files aren't deployed in your war file correctly.
>>
>>
>>
>> On Oct 5, 2011, at 2:14 PM, Tim<ko...@gmail.com> wrote:
>>
>>> According to http://tapestry.apache.org/project-layout.html, the page template files (.tml) /may /be stored in src/main/webapp. Does this mean that it's possible to put them somewhere else? I would like to put them into my jar file along with my page classes. Is this possible?
>>>
>>> I just tried to put my Index.tml in /src/main/resources, and I tried /src/main/resources/com/app/pages/ and it didn't work.
>>>
>>> Can somebody please confirm or deny that it's possible to put your .tml page files somewhere else?
>>>
>>> Thanks.
>>>
>>> --
>>> Tim Koop
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Page .tml location
Posted by Tim <ko...@gmail.com>.
So the page .tml files can actually be anywhere in the classpath? So I
can just put them into any jar file?
Would the home page (Index.tml) reside in the root level of the class
path (/Index.tml) or should it be in a subfolder like
/com/app/pages/Index.tml) kinda like the components .tml files?
--
Tim Koop
On 05/10/2011 1:18 PM, Lenny Primak wrote:
> What you are doing is absolutely correct. Make sure that your war file is packaged as expected. That seems to be recurring problem that the tml files aren't deployed in your war file correctly.
>
>
>
> On Oct 5, 2011, at 2:14 PM, Tim<ko...@gmail.com> wrote:
>
>> According to http://tapestry.apache.org/project-layout.html, the page template files (.tml) /may /be stored in src/main/webapp. Does this mean that it's possible to put them somewhere else? I would like to put them into my jar file along with my page classes. Is this possible?
>>
>> I just tried to put my Index.tml in /src/main/resources, and I tried /src/main/resources/com/app/pages/ and it didn't work.
>>
>> Can somebody please confirm or deny that it's possible to put your .tml page files somewhere else?
>>
>> Thanks.
>>
>> --
>> Tim Koop
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Page .tml location
Posted by Lenny Primak <lp...@hope.nyc.ny.us>.
What you are doing is absolutely correct. Make sure that your war file is packaged as expected. That seems to be recurring problem that the tml files aren't deployed in your war file correctly.
On Oct 5, 2011, at 2:14 PM, Tim <ko...@gmail.com> wrote:
> According to http://tapestry.apache.org/project-layout.html, the page template files (.tml) /may /be stored in src/main/webapp. Does this mean that it's possible to put them somewhere else? I would like to put them into my jar file along with my page classes. Is this possible?
>
> I just tried to put my Index.tml in /src/main/resources, and I tried /src/main/resources/com/app/pages/ and it didn't work.
>
> Can somebody please confirm or deny that it's possible to put your .tml page files somewhere else?
>
> Thanks.
>
> --
> Tim Koop
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org