OK, I don't know if this is the problem but the onSubmit methods are spelled wrong in Dan's pasted example.  It says "onSumbit()".  Is that what you have in the code too?

--Andrew

On 10/29/05, Ali Zaid <[EMAIL PROTECTED]> wrote:
Which release of wicket you are using?


On 10/29/05, Dan Gould < [EMAIL PROTECTED]> wrote:
I'm trying to create a form with multiple submit buttons follow the
example on
http://www.wicket-wiki.org.uk/wiki/index.php/Multiple_submit_buttons_in_form

The buttons' onSubmit isn't getting called.  [However, the Form's onSubit
IS getting called.]

My HTML looks like

<form id="backForm" wicket:id="backForm" target="_top">
   <input id="thumbdown" wicket:id="thumbdown" type="image"
      src="" alt="thumbs down" name="thumbdown" />

   <input id="thumbup" wicket:id="thumbup" type="image"
      src="" alt="thumbs up" name="thumbup" />
</form>

And my code looks like:

private final class BackForm extends Form {
         public BackForm(final String componentname)
         {
             super(componentname);

             add(new Button("thumbup") {
                 protected void onSumbit() {
                     if(log.isDebugEnabled()) log.debug("THUMBS UP");
                 }
             });

             add(new Button("thumbdown") {
                 protected void onSumbit() {
                     if(log.isDebugEnabled()) log.debug("THUMBS DOWN");
                 }
             });
         }
}

Any ideas?  [I just realized: does the type="image" cause problems for
wicket?  If so, is there a workaround?]

Thanks,
Dan


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



--
Regards, Ali

Reply via email to