Maybe because IE 
you need edit tapestry.js about linkZone:function...
element.onsubmit = handler; replace to: Event.observe(element, 'submit',
handler);
and element.onclick = handler; replace to:Event.observe(element, 'click',
handler);
and need add line :Event.stop(event);
after new Ajax.Request(element.href, { onSuccess : successHandler });

@see
http://www.prototypejs.org/2007/10/16/prototype-1-6-0-rc1-changes-to-the-class-and-event-apis-hash-rewrite-and-bug-fixes
#Changes to the Event API


Petros Petrou wrote:
> 
> When the userSearchForm of the code below is submitted I am getting the
> following exception
> 
> A component event handler method returned the value
> [EMAIL PROTECTED] Return type
> org.apache.internal.structure.BlockImpl can not be handled. Configured
> return types are java.lang.Class, java.lang.String, java.net.URL,
> org.apache.tapestry.Link, org.apache.tapestry.StreamResponse,
> org.apache.tapestry.runtime.Component. 
> 
> I am trying to update the search results table when the form is submited
> as an Ajax call. Any ideas ?
> 
> UserPicker.java
> @Inject
> private Block searchResultsBlock;
> 
> Object onSuccessFromUserSearchForm()
> {
>    foundUsers = userManager.findUsers(...);
>    return searchResultsBlock;
> }
> 
> UserPicker.tml
> ...
> <html>
>    <body>
>        <form t:id="userSearchForm" zone="searchResultsZone">
>            ...
>            <input t:type="Submit" value="Find Users"/>
>        </form>
> 
>        <div t:type="Zone" t:id="searchResultZone"/>
> 
>        <div t:type="Block" t:id="searchResultsBlock">
>            <table t:type="Grid" source="foundUsers"/>
>        </div>
>    </body>
> <html>
> 

-- 
View this message in context: 
http://www.nabble.com/Form-with-a-Zone--%3E-ComponentEventException-tp16346150p16834687.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to