[Seaside] Problem with form submit half working

Avi Bryant avi.bryant at gmail.com
Sun Nov 27 11:10:58 CET 2005

On Nov 27, 2005, at 2:07 AM, Todd Blanchard wrote:

> This is really odd.  I have a component with a little login form -  
> email address and password with a submit button.   I registered a  
> callback on the form.  If I type stuff into the fields and hit  
> return, the form submits and the action is performed as I expect.   
> If I type stuff in and click on the submit button, the password  
> field is cleared and my action isn't performed (I replace the  
> component with a set of advanced options and a logout button - this  
> doesn't happen when the submit button is used but does happen when  
> I hit return).
> I'm completely baffled and I'm sure this is something boneheaded on  
> my part.

The #defaultAction: only gets run if no submit button is pressed.   
You need to either duplicate the callback on the submit button  
itself, or (since you only have one button in this form), just drop  
the defaultAction: entirely.


More information about the Seaside mailing list