Hi José!
Well, interface and class naming is a topic which gets discussed since 25 years now (starting with Smalltalk) and I can tell you that there is _no_ common view about a naming schema ;) Anyway, glad it worked out for you and hope you find CODI useful! LieGrue, strub ----- Original Message ----- > From: José Luis Cetina <maxtorz...@gmail.com> > To: MyFaces Discussion <users@myfaces.apache.org> > Cc: > Sent: Thursday, June 14, 2012 1:51 PM > Subject: Re: CODI Page > > I didn't see it, Thanks a lot, i will remove the I prefix. > Can be a good idea that CODI support (with base path) the use of the > "I" > prefix or the "able" postfix for interfaces, as you know this is the > rigth > way to name an interface. > For now ill remove the I prefix and name ny interface as my page using the > naming convention. > > Thanks > El 14/06/2012 04:01, "Gerhard Petracek" > <gerhard.petra...@gmail.com> > escribió: > >> hi jose, >> >> the link [1] i provided shows it already: >> e.g. Pages.Vip.VipContent.class leads to /pages/vip/vipContent.xhtml >> >> (if you have to keep the 'I' prefix for interfaces, you have to > provide the >> full base-path (with the current implementation)) >> >> regards, >> gerhard >> >> [1] http://s.apache.org/SBP >> >> http://www.irian.at >> >> Your JSF/JavaEE powerhouse - >> JavaEE Consulting, Development and >> Courses in English and German >> >> Professional Support for Apache MyFaces >> >> >> >> 2012/6/14 José Luis Cetina <maxtorz...@gmail.com> >> >> > Is there a way to do it without basepath? I mean, its possible to use >> type >> > safe navigation in CODI with more than one level folder structure? >> > El 13/06/2012 21:35, "Gerhard Petracek" > <gerhard.petra...@gmail.com> >> > escribió: >> > >> > > hi jose, >> > > >> > > right now it isn't supported (it doesn't get aggregated), > because >> > basePath >> > > is more for exceptional/special cases. >> > > typically the used style is more like [1] (as you can see > it's a >> simpler >> > > style - e.g. you don't need an explicit usage of >> > > @Page(name="myPageClassName") due to the default naming > convention). >> > > >> > > regards, >> > > gerhard >> > > >> > > [1] http://s.apache.org/SBP >> > > >> > > http://www.irian.at >> > > >> > > Your JSF/JavaEE powerhouse - >> > > JavaEE Consulting, Development and >> > > Courses in English and German >> > > >> > > Professional Support for Apache MyFaces >> > > >> > > >> > > >> > > 2012/6/13 José Luis Cetina <maxtorz...@gmail.com> >> > > >> > > > Hi i have this folder structure >> > > > >> > > > web/ >> > > > public/ >> > > > index.xhtml >> > > > >> > > > then i use this: >> > > > >> > > > @Page(navigation = Page.NavigationMode.REDIRECT, >> basePath="web/public") >> > > > public interface IPublic extends ViewConfig{ >> > > > public @Page(name="index") class Index > implements IPublic{} >> > > > } >> > > > >> > > > this works great. >> > > > >> > > > But i dont like to use the basePath="web/public", > how can i separate? >> > > > What i did, was create an interface like this: >> > > > >> > > > my root folder: >> > > > @Page(navigation = Page.NavigationMode.REDIRECT, > basePath="web") >> > > > public interfaces IWeb extends ViewConfig{ >> > > > } >> > > > >> > > > my folder under root (like web/public) >> > > > @Page(navigation = Page.NavigationMode.REDIRECT, > basePath="public") >> > > > public interfaces IPublic extends IWeb{ >> > > > //then the page >> > > > public @Page(name="index") class Index > implements IPublic{} >> > > > } >> > > > >> > > > but this doesnt work. >> > > > >> > > > What is the best way to do it?. Im using CODI 1.0.5 >> > > > >> > > > >> > > > >> > > > Thanks >> > > > -- >> > > > > ------------------------------------------------------------------- >> > > > *SCJA. José Luis Cetina* >> > > > > ------------------------------------------------------------------- >> > > > >> > > >> > >> >