Hello,

I have a form in a page, that is injected as a component in the java code.
To validate the form before submission, I want to do something like that :
8<------------------------------------------------------------
   void onValidateFromForm() {
       try {
         validate data consistancy
       } catch (Exception e) {
          form.recordError(fieldWitchCauseTheError, "a text");
       }
8<------------------------------------------------------------

But I don't understand how I can find "fieldWitchCauseTheError", I don't see any method to access the list of field of the form (and I can't inject fields because they are generated at runtime, or enclosed in other components).
anybody know how can I access the fields of a form ?

Thanks,

--
Francois Armand
Etudes & Développements J2EE
Groupe Linagora - http://www.linagora.com
Tél.: +33 (0)1 58 18 68 28
-----------
InterLDAP - http://interldap.org FederID - http://www.federid.org/
Open Source identities management and federation


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to