The disabling can be accomplished using JavaScript OnClick() event.
regarding the hyperlink item:
It looks like you are on the right track. You've created a field to hold the value of the method call. At the end of your
java script, submit the form - document.forms[0].submit()
Then modify your action class to handle the method field.
<code>
if(myForm.getMethod() == "deleteSelectedMessages"){
myBusinessObject.DeleteSelectedMessagesMethod(myForm);
// then forward me somewhere or back to that same screen...
}
else{
// do other stuff
}
</code>
or however you want to do it...