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" <[email protected]>
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 <[email protected]>
>
> > 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*
> > -------------------------------------------------------------------
> >
>

Reply via email to