|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Invalid command sent |
« View previous topic :: View next topic » |
Author |
Message
|
WayneLee |
Posted: Wed Sep 29, 2004 10:22 am Post subject: Invalid command sent |
|
|
Newbie
Joined: 29 Sep 2004 Posts: 1
|
Hi, I want to create one customized command in workflow web clint, say myRefresh, and according to the steps in wf programming part 9,
I have myJSPViewer (extends JSPViewer class) class with a method of public ResponsePage myRefreshResponse(RequestContext context)
throws ClientException
{
return new ResponsePage(context, "/forms/ListViewer.jsp");
}
And I have myCommandHandler ( which extends GenericCommandHandler), with methods
//methods 1.
public RequestContext myRefresh(RequestContext context)
{
//just do nothing;
return context;
}
//when implement the above method, web client complaining:
//Method com.manpower.integration.workflow.webclient.
//TestMyCommandHandler.myRefresh(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) not found.
//method 2:
public void myRefresh(HttpServletRequest req, HttpServletResponse resp)
//public RequestContext myRefresh(HttpServletRequest req, HttpServletResponse resp)
{
//just do nothing;
//return getContext();
}
then, when I clich the refresh button, which associated with myRefresh command
the web client complain:
Invalid command sent: myRefresh
Note: in the webclient.properties file
CommandHandler mapped the myCommandHandler
and
DefaultViewer mapped to myJSPViewer.
Where is my wrong? |
|
Back to top |
|
 |
Ratan |
Posted: Thu Sep 30, 2004 2:26 am Post subject: |
|
|
 Grand Master
Joined: 18 Jul 2002 Posts: 1245
|
BuiltinHandler looks for a method returning "ResponsePage" object. Neither of your two methods do that. _________________ -Ratan |
|
Back to top |
|
 |
MQSerious |
Posted: Thu Sep 30, 2004 10:53 am Post subject: |
|
|
Acolyte
Joined: 29 Mar 2004 Posts: 68 Location: At Large
|
Try prefixing your custom commands with "x-" - recommended way to define custom commands and to future-proof the web client. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|