Hi,
I have built a custom workpace as per the requiremnts. also, custom approval container,
now what is happening is that while submit the data from custom workspace , it is throwing exception;
Exception when invoking service 'remoting-service': flex.messaging.MessageException: Cannot invoke method 'prepareForSubmit'. Method 'prepareForSubmit' not found.
incomingMessage: Flex Message (flex.messaging.messages.RemotingMessage)
operation = prepareForSubmit
parameters = [EBB9CD44-7C5C-102D-8E25-00000A051045, 2902]
clientId = BC3D5FB2-9709-5A3C-5C2A-92AB0A3A1430
destination = task-actions
messageId = A3AA04BE-D287-DAE6-C042-2D277978BD5A
timestamp = 1297837685127
timeToLive = 0
body = null
hdr(DSId) = BC3CAB65-5D1C-688A-272F-3D7C4343E301
hdr(DSEndpoint) = workspace-polling-amf
Exception: flex.messaging.MessageException: Cannot invoke method 'prepareForSubmit'. Method 'prepareForSubmit' not found.
at flex.messaging.util.MethodMatcher.methodNotFound(MethodMatcher.java:378)
at flex.messaging.util.MethodMatcher.getMethod(MethodMatcher.java:186)
at flex.messaging.services.remoting.adapters.JavaAdapter.invoke(JavaAdapter.java:420)
at flex.messaging.services.RemotingService.serviceMessage(RemotingService.java:183)
at flex.messaging.MessageBroker.routeMessageToService(MessageBroker.java:1406)
at flex.messaging.AsyncMessageBroker.routeMessageToService(AsyncMessageBroker.java:571)
at flex.messaging.endpoints.AbstractEndpoint.serviceMessage(AbstractEndpoint.java:1005)
at flex.messaging.endpoints.amf.MessageBrokerFilter.invoke(MessageBrokerFilter.java:103)
at flex.messaging.endpoints.amf.LegacyFilter.invoke(LegacyFilter.java:158)
at flex.messaging.endpoints.amf.SessionFilter.invoke(SessionFilter.java:44)
at flex.messaging.endpoints.amf.BatchProcessFilter.invoke(BatchProcessFilter.java:67)
at flex.messaging.endpoints.amf.SerializationFilter.invoke(SerializationFilter.java:165)
at flex.messaging.endpoints.BaseHTTPEndpoint.service(BaseHTTPEndpoint.java:293)
at flex.messaging.MessageBrokerServlet.service(MessageBrokerServlet.java:364)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
and form remains as usual in workspace. this is not happening with only my custom apprval container but also with default and approval container too.
it's seems to me there is some probem with my custom workspace code. as it is working fine with default workspace.
what i did, was created custom login, as well as some header comp and just lc:ToDo componet to which session is bound in Main.mxml.
what is going wrong here? can anybody explain?
want to add some more is that "prepareForSubmit" is present in TaskManager - api project - workspcae source code. But what i don't understand why it is not able to found it?