Ok, so I've figured out I get the error because request.isXHR is false. 

 So why does wrapping the Layout.tml component from the quickstart cause the 
Ajax request turn into a non-XHR request?



>  So I'm building a custom component that's a combination of a Grid component, 
> with a zone that updates so that if you click on one of the items in the 
> grid, it uses a second component that uses the beandisplay component to 
> display more detail. 
> 
>  It works fine when I have the structure:
> 
>     Page
>          <body>
>          MyComponent
>          </body>
> 
>  This is, you quick on the grid items, and the zone updates. 
> 
>   But if I wrap the contents of Page with <t:layout>, I get:  "A component 
> event handler method returned the value Block" error. 
> 
> 
>     Page
>          <body>
>          <t:layout>
>                  MyComponent
>          </t:layout>
>          </body>
> 
>  My component looks like this:
> 
> <body>
>  
>    <t:zone t:id="viewZone" />
>    <t:grid>
>       <t:actionlink zone="viewZone>
>    </t:grid>
>    <t:block id=details>
>          blah
>    </t:block>
> 
>  Am I doing something wrong? I'm using 5.2-SNAPSHOT if that matters. 
> 
> 
> Exception:
> 
> A component event handler method returned the value Block[userDetails within 
> ListUsers:usergrid, at 
> classpath:com/paceap/eden/schematool/components/UserGrid.tml, line 15]. 
> Return type org.apache.tapestry5.internal.structure.BlockImpl 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.
> 
> 

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to