Java Mailing List Archive

http://www.junlu.com/

Home » users.myfaces »

CODI Redirect when page load

José Luis Cetina

2012-03-30

Replies: Find Java Web Hosting

Author LoginPost Reply
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*
-------------------------------------------------------------------
©2008 junlu.com - Jax Systems, LLC, U.S.A.