You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Paul Stanton <pa...@gunnsoft.com.au> on 2007/05/10 10:51:56 UTC

page under web-inf subdirectory won't load

Hi,

Here's how I would like to organise my templates:

* security of storing my html files under web-inf
* organisation of subdirectories
* no page specifications

So my desired structure is:
name: "Page1" and "module/Page2"
template: "WEB-INF/Page1.html" and "WEB-INF/module/Page2.html"
java: "com.pages.Page1.java" and "com.pages.module.Page2.java"

However, I find the only way for tapestry to find my template if it's 
under a module directory and has no .page specification is to store it 
outside of WEB-INF, which is not desirable.

Is this expected behaviour in 4.1 or have I missed something?

If it is expected, is there an intended resolution for later versions?

Thanks.




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: page under web-inf subdirectory won't load

Posted by Howard Lewis Ship <hl...@gmail.com>.
This should work, except you have to have at least a minimal .page file in
WEB-INF as well.

On 5/14/07, Jesse Kuhnert <jk...@gmail.com> wrote:
>
> There has been extensive work done recently in this specific area for
> 4.1.2.
> I still think I need to add at least one or two additional configuration
> options in the .application file to make unrelated sub-directory
> structures
> in the web context easily configurable but things should generally work as
> well as they possibly can right now.  (though I was thinking of trying to
> add in some "guessing" sort of strategy for things but this will require a
> lot of thought to get right )
>
> On 5/14/07, Paul Stanton <pa...@gunnsoft.com.au> wrote:
> >
> > I'm using tapestry 4.1
> >
> > Paul Stanton wrote:
> > > Hi,
> > >
> > > Here's how I would like to organise my templates:
> > >
> > > * security of storing my html files under web-inf
> > > * organisation of subdirectories
> > > * no page specifications
> > >
> > > So my desired structure is:
> > > name: "Page1" and "module/Page2"
> > > template: "WEB-INF/Page1.html" and "WEB-INF/module/Page2.html"
> > > java: "com.pages.Page1.java" and "com.pages.module.Page2.java"
> > >
> > > However, I find the only way for tapestry to find my template if it's
> > > under a module directory and has no .page specification is to store it
> > > outside of WEB-INF, which is not desirable.
> > >
> > > Is this expected behaviour in 4.1 or have I missed something?
> > >
> > > If it is expected, is there an intended resolution for later versions?
> > >
> > > Thanks.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>
>
> --
> Jesse Kuhnert
> Tapestry/Dojo team member/developer
>
> Open source based consulting work centered around
> dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
>



-- 
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

Re: page under web-inf subdirectory won't load

Posted by Paul Stanton <pa...@gunnsoft.com.au>.
Wow, that's cool. I was expecting you to say "when it's ready ..." :)

Jesse Kuhnert wrote:
> I'm not sure.  My most reliable ognl tester had the nerve to go on 
> some kind
> of "honeymoon" this week so the lack of reported issues may be a false
> positive. ...I think I really need to get this out the door now-ish 
> though,
> so I think we'll do it next week.
>
> Just need to upgrade dojo to 0.4.3 this weekend.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: page under web-inf subdirectory won't load

Posted by Jesse Kuhnert <jk...@gmail.com>.
I'm not sure.  My most reliable ognl tester had the nerve to go on some kind
of "honeymoon" this week so the lack of reported issues may be a false
positive. ...I think I really need to get this out the door now-ish though,
so I think we'll do it next week.

Just need to upgrade dojo to 0.4.3 this weekend.

On 5/21/07, Paul Stanton <pa...@gunnsoft.com.au> wrote:
>
> :O
>
> OK .. thanks
>
> When is 4.1.2 expected to have a production ready release?
>
> Jesse Kuhnert wrote:
> > That ~is~ what happens in 4.1.2. ..so.....Maybe you should just try that
> > out.
> >
> > On 5/21/07, Paul Stanton <pa...@gunnsoft.com.au> wrote:
> >>
> >> OK, so the strategy seems primed for a fairly limited approach;
> >> everything under web-inf or root. Why not also look under folders named
> >> the same as the package name (minus the value of
> >> 'org.apache.tapestry.page-class-packages') ? This is done in the root,
> >> so wouldn't it be just as simple to also do this under web-inf?
> >>
> >> ie
> >>
> >> class : com.pages.module.MyPage
> >> html: WEB-INF/module/MyPage.html
> >>
> >> that should 'just work' imho.
> >>
> >> Currently I have a stack of .page files with no content what so ever.
> It
> >> is annoying.
> >>
> >> Jesse Kuhnert wrote:
> >> > There has been extensive work done recently in this specific area for
> >> > 4.1.2.
> >> > I still think I need to add at least one or two additional
> >> configuration
> >> > options in the .application file to make unrelated sub-directory
> >> > structures
> >> > in the web context easily configurable but things should generally
> >> > work as
> >> > well as they possibly can right now.  (though I was thinking of
> trying
> >> to
> >> > add in some "guessing" sort of strategy for things but this will
> >> > require a
> >> > lot of thought to get right )
> >> >
> >> > On 5/14/07, Paul Stanton <pa...@gunnsoft.com.au> wrote:
> >> >>
> >> >> I'm using tapestry 4.1
> >> >>
> >> >> Paul Stanton wrote:
> >> >> > Hi,
> >> >> >
> >> >> > Here's how I would like to organise my templates:
> >> >> >
> >> >> > * security of storing my html files under web-inf
> >> >> > * organisation of subdirectories
> >> >> > * no page specifications
> >> >> >
> >> >> > So my desired structure is:
> >> >> > name: "Page1" and "module/Page2"
> >> >> > template: "WEB-INF/Page1.html" and "WEB-INF/module/Page2.html"
> >> >> > java: "com.pages.Page1.java" and "com.pages.module.Page2.java"
> >> >> >
> >> >> > However, I find the only way for tapestry to find my template if
> >> it's
> >> >> > under a module directory and has no .page specification is to
> store
> >> it
> >> >> > outside of WEB-INF, which is not desirable.
> >> >> >
> >> >> > Is this expected behaviour in 4.1 or have I missed something?
> >> >> >
> >> >> > If it is expected, is there an intended resolution for later
> >> versions?
> >> >> >
> >> >> > Thanks.
> >> >>
> >> >>
> >> >>
> ---------------------------------------------------------------------
> >> >> 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
>
>


-- 
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com

Re: page under web-inf subdirectory won't load

Posted by Paul Stanton <pa...@gunnsoft.com.au>.
:O

OK .. thanks

When is 4.1.2 expected to have a production ready release?

Jesse Kuhnert wrote:
> That ~is~ what happens in 4.1.2. ..so.....Maybe you should just try that
> out.
>
> On 5/21/07, Paul Stanton <pa...@gunnsoft.com.au> wrote:
>>
>> OK, so the strategy seems primed for a fairly limited approach;
>> everything under web-inf or root. Why not also look under folders named
>> the same as the package name (minus the value of
>> 'org.apache.tapestry.page-class-packages') ? This is done in the root,
>> so wouldn't it be just as simple to also do this under web-inf?
>>
>> ie
>>
>> class : com.pages.module.MyPage
>> html: WEB-INF/module/MyPage.html
>>
>> that should 'just work' imho.
>>
>> Currently I have a stack of .page files with no content what so ever. It
>> is annoying.
>>
>> Jesse Kuhnert wrote:
>> > There has been extensive work done recently in this specific area for
>> > 4.1.2.
>> > I still think I need to add at least one or two additional 
>> configuration
>> > options in the .application file to make unrelated sub-directory
>> > structures
>> > in the web context easily configurable but things should generally
>> > work as
>> > well as they possibly can right now.  (though I was thinking of trying
>> to
>> > add in some "guessing" sort of strategy for things but this will
>> > require a
>> > lot of thought to get right )
>> >
>> > On 5/14/07, Paul Stanton <pa...@gunnsoft.com.au> wrote:
>> >>
>> >> I'm using tapestry 4.1
>> >>
>> >> Paul Stanton wrote:
>> >> > Hi,
>> >> >
>> >> > Here's how I would like to organise my templates:
>> >> >
>> >> > * security of storing my html files under web-inf
>> >> > * organisation of subdirectories
>> >> > * no page specifications
>> >> >
>> >> > So my desired structure is:
>> >> > name: "Page1" and "module/Page2"
>> >> > template: "WEB-INF/Page1.html" and "WEB-INF/module/Page2.html"
>> >> > java: "com.pages.Page1.java" and "com.pages.module.Page2.java"
>> >> >
>> >> > However, I find the only way for tapestry to find my template if 
>> it's
>> >> > under a module directory and has no .page specification is to store
>> it
>> >> > outside of WEB-INF, which is not desirable.
>> >> >
>> >> > Is this expected behaviour in 4.1 or have I missed something?
>> >> >
>> >> > If it is expected, is there an intended resolution for later
>> versions?
>> >> >
>> >> > Thanks.
>> >>
>> >>
>> >> ---------------------------------------------------------------------
>> >> 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 under web-inf subdirectory won't load

Posted by Jesse Kuhnert <jk...@gmail.com>.
That ~is~ what happens in 4.1.2. ..so.....Maybe you should just try that
out.

On 5/21/07, Paul Stanton <pa...@gunnsoft.com.au> wrote:
>
> OK, so the strategy seems primed for a fairly limited approach;
> everything under web-inf or root. Why not also look under folders named
> the same as the package name (minus the value of
> 'org.apache.tapestry.page-class-packages') ? This is done in the root,
> so wouldn't it be just as simple to also do this under web-inf?
>
> ie
>
> class : com.pages.module.MyPage
> html: WEB-INF/module/MyPage.html
>
> that should 'just work' imho.
>
> Currently I have a stack of .page files with no content what so ever. It
> is annoying.
>
> Jesse Kuhnert wrote:
> > There has been extensive work done recently in this specific area for
> > 4.1.2.
> > I still think I need to add at least one or two additional configuration
> > options in the .application file to make unrelated sub-directory
> > structures
> > in the web context easily configurable but things should generally
> > work as
> > well as they possibly can right now.  (though I was thinking of trying
> to
> > add in some "guessing" sort of strategy for things but this will
> > require a
> > lot of thought to get right )
> >
> > On 5/14/07, Paul Stanton <pa...@gunnsoft.com.au> wrote:
> >>
> >> I'm using tapestry 4.1
> >>
> >> Paul Stanton wrote:
> >> > Hi,
> >> >
> >> > Here's how I would like to organise my templates:
> >> >
> >> > * security of storing my html files under web-inf
> >> > * organisation of subdirectories
> >> > * no page specifications
> >> >
> >> > So my desired structure is:
> >> > name: "Page1" and "module/Page2"
> >> > template: "WEB-INF/Page1.html" and "WEB-INF/module/Page2.html"
> >> > java: "com.pages.Page1.java" and "com.pages.module.Page2.java"
> >> >
> >> > However, I find the only way for tapestry to find my template if it's
> >> > under a module directory and has no .page specification is to store
> it
> >> > outside of WEB-INF, which is not desirable.
> >> >
> >> > Is this expected behaviour in 4.1 or have I missed something?
> >> >
> >> > If it is expected, is there an intended resolution for later
> versions?
> >> >
> >> > Thanks.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> 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
>
>


-- 
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com

Re: page under web-inf subdirectory won't load

Posted by Paul Stanton <pa...@gunnsoft.com.au>.
OK, so the strategy seems primed for a fairly limited approach; 
everything under web-inf or root. Why not also look under folders named 
the same as the package name (minus the value of 
'org.apache.tapestry.page-class-packages') ? This is done in the root, 
so wouldn't it be just as simple to also do this under web-inf?

ie

class : com.pages.module.MyPage
html: WEB-INF/module/MyPage.html

that should 'just work' imho.

Currently I have a stack of .page files with no content what so ever. It 
is annoying.

Jesse Kuhnert wrote:
> There has been extensive work done recently in this specific area for 
> 4.1.2.
> I still think I need to add at least one or two additional configuration
> options in the .application file to make unrelated sub-directory 
> structures
> in the web context easily configurable but things should generally 
> work as
> well as they possibly can right now.  (though I was thinking of trying to
> add in some "guessing" sort of strategy for things but this will 
> require a
> lot of thought to get right )
>
> On 5/14/07, Paul Stanton <pa...@gunnsoft.com.au> wrote:
>>
>> I'm using tapestry 4.1
>>
>> Paul Stanton wrote:
>> > Hi,
>> >
>> > Here's how I would like to organise my templates:
>> >
>> > * security of storing my html files under web-inf
>> > * organisation of subdirectories
>> > * no page specifications
>> >
>> > So my desired structure is:
>> > name: "Page1" and "module/Page2"
>> > template: "WEB-INF/Page1.html" and "WEB-INF/module/Page2.html"
>> > java: "com.pages.Page1.java" and "com.pages.module.Page2.java"
>> >
>> > However, I find the only way for tapestry to find my template if it's
>> > under a module directory and has no .page specification is to store it
>> > outside of WEB-INF, which is not desirable.
>> >
>> > Is this expected behaviour in 4.1 or have I missed something?
>> >
>> > If it is expected, is there an intended resolution for later versions?
>> >
>> > Thanks.
>>
>>
>> ---------------------------------------------------------------------
>> 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 under web-inf subdirectory won't load

Posted by Jesse Kuhnert <jk...@gmail.com>.
There has been extensive work done recently in this specific area for 4.1.2.
I still think I need to add at least one or two additional configuration
options in the .application file to make unrelated sub-directory structures
in the web context easily configurable but things should generally work as
well as they possibly can right now.  (though I was thinking of trying to
add in some "guessing" sort of strategy for things but this will require a
lot of thought to get right )

On 5/14/07, Paul Stanton <pa...@gunnsoft.com.au> wrote:
>
> I'm using tapestry 4.1
>
> Paul Stanton wrote:
> > Hi,
> >
> > Here's how I would like to organise my templates:
> >
> > * security of storing my html files under web-inf
> > * organisation of subdirectories
> > * no page specifications
> >
> > So my desired structure is:
> > name: "Page1" and "module/Page2"
> > template: "WEB-INF/Page1.html" and "WEB-INF/module/Page2.html"
> > java: "com.pages.Page1.java" and "com.pages.module.Page2.java"
> >
> > However, I find the only way for tapestry to find my template if it's
> > under a module directory and has no .page specification is to store it
> > outside of WEB-INF, which is not desirable.
> >
> > Is this expected behaviour in 4.1 or have I missed something?
> >
> > If it is expected, is there an intended resolution for later versions?
> >
> > Thanks.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com

Re: page under web-inf subdirectory won't load

Posted by Paul Stanton <pa...@gunnsoft.com.au>.
I'm using tapestry 4.1

Paul Stanton wrote:
> Hi,
>
> Here's how I would like to organise my templates:
>
> * security of storing my html files under web-inf
> * organisation of subdirectories
> * no page specifications
>
> So my desired structure is:
> name: "Page1" and "module/Page2"
> template: "WEB-INF/Page1.html" and "WEB-INF/module/Page2.html"
> java: "com.pages.Page1.java" and "com.pages.module.Page2.java"
>
> However, I find the only way for tapestry to find my template if it's 
> under a module directory and has no .page specification is to store it 
> outside of WEB-INF, which is not desirable.
>
> Is this expected behaviour in 4.1 or have I missed something?
>
> If it is expected, is there an intended resolution for later versions?
>
> Thanks.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org