I have created an equal validator for MyFaces (<x:validateEqual/>) <h:inputText id="passwd1" .../> <h:inputText id="passwd2" ...> <x:validateEqual for="passwd1"/> </h:inputText>
but it is limited to JSF spec 1.1 ... in other words, you can't place it before passwd1 SRC can be found in CVS HTH, Matthias On 4/22/05, Srikanth Madarapu <[EMAIL PROTECTED]> wrote: > If you know the id of component B, you could get using... (you already have > access to component A) > > componentA.findComponent( "id of component B").getSubmittedValue() > > -Srikanth > > -----Original Message----- > From: Robert Breidecker [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 21, 2005 2:42 PM > To: MyFaces Discussion > Subject: Cross component validation question > > This is something I think I should be able to figure > out, but haven't been able to yet. > > Does anyone know how to get the value of another > component that was entered in the form when validating > for another component. > > Let's say I have Component A and Component B. A has a > value of 1 and B a value of 2. On the screen I enter > 11 for A and 12 for B. In my validator for B I want > to see the value of 11 for A. However, I get the > value of 1 for A which is the value stored in the > backing bean. How can I get to the value of 11? > > Thanks, > Rob Breidecker > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > -- Matthias Wessendorf

