How to combine Client and Server-side Events?
Hello all,
I want to run some actions when user clicks a radio button.
the action will firstly be client side (i.e. a java script function) then server side (a method in a the java behaviour class)
the client side script is as follows:
function onClickCtrl(source) {
....
postServerEvent(null, null, null, "onClickDisplayCompany");
}
and in java class
public void onClickDisplayCompany(com.documentum.web.form.Control c, com.documentum.web.common.ArgumentList args)
{
DfLogger.debug(this, "onClickDisplayCompany", null, null);
}
The client side ran fine. but I get the following error message when it tries to run the server-side script.
invokeMethod() failed trying to call: onClickDisplayCompany( com.documentum.web.form.Control, com.documentum.web.common.ArgumentList )
class java.lang.NoSuchMethodException
does anyone know what I have done wrong? may be I need to change the postServerEvent to the following?
postServerEvent(null, null, null, "onClickDisplayCompany", null, null);
thanks.
Best Answer
-
0
Answers
-
0
-
do you have container in your component?
0 -
Can you please post the content of above link here. Old link does not work. I want to call server side event from JS inside a JSP page but not sure what is issue. Getting error message cannot call method. Same as above
0
Categories
- All Categories
- 111 Developer Announcements
- 49 Articles
- 103 General Questions
- 123 IM Services
- 40 OpenText Hackathon
- 31 Developer Tools
- 20.6K Analytics
- 4.1K AppWorks
- 8.9K Extended ECM
- 897 Cloud Fax and Notifications
- 77 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 123 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 1 XM Fax