I Guess you *could* make your components implement IFormComponent and let the delegate call some form cycle methods.
first, I am not sure of how it works.
second, you need a thorough understanding of the form cycle. I suspect this is not so simple (I might be wrong on that...) - personally I would avoid it in order not to take the "risk" of violating the delefate's contract which is still unclear to me.


Mahmut Izci wrote:
Ron Piterman wrote:

There is currently no form related listener capabilities inside the cycle. What you could do is override renderComponent(), and, after calling super, check if the cycle is rewinding. if it is, perform the additional validation you need. since you called the super method, you can cound on all values which the component handles to be already submitted and set to the related objects.
Cheers,
Ron

This works fine, thanks. I checked the component values before i called the super method and was wondering, that they were not submitted already.
However a form listener mechanism in cycle would be more elegantly.

Mahmut



Mahmut Izci wrote:

Hi,

assume that we have a page with a form. This page contains several components.
Each component contain usually form fields (like textfield, select box).
The form listener method resides on the page.
When the form is submitted, how can the components get noticed of it (e.g. to validate the form data)?

Thanks
Mahmut Izci


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




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



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




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

Reply via email to