Just a suggestion
I think this feature should have an "on/off" switch somewhere (AppModule?).
This is a very nice and useful feature, but it tricks me up sometimes...

2008/4/8, Chris Lewis <[EMAIL PROTECTED]>:
>
> Unfortunately that's a feature and not a bug. See here:
>
> http://tapestry.apache.org/tapestry5/tapestry-core/guide/component-classes.html
> ,
> the section named "Sub-Folders / Sub-Packages":
>
> "Tapestry performs some simple optimizations of the logical page name
> (or component type, or mixin type). It checks to see if the package name
> is either a prefix or a suffix of the unqualified class name (case
> insensitively, of course) and removes the prefix or suffix if so. The
> net result is that a class name such as
> com.example.myapp.pages.user.EditUser will have a page name of user/Edit
> (not user/EditUser). The goal here is to provide shorter, more natural
> URLs."
>
> So what's happening is T5 sees 'pe' as a package, and therefore removes
> it from 'person,' resulting in the nonsensical name 'pe/rson.' I'm not a
> fan of this behavior, especially since I don't believe it's configurable
> (perhaps some magic contribution via module).
>
> good luck
>
> chris
>
>
> Peter Stavrinides wrote:
> > Hi
> >
> > I have a small issue with a page name returning incorrectly...
> >
> > My URL looks like this:
> > http://mysite/myapp/pe/person/34687
> >
> > @Inject
> > private ComponentResources resources_;
> >
> > String nameRaw = resources_.getPageName();
> > gives me: "pe/rson" instead of "person"
> >
> > What am I doing wrong here?
> >
> > Thanks
> > Peter
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> http://thegodcode.net
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Atenciosamente,
Marcelo Lotif

Reply via email to