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]