Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 61396 invoked from network); 29 Jan 2008 19:46:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Jan 2008 19:46:42 -0000 Received: (qmail 89870 invoked by uid 500); 29 Jan 2008 19:46:30 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 89837 invoked by uid 500); 29 Jan 2008 19:46:30 -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 89826 invoked by uid 99); 29 Jan 2008 19:46:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Jan 2008 11:46:29 -0800 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 (athena.apache.org: local policy) Received: from [70.89.230.181] (HELO infosolv.org) (70.89.230.181) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Jan 2008 19:46:03 +0000 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C862AF.9818982A" Subject: jsf validation in diffrent life phases X-MimeOLE: Produced By Microsoft Exchange V6.5 Date: Tue, 29 Jan 2008 14:46:09 -0500 Message-ID: <9BDB3947E63672408FCC6388C5CDE52615F530@infodomain.InfoSolvInc.local> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: jsf validation in diffrent life phases Thread-Index: Achir5gRscEQB5sBSKKfEyhj8bxDmw== From: "Yaron Spektor" To: "MyFaces Discussion" X-Virus-Checked: Checked by ClamAV on apache.org This is a multi-part message in MIME format. ------_=_NextPart_001_01C862AF.9818982A Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Hi, I have a form that I would like to validate. Some of the validations are field validations and some need application-level validation (for example a country must match a state - where State and Country are 2 different fields in the form). I would like to be able to show * next to the erroneous data. This is trivial in field validation, but how do I do it in application level validation? A workaround I thought of is holding the components in a map and adding an * to them if an error occurred, but I am sure there is a simpler less cumbersome option out there (maybe with phase listeners?). I would appreciate any advice, Thanks,=20 Yaron, =20 =20 ------_=_NextPart_001_01C862AF.9818982A Content-Type: text/html; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable

Hi,

I have a form that I would like to validate. Some of the = validations are field validations and some need application-level validation (for = example a country must match a state – where State and Country are 2 = different fields in the form).

I would like to be able to show * next to the erroneous data. = This is trivial in field validation, but how do I do it in application level = validation?

A workaround I thought of is holding the components in a map and = adding an * to them if an error occurred, but I am sure there is a simpler less = cumbersome option out there (maybe with phase = listeners?).

I would appreciate any advice,

Thanks,

Yaron,

 

 

------_=_NextPart_001_01C862AF.9818982A--