Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 32285 invoked from network); 26 Jul 2007 13:53:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Jul 2007 13:53:46 -0000 Received: (qmail 78590 invoked by uid 500); 26 Jul 2007 13:53:42 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 78559 invoked by uid 500); 26 Jul 2007 13:53:42 -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 78548 invoked by uid 99); 26 Jul 2007 13:53:42 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Jul 2007 06:53:42 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of danielccss2@gmail.com designates 66.249.92.170 as permitted sender) Received: from [66.249.92.170] (HELO ug-out-1314.google.com) (66.249.92.170) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Jul 2007 06:53:41 -0700 Received: by ug-out-1314.google.com with SMTP id t30so655503ugc for ; Thu, 26 Jul 2007 06:53:20 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; b=Z6fsD6kDQRbe0YyfdYfTyIW8oM48sPfEMSzgKv8GfljSX9tmWIUFc/uMo4UUU3SsiTDDXf5C4agp5fscjAkA7dX0oYdhzwfqnZhTcDdaNyQWo9avyeNDnui01v4hLykRWt34PQhoVrVMh7Ilwe23aPvjBwsEqL8WyvWVJbd2MYE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=jB/MHR7lKL1AySVnsZitg0JhuqOL3dCh+yWeUQ8QZ1keEmxq8Cnplsd07tVwqzQeJB2XWomlzlK1gakrfN1J4vI2WQqaE5BnPGwzheCb8D3RcgT/x31tYNaxr3vhRASnvJNKCFRxaYtUDVmo9K8hM/gwIdxCMo+oo4iUbEFw/Ho= Received: by 10.78.201.2 with SMTP id y2mr436919huf.1185457999808; Thu, 26 Jul 2007 06:53:19 -0700 (PDT) Received: by 10.78.162.18 with HTTP; Thu, 26 Jul 2007 06:53:19 -0700 (PDT) Message-ID: <2bd5ed640707260653v7df189ebw9c9e0df05f146448@mail.gmail.com> Date: Thu, 26 Jul 2007 07:53:19 -0600 From: "daniel ccss" To: "MyFaces Discussion" Subject: Messages from a resources.properties file MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_173325_21033794.1185457999749" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_173325_21033794.1185457999749 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline How can I do this: FacesContext.getCurrentInstance().addMessage(null, new FacesMessage("*Invalid User*")); But reading the message from a resources.properties?: login.invalid.user= Invalid User ------=_Part_173325_21033794.1185457999749 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
How can I do this:
 
 FacesContext.getCurrentInstance().addMessage(null, new FacesMessage("Invalid User"));
 
But reading the message from a resources.properties?:
 
login.invalid.user= Invalid User
------=_Part_173325_21033794.1185457999749--