Currently developing in the JSP Dynpage model in EP 5, but will also be developing in EP 6, once we get our hands on the installer.
In the JSP page I have a HTMLB button defined as
<hbj:button id='Load' text="Load WorkBench" onClick="clickLoad" onClientClick="Validate()"/>
and the method clickLoad is in my Dynpage to handle when the user clicks on it.
I also know how to cancel the submit process of the button click in a call from the Validate() function with: