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 

Reply via email to