Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Unable to invoke controller on button click

Hi all,

From one of the already existing portal logon screens, I have to invoke a component that I have written (Because a new functionality was added)

I have added the necessary code in the JSP to invoke my controller class -

<hbj:button
	id = "Contactus"
        text = "SUBMIT"						disabled = "false" 				onClientClick="validateFields()"			onClick = "SendMail"
        design="STANDARD"/>

In my JSP DynPage Controller class I have the following method:

public void onSendMail(Event event)throws PageException{

//My code

}

But I find that this code is not invoked.

What could be the reason?? Is there any other way by which I can add a button to an already existing portal page and do some processing with it?

Not what you were looking for? View more on this topic or Ask a question