Skip to Content
Former Member
Jun 06, 2008 at 04:22 AM

Handling form submmit in AbstractPortalComponent?



I have a portal component representing a logon page. This component is a subclass of AbstractPortalComponent and displays a form with a "submit" button.

I would like to set a cookie when the form is submitted. I can do this in JavaScript by setting the form's "onClick" attribute, but I would like to handle this programmatically within the AbstractPortalComponent subclass.

I thought I would capture any form submit event with the doRequestEvent() method, but this does not get called. Neither does doComponentEvent() nor handleEvent().

Can anyone provide an example of programmatically handling a form submit in an AbstractPortalComponent?