Just tested this code and it worked for me on FF.
However I've noticed that you add the 'dLink' to a 'form', instead of
'dForm'. Is 'form' defined in the BorderPage?
Check that the following is generated in HTML:
onclick="return Click.submitLinkAction(this, 'dForm');
The Click.submitLinkAction is defined in extras-control.js so make
sure you have the latest version of this file deployed on the server.
Check for any errors in Firebug too.
bob
Joseph Schmidt wrote:
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.