Return-Path: X-Original-To: apmail-myfaces-users-archive@www.apache.org Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3A24B9E1B for ; Fri, 30 Mar 2012 20:54:27 +0000 (UTC) Received: (qmail 75802 invoked by uid 500); 30 Mar 2012 20:54:26 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 75766 invoked by uid 500); 30 Mar 2012 20:54:26 -0000 Mailing-List: contact users-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Discussion" Delivered-To: mailing list users@myfaces.apache.org Received: (qmail 75756 invoked by uid 99); 30 Mar 2012 20:54:26 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Mar 2012 20:54:26 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of gerhard.petracek@gmail.com designates 209.85.160.181 as permitted sender) Received: from [209.85.160.181] (HELO mail-gy0-f181.google.com) (209.85.160.181) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Mar 2012 20:54:19 +0000 Received: by ghbz13 with SMTP id z13so680773ghb.12 for ; Fri, 30 Mar 2012 13:53:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=2l25C8ABkyxEZ36bjKRkYpQZANjvKxUL1uDmeDL0xnY=; b=B6u75MMZmNpCRKIwFH3J2Q/FVEmVACaRKKT4HcMw1lquM/Mi2zXkPekhtib8dKCx0t /6HyJVB4IEYksWc8aRmj2OjcVBnNNkW4uK5f4bomrlIcCCuQKJtx4QhvRWMGyg1N9j+C 6Cd1fFmIFCubAgaXO6JYjRSR6LKGD+z69PGbjraLitoMmh9UTWDhySD9B45hqpCglEZj sEBbdBUO8ALxjTKwkJAL9VHmUZimtmcwGloh+zkuMTuDzdVOYyAJgmtSp9sygJdVJod3 kHtLnnzHd4gQPm3wCD3tJKUetvZ5NqOfTln7dVQ9Wv2B4v22wztIaRN8eFrjJoZbGswn tQww== Received: by 10.236.170.71 with SMTP id o47mr3272110yhl.104.1333140838611; Fri, 30 Mar 2012 13:53:58 -0700 (PDT) MIME-Version: 1.0 Received: by 10.147.41.1 with HTTP; Fri, 30 Mar 2012 13:53:38 -0700 (PDT) In-Reply-To: References: From: Gerhard Petracek Date: Fri, 30 Mar 2012 22:53:38 +0200 Message-ID: Subject: Re: CODI Redirect when page load To: MyFaces Discussion Content-Type: multipart/alternative; boundary=20cf302d4c361efc2b04bc7c0a35 --20cf302d4c361efc2b04bc7c0a35 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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=E9 Luis Cetina > 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=E9 Luis Cetina* > ------------------------------------------------------------------- > --20cf302d4c361efc2b04bc7c0a35--