I am creating the JSP from within the dynpage. So in the doProcessBeforeOut() I am creating the tableviews and assiging components into it.
In the dynpage:
IPortalComponentRequest request = (IPortalComponentRequest) getRequest();
String jsResource = request.getWebResourcePath() + "/com.nexeninc.tots.admin.group/dist/scripts/confirmation.js";
In the confirmation.js file: just for now, and to simplify it further I am just displaying an allert
alert("will be deleted")
In the dynpage again: where I am defining the button component
Button btnDelete = new Button("btnDelete");
//then I am adding the button to the form
Did anybody face the same problem? If yes, what would you suggest to do?