click-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joseph Schmidt <joseph_schmid...@yahoo.com>
Subject SubmitLink does not submit :(.
Date Tue, 21 Apr 2009 16:25:29 GMT
I tried to use the new SubmitLink component but it doesn't seems to work 
at all :(.

E.g. If I have:
--------------------------------------------------------------------------
class MySubmitPage extends BorderPage {
   public Form dForm = new Form("dForm");
   public MyPage(){
      SubmitLink dLink = new SubmitLink("dLink","Yes delete the 
object!", this, "onDeleteClick");
      dLink.setParameter("toDelete", getService().getObjectId());
      form.add(dLink);
   }
   public boolean onDeleteClick(){
     System.out.println("Object delete..."); // [*]
     return true;
   }
}
---------------------------------------------------------------------------
in the my-submit.htm I have of course: $dForm

The link is rendered, CSSes and JSes are in the page, but no submit 
takes place, i.e. the system.out statement at line [*] doesn't get 
called :(.

thanks,
Joseph.


Mime
View raw message