myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gerhard Petracek <gerhard.petra...@gmail.com>
Subject Re: CODI Page
Date Thu, 14 Jun 2012 02:34:14 GMT
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 <maxtorzito@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*
> -------------------------------------------------------------------
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message