Often what happens is that some invaild JS on the client causes an
exception, and (for whatever reason) that results in the original
event continuing as a full-page (non-Ajax) request.  This is where
FireBug is your friend. I know it should just work ... what's your
browser?

On Fri, Mar 5, 2010 at 4:32 PM, Pierce T. Wetter III <pie...@paceap.com> wrote:
>
>   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.
>
>
>



-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to