You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Martin Grotzke <ma...@javakaffee.de> on 2007/05/30 10:09:33 UTC

Re: T5 and shorter logical page name for pages of contributed library mappings

On Tue, 2007-05-29 at 08:11 -0700, Howard Lewis Ship wrote:
> That currently isn't implemented and I'll have to thing about how it could
> be. I agree it would be nice.  The current logic only looks for path name
> optimizations in the sub-folders/sub-packages of a library, not in the path
> to the library itself.  Here, "user/" identifies the
> org.comp.app.user.presentation package and optimizations only apply to the "
> pages.CreateUser" portion of the URL.
> 
> Please add an issue.
Done: http://issues.apache.org/jira/browse/TAPESTRY-1526

Cheers,
Martin


> 
> On 5/29/07, Martin Grotzke <ma...@javakaffee.de> wrote:
> >
> > Hi,
> >
> > how do I get a url like /app/user/create for a page "CreateUser" in
> > the module "user"?
> >
> > I have in my AppModule class:
> >
> >     public static void contributeComponentClassResolver(
> > Configuration<LibraryMapping> configuration ) {
> >         configuration.add( new LibraryMapping( "user", "
> > org.comp.app.user.presentation" ) );
> >     }
> >
> > and in the specified package I have a pages.CreateUser page class.
> >
> > This is available at the url /app/user/createuser, what is really nice
> > so far.
> > But is it also possible to have an automatic shortening to
> > /app/user/create, like it is described at
> >
> > http://tapestry.apache.org/tapestry5/tapestry-core/guide/component-classes.htmlSection "Sub-Folders / Sub-Packages"?
> >
> > Thx && cheers,
> > Martin
> >
> >
> >
> >
> >
> 
> 
-- 
Martin Grotzke
http://www.javakaffee.de/blog/