You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by José Luis Cetina <ma...@gmail.com> on 2012/03/30 22:42:14 UTC
CODI Redirect when page load
CODI 1.0.4
Hi i want to redirect from one page from other page when the first page
load.
Example:
I have to pages pageA and pageB
If i do this in @Named (pageA)
@PreRenderView
public void init(){
vnh.navigateTo(Pageb.class);
}
i get this message:
- Unable to find matching navigation case from view ID '/pageb.xhtml'
for outcome 'Pageb''
But if i use the same method vnh.navigateTo(Pageb.class) in a action of a
button it works, how can i redirect from pageA to pageB before pageA get
rendered?
I try whit:
@InitView
@PreRenderView
@PostRenderView
whit InitView and PostRenderView i dont get any message but the redirect
never occurs.
--
-------------------------------------------------------------------
*SCJA. José Luis Cetina*
-------------------------------------------------------------------
Re: CODI Redirect when page load
Posted by Gerhard Petracek <ge...@gmail.com>.
hi jose,
now it's included in the latest snapshot deployed to [1].
regards,
gerhard
[1] https://repository.apache.org/content/groups/snapshots
http://www.irian.at
Your JSF/JavaEE powerhouse -
JavaEE Consulting, Development and
Courses in English and German
Professional Support for Apache MyFaces
2012/3/30 José Luis Cetina <ma...@gmail.com>
> Ouch, do you have a guide how can i do this?
>
> 2012/3/30 Gerhard Petracek <ge...@gmail.com>
>
> > hi jose,
> >
> > please try the patch you can find at [1].
> > (it applies on the current trunk.)
> >
> > regards,
> > gerhard
> >
> > [1] http://people.apache.org/~gpetracek/myfaces/codi/patches/
> > [2] https://svn.apache.org/repos/asf/myfaces/extensions/cdi/trunk/
> >
> > http://www.irian.at
> >
> > Your JSF/JavaEE powerhouse -
> > JavaEE Consulting, Development and
> > Courses in English and German
> >
> > Professional Support for Apache MyFaces
> >
> >
> >
> > 2012/3/30 José Luis Cetina <ma...@gmail.com>
> >
> > > CODI 1.0.4
> > >
> > > Hi i want to redirect from one page from other page when the first page
> > > load.
> > >
> > > Example:
> > > I have to pages pageA and pageB
> > >
> > > If i do this in @Named (pageA)
> > >
> > > @PreRenderView
> > > public void init(){
> > > vnh.navigateTo(Pageb.class);
> > > }
> > >
> > > i get this message:
> > >
> > > - Unable to find matching navigation case from view ID
> '/pageb.xhtml'
> > > for outcome 'Pageb''
> > >
> > >
> > > But if i use the same method vnh.navigateTo(Pageb.class) in a action
> of a
> > > button it works, how can i redirect from pageA to pageB before pageA
> get
> > > rendered?
> > >
> > > I try whit:
> > > @InitView
> > > @PreRenderView
> > > @PostRenderView
> > >
> > > whit InitView and PostRenderView i dont get any message but the
> redirect
> > > never occurs.
> > >
> > > --
> > > -------------------------------------------------------------------
> > > *SCJA. José Luis Cetina*
> > > -------------------------------------------------------------------
> > >
> >
>
>
>
> --
> -------------------------------------------------------------------
> *SCJA. José Luis Cetina*
> -------------------------------------------------------------------
>
Re: CODI Redirect when page load
Posted by José Luis Cetina <ma...@gmail.com>.
Ouch, do you have a guide how can i do this?
2012/3/30 Gerhard Petracek <ge...@gmail.com>
> hi jose,
>
> please try the patch you can find at [1].
> (it applies on the current trunk.)
>
> regards,
> gerhard
>
> [1] http://people.apache.org/~gpetracek/myfaces/codi/patches/
> [2] https://svn.apache.org/repos/asf/myfaces/extensions/cdi/trunk/
>
> http://www.irian.at
>
> Your JSF/JavaEE powerhouse -
> JavaEE Consulting, Development and
> Courses in English and German
>
> Professional Support for Apache MyFaces
>
>
>
> 2012/3/30 José Luis Cetina <ma...@gmail.com>
>
> > CODI 1.0.4
> >
> > Hi i want to redirect from one page from other page when the first page
> > load.
> >
> > Example:
> > I have to pages pageA and pageB
> >
> > If i do this in @Named (pageA)
> >
> > @PreRenderView
> > public void init(){
> > vnh.navigateTo(Pageb.class);
> > }
> >
> > i get this message:
> >
> > - Unable to find matching navigation case from view ID '/pageb.xhtml'
> > for outcome 'Pageb''
> >
> >
> > But if i use the same method vnh.navigateTo(Pageb.class) in a action of a
> > button it works, how can i redirect from pageA to pageB before pageA get
> > rendered?
> >
> > I try whit:
> > @InitView
> > @PreRenderView
> > @PostRenderView
> >
> > whit InitView and PostRenderView i dont get any message but the redirect
> > never occurs.
> >
> > --
> > -------------------------------------------------------------------
> > *SCJA. José Luis Cetina*
> > -------------------------------------------------------------------
> >
>
--
-------------------------------------------------------------------
*SCJA. José Luis Cetina*
-------------------------------------------------------------------
Re: CODI Redirect when page load
Posted by Gerhard Petracek <ge...@gmail.com>.
hi jose,
please try the patch you can find at [1].
(it applies on the current trunk.)
regards,
gerhard
[1] http://people.apache.org/~gpetracek/myfaces/codi/patches/
[2] https://svn.apache.org/repos/asf/myfaces/extensions/cdi/trunk/
http://www.irian.at
Your JSF/JavaEE powerhouse -
JavaEE Consulting, Development and
Courses in English and German
Professional Support for Apache MyFaces
2012/3/30 José Luis Cetina <ma...@gmail.com>
> CODI 1.0.4
>
> Hi i want to redirect from one page from other page when the first page
> load.
>
> Example:
> I have to pages pageA and pageB
>
> If i do this in @Named (pageA)
>
> @PreRenderView
> public void init(){
> vnh.navigateTo(Pageb.class);
> }
>
> i get this message:
>
> - Unable to find matching navigation case from view ID '/pageb.xhtml'
> for outcome 'Pageb''
>
>
> But if i use the same method vnh.navigateTo(Pageb.class) in a action of a
> button it works, how can i redirect from pageA to pageB before pageA get
> rendered?
>
> I try whit:
> @InitView
> @PreRenderView
> @PostRenderView
>
> whit InitView and PostRenderView i dont get any message but the redirect
> never occurs.
>
> --
> -------------------------------------------------------------------
> *SCJA. José Luis Cetina*
> -------------------------------------------------------------------
>