On 02.02.2011 16:39, Benny Law wrote:

> Yes, I am doing cross-field validation (e.g. quantity is required if another
> property of the item has a certain value) and that's why it has to be done
> in onValidateForm(), or at least that's what I think.

We have a similar issue in our application. You can solve yours like this:

- Inject the textfield in your page
- In onValidateFromQuantatiy(String), store quantity.getControlName
  in a Map
- In onValidateForm, proceed with your validation. To record an error,
  set the saved controlName to the component and push it into
  recordError

HTH
 Stephan

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to