in the page class, you might have methods returning block, put a check for isXHR, if true return the block otherwise return null.
you have to inject Request in order to check isXHR. Sergey G. Kashin wrote: > > I have a problem with Ajax pages and google bot. > > Then google bot view ajax pages tapestry 5.1.0.5 throw > many exceptions. > like > "Caused by: java.lang.RuntimeException: A component event > handler method returned the value Block[Body of > page:goodzone, at context:page.tml, line 61]. 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. > " > > Google browse that pages by GET method, but tapestry > except a POST method. > > My page looks > <t:form> > <t:actionLink t:id="viewGood" context="$goodId" > zone="goodZone">view</t:actionLink> > > <t:zone t:id="goodZone" id="goodZone"> > ....... > </t:zone> > </t:form> > > I have same exception if i browse the page by link > /page.viewgood/6236823 with GET method. > > Is any issues? except no robots and so on > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > > -- View this message in context: http://old.nabble.com/searchengine-bots-and-tapestry-tp27543329p27544338.html Sent from the Tapestry - User 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