hi jose,

basically it's possible via a custom ViewConfigExtractor (you can even wrap
the default implementation easily - if you just have to post-process the
result).
instead of adding further complexity right now, we will re-visit the
current features before adding it to deltaspike and we will add or drop
parts based on detailed discussions.
-> thx for providing your use-case. we keep it in mind for deltaspike.

regards,
gerhard

http://www.irian.at

Your JSF/JavaEE powerhouse -
JavaEE Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces



2012/6/15 José Luis Cetina <maxtorz...@gmail.com>

> Ok no problem for that, it was only a suggestion.
> Thanks and CODI has an very important role in my webapp.
> El 15/06/2012 02:04, "Mark Struberg" <strub...@yahoo.de> escribió:
>
> > 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*
> > >>  > > >
> > > -------------------------------------------------------------------
> > >>  > > >
> > >>  > >
> > >>  >
> > >>
> > >
> >
>

Reply via email to