Return-Path: Delivered-To: apmail-incubator-beehive-user-archive@www.apache.org Received: (qmail 28595 invoked from network); 17 Jun 2005 20:25:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 17 Jun 2005 20:25:22 -0000 Received: (qmail 15391 invoked by uid 500); 17 Jun 2005 20:25:14 -0000 Delivered-To: apmail-incubator-beehive-user-archive@incubator.apache.org Received: (qmail 15311 invoked by uid 500); 17 Jun 2005 20:25:14 -0000 Mailing-List: contact beehive-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Beehive Users" Delivered-To: mailing list beehive-user@incubator.apache.org Received: (qmail 15235 invoked by uid 99); 17 Jun 2005 20:25:14 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of richfeit@gmail.com designates 64.233.162.205 as permitted sender) Received: from zproxy.gmail.com (HELO zproxy.gmail.com) (64.233.162.205) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Jun 2005 13:25:09 -0700 Received: by zproxy.gmail.com with SMTP id 40so88187nzk for ; Fri, 17 Jun 2005 13:24:38 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:user-agent:x-accept-language:mime-version:to:subject:references:in-reply-to:x-enigmail-version:x-enigmail-supports:content-type:content-transfer-encoding; b=UwP0MfD/umgp1iv+UgpKrThdpDmTiyLXXXPQrY9UmtF9sE3UXKlH9uabKuiUaLqXMKyoRAq7tei/9Am920O4K/+vcb0Q8Up9hRqZ+niaaqQnHGAvz3TjBJiS4UazsOpCQWHuEiZ9y85moarRqUm7QBRXOIod1fyD32abQ4Ic6xk= Received: by 10.36.42.18 with SMTP id p18mr1559569nzp; Fri, 17 Jun 2005 13:24:38 -0700 (PDT) Received: from ?10.36.33.142? ([63.96.162.1]) by mx.gmail.com with ESMTP id 10sm3020663nzo.2005.06.17.13.24.37; Fri, 17 Jun 2005 13:24:38 -0700 (PDT) Message-ID: <42B33180.7080702@gmail.com> Date: Fri, 17 Jun 2005 14:24:32 -0600 From: Rich Feit User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Beehive Users Subject: Re: PageFlows and FacesMessage References: <08110C785BC6AD4397F499326AC3793D03E1F805@cceexc15.americas.cpqcorp.net> In-Reply-To: <08110C785BC6AD4397F499326AC3793D03E1F805@cceexc15.americas.cpqcorp.net> X-Enigmail-Version: 0.90.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi Mike, Just to make sure I understand... if you add code in onCreate() to add a FacesMessage into the FacesContext, then hit the page directly (without going through a Page Flow action), do you see the same problem? If not, would you file a bug with a repro case in it? I can take a look. Also, to confirm, are you getting the correct value from getPageInput() in your onCreate()? Thanks, Rich Arnold, Michael wrote: >I'm having trouble displaying messages in a JSF view when using >PageFlows. > >With the typical JSF application, I can put messages into FacesContext >that will then be displayed using the tag. This seems to >work with PageFlows when I do validation or conversion functions that >don't raise PageFlow actions. However, if I do execute a backing bean >event handler that raises actions, if the action fails and I want to >redisplay the page, the message I add into FacesContext isn't displayed. > >For example, I have a login form that raises an action in the associated >PageFlow controller. If the login is incorrect, the action returns a >forward indicating failure. The forward includes an action output that >is a simple String containing an error message. In the onCreate() >method of my backing bean, I call getPageInput(), get the message, and >set a new FacesMessage into the current instance of the FacesContext. > >Any insight into this is greatly appreciated. > >Thanks, >Mike Arnold > > >