Hello Murray, One of the basic classes in the AJAX support is ResponseBuilder
http://tapestry.apache.org/tapestry4.1/apidocs/org/apache/tapestry/services/ResponseBuilder.html There you can call a method updateComponent(String) with id of the component you want to update. That's all you don't need to use updateComponents parameter. Renat On 15/02/07, Murray Collingwood <[EMAIL PROTECTED]> wrote:
Hi all I hunted for ages and haven't been able to find any simple examples of how to use the Ajax features of Tapestry 4.1. Sorry guys, it's just not obvious from the documentation how it works. You would think a basic @DirectLink with updateComponents and async=true would do it - nah, didn't work for me: <a jwcid="@DirectLink" listener="listener:changeTab" parameters="2" updateComponents="orderarea" async='true' class="tab"> Text</a> public void changeTab(IRequestCycle cycle) { Object[] parameters = cycle.getListenerParameters(); Integer iix = (Integer) parameters[0]; setCurrentTab(iix); System.err.println("Set tab to " + iix.intValue()); } The page displays but when I click the above link it disappears and I see part of an exception output display. If somebody can point me at a simple Ajax enabled app using Tap 4.1 would probably help me greatly. Cheers mc --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Best regards, Renat Zubairov --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]