Hi all, I'm trying to update two zones using the MultiZoneUpdate return type from my onSuccessFrom<Form> method, but Tapestry gives me an error saying the return type is not understood (see stack below).
I've read, and re-read the info on MultiZoneUpdate usage at http://tapestry.apache.org/tapestry5.1/guide/ajax.html but no where does it mention anything about configuration (or how to trigger the zone update from a form (besides the normal form 'zone' attribute)). Any tips on getting this to work in Tapestry 5.1.0.5? Thanks, Levi --- My form event handler method: Object onSuccessFromMain() { if (_mainCategoryIterator != null) { setMainCategory(_mainCategoryIterator); } MultiZoneUpdate mzu = new MultiZoneUpdate("primarySelectZone", primarySelectZone.getBody()); mzu.add("directZone", directZone.getBody()); return mzu; } The Stack Trace: ERROR [http-8080-2: RequestExceptionHandler]: Processing of request failed with uncaught exception: A component event handler method returned the value MultiZoneUpdate[{primarySelectZone=Block[Body of Search:primaryselectzone, at classpath:com/java/dse/cwp/eos/pages/Search.tml, line 52]}]. Return type org.apache.tapestry5.ajax.MultiZoneUpdate can not be handled. Configured return types are java.lang.Class, java.lang.String, java.net.URL, org.apache.tapestry5.Link, org.apache.tapestry5.StreamResponse, org.apache.tapestry5.runtime.Component. org.apache.tapestry5.runtime.ComponentEventException: A component event handler method returned the value MultiZoneUpdate[{primarySelectZone=Block[Body of Search:primaryselectzone, at classpath:com/java/dse/cwp/eos/pages/Search.tml, line 52]}]. Return type org.apache.tapestry5.ajax.MultiZoneUpdate can not be handled. Configured return types are java.lang.Class, java.lang.String, java.net.URL, org.apache.tapestry5.Link, org.apache.tapestry5.StreamResponse, org.apache.tapestry5.runtime.Component. [at classpath:com/java/dse/cwp/eos/pages/Search.tml, line 18] at org.apache.tapestry5.internal.structure.ComponentPageElementImpl.triggerContextEvent(ComponentPageElementImpl.java:1098) at org.apache.tapestry5.internal.services.ComponentEventRequestHandlerImpl.handle(ComponentEventRequestHandlerImpl.java:75) at org.apache.tapestry5.internal.services.ImmediateActionRenderResponseFilter.handle(ImmediateActionRenderResponseFilter.java:42) at $ComponentEventRequestHandler_1232a2b90f1.handle($ComponentEventRequestHandler_1232a2b90f1.java) at org.apache.tapestry5.internal.services.AjaxFilter.handle(AjaxFilter.java:42) at $ComponentEventRequestHandler_1232a2b90f1.handle($ComponentEventRequestHandler_1232a2b90f1.java) at org.apache.tapestry5.services.TapestryModule$36.handle(TapestryModule.java:2164) at $ComponentEventRequestHandler_1232a2b90f1.handle($ComponentEventRequestHandler_1232a2b90f1.java) at $ComponentEventRequestHandler_1232a2b90d7.handle($ComponentEventRequestHandler_1232a2b90d7.java) at org.apache.tapestry5.internal.services.ComponentRequestHandlerTerminator.handleComponentEvent(ComponentRequestHandlerTerminator.java:43) at $ComponentRequestHandler_1232a2b8fe7.handleComponentEvent($ComponentRequestHandler_1232a2b8fe7.java) at org.apache.tapestry5.internal.services.ComponentEventDispatcher.dispatch(ComponentEventDispatcher.java:46) at $Dispatcher_1232a2b8ff3.dispatch($Dispatcher_1232a2b8ff3.java) at $Dispatcher_1232a2b8fe4.dispatch($Dispatcher_1232a2b8fe4.java) at org.apache.tapestry5.services.TapestryModule$RequestHandlerTerminator.service(TapestryModule.java:245) at org.apache.tapestry5.internal.services.RequestErrorFilter.service(RequestErrorFilter.java:26) at $RequestHandler_1232a2b8fe5.service($RequestHandler_1232a2b8fe5.java) at org.apache.tapestry5.services.TapestryModule$4.service(TapestryModule.java:778) at $RequestHandler_1232a2b8fe5.service($RequestHandler_1232a2b8fe5.java) at org.apache.tapestry5.services.TapestryModule$3.service(TapestryModule.java:767) at $RequestHandler_1232a2b8fe5.service($RequestHandler_1232a2b8fe5.java) at org.apache.tapestry5.internal.services.StaticFilesFilter.service(StaticFilesFilter.java:85) at $RequestHandler_1232a2b8fe5.service($RequestHandler_1232a2b8fe5.java) -- View this message in context: http://n2.nabble.com/-T5.1--MultiZoneUpdate-can-not-be-handled-Error-tp3462182p3462182.html Sent from the Tapestry Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org