From users-return-57955-apmail-myfaces-users-archive=myfaces.apache.org@myfaces.apache.org Wed Mar 02 07:48:47 2011 Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 82774 invoked from network); 2 Mar 2011 07:48:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Mar 2011 07:48:47 -0000 Received: (qmail 58636 invoked by uid 500); 2 Mar 2011 07:48:46 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 58120 invoked by uid 500); 2 Mar 2011 07:48:43 -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 58094 invoked by uid 99); 2 Mar 2011 07:48:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Mar 2011 07:48:42 +0000 X-ASF-Spam-Status: No, hits=0.3 required=5.0 tests=FILL_THIS_FORM_FRAUD_PHISH,HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS,T_FILL_THIS_FORM_SHORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [129.177.30.72] (HELO alfons.uib.no) (129.177.30.72) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Mar 2011 07:48:35 +0000 Received: from thoralf.uib.no (smtp.uib.no) [129.177.13.16] by alfons.uib.no for users@myfaces.apache.org with esmtp (Exim 4.69) id 1Pugn6-0006dO-OE; Wed, 02 Mar 2011 08:48:13 +0100 Received: from mail-qw0-f53.google.com [209.85.216.53]:51661 by smtp.uib.no for users@myfaces.apache.org with esmtpsa (Exim 4.69) id 1Pugn6-0007Zi-FE; Wed, 02 Mar 2011 08:48:12 +0100 Received: by qwc9 with SMTP id 9so4620703qwc.12 for ; Tue, 01 Mar 2011 23:48:11 -0800 (PST) MIME-Version: 1.0 Received: by 10.229.38.145 with SMTP id b17mr6236814qce.131.1299052091041; Tue, 01 Mar 2011 23:48:11 -0800 (PST) Received: by 10.229.187.85 with HTTP; Tue, 1 Mar 2011 23:48:10 -0800 (PST) In-Reply-To: <3150623219871629127@unknownmsgid> References: <3150623219871629127@unknownmsgid> Date: Wed, 2 Mar 2011 08:48:10 +0100 Message-ID: Subject: Re: Using statusIndicator From: =?ISO-8859-1?Q?H=E5kon_Sagehaug?= To: MyFaces Discussion Content-Type: multipart/alternative; boundary=0016364ec7ec6e6965049d7b2286 X-checked-clean: by exiscan on alfons X-Scanner: 22566c7e7ee1d8e5c8a4c88ebd1c482f http://tjinfo.uib.no/virus.html X-UiB-SpamFlag: NO UIB: -8.5 hits, 8.0 required X-UiB-SpamReport: spamassassin found; -9.0 Message received from UIB 0.0 BODY: HTML included in message 0.0 Fill in a short form with personal information 0.4 Answer suspicious question(s) --0016364ec7ec6e6965049d7b2286 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Thanks for the reply, here is my xhtml, with a simple login form And parts of the backing bean public String send() { FacesContext facesContext =3D FacesContext.getCurrentInstance(); System.out.println("user name " + username + " is logged in " + userLoggedIn); try { Thread.sleep(5000); Token tok =3D tokenMgr.getToken(username, password, true); Thread.sleep(2000); pollText =3D "Token fetched"; if (tok !=3D null) { userLoggedIn =3D true; return ("success"); } username =3D ""; password =3D ""; } catch (TrustException e1) { e1.printStackTrace(); } catch (AxisFault e) { e.printStackTrace(); } catch (FileNotFoundException e) { e.printStackTrace(); } catch (XMLStreamException e) { e.printStackTrace(); } catch (InterruptedException e) { e.printStackTrace(); } FacesMessage message =3D new FacesMessage("Login failed"); facesContext.addMessage("username", message); username =3D ""; password =3D ""; return ("error"); } As you can see I sleep the thread to simulate the operations needed to log in the user, for now I'm only getting the token. After that I'll fetch the project, data etc... So I wanted the pollText to apear dynmically in the status indicator, but can get it to update,. Any tips? cheers, H=E5kon On 1 March 2011 23:23, Scott O'Bryan wrote: > I see no reason why this wouldn't work.. What specifically is failing > for you and perhaps a code snipi might help me visualize your issue. > > On Mar 1, 2011, at 3:04 PM, "H=E5kon Sagehaug" > wrote: > > > Hi all, > > > > I've just stared using Trinidad and myFaces, and had a question. I'm > > implementing a login in page for uses, and wanted to use the > > statusIndicator, to give back messages for the user like > > > > 1. Got user information > > 2. Loading datasets > > 3. Logged in > > > > And tried to have a tr:outputText within the statusIndicator. The valu= e > for > > the outPuttext would be linked to a backing bean, but I was not very > > successful, do you have any other tips? > > > > I guess one can use the progressIndicator, but I would like text to be > > returned not a procentage progress. > > > > cheers, H=E5kon > --0016364ec7ec6e6965049d7b2286--