Currently, I have a event handler like this: Object onAction(String page) { return page; }
Now I want to enable ajax, so I try to return a certain block rather than the whole page, if the incoming request is a XHR: Object onAction(String page, String block) { if (request.isXHR()) { return getPageBlock(page, block); } else { return page; } } if the getPageBlock() method works, everything will be ok. Here is where I got stuck. How to implement this method? Or is it possible to write such a method at all? -- View this message in context: http://www.nabble.com/T5.1%3A-Get-block-by-%28page-and-block%29-names--tp25151389p25151389.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