This doesn't affect runtime at all whether you put those files to one or
separate source folders, as long as your IDE/build tool adds these
resources to classpath. So this is just a matter of convenience.

I put these files to separate folders and I can still see them together
using the Context View feature of Eclipse plugin:
https://github.com/anjlab/eclipse-tapestry5-plugin#tapestry-context-view


On Wed, Feb 12, 2014 at 8:00 PM, George Christman
<gchrist...@cardaddy.com>wrote:

> Hi Dmitry, my projects have always been laid out with the template files in
> the resources package as well which works perfectly.
>
> My colleague just happen to see an example where the tml files were placed
> along side there java counterparts and wondered if there was any side
> effect to doing so. I guess he's just looking at is as a convenience within
> the IDE.
>
> So in Source Packages.com.company.project.components can you put
> MyPage.java and MyPage.tml, or would the tml need to be placed in Other
> Sources src/main/resources.com.company.project.components?
>
> Thanks.
>
>
> On Wed, Feb 12, 2014 at 10:51 AM, Dmitry Gusev <dmitry.gu...@gmail.com
> >wrote:
>
> > Hi!
> >
> > *.tml files for pages MAY be placed under web context (src/main/webapp),
> > but component templates MUST be put into classpath to the same package as
> > corresponding Java classes.
> >
> > I always put *.tml files to classpath, which is src/main/resources in my
> > projects layout.
> > I believe this is supported since early versions of tapestry 5.x.
> >
> >
> >
> > On Wed, Feb 12, 2014 at 7:38 PM, George Christman
> > <gchrist...@cardaddy.com>wrote:
> >
> > > Hi Guys, I'm using 5.4 and my colleague brought to my attention in
> Igor's
> > > Tapestry5 book he noticed an example where the tml templates were being
> > > packaged together with the java classes. Anyhow I took it a step
> further
> > > and looked into Geoff's jumpstart package structure and noticed he was
> > > doing the same thing. The question is where is the best place to put
> the
> > > templates and/or is there a major downside to placing the templates in
> > the
> > > java package?
> > >
> > > --
> > > George Christman
> > > www.CarDaddy.com
> > > P.O. Box 735
> > > Johnstown, New York
> > >
> >
> >
> >
> > --
> > Dmitry Gusev
> >
> > AnjLab Team
> > http://anjlab.com
> >
>
>
>
> --
> George Christman
> www.CarDaddy.com
> P.O. Box 735
> Johnstown, New York
>



-- 
Dmitry Gusev

AnjLab Team
http://anjlab.com

Reply via email to