I think updateComponents needs to be an array. So...

updateComponents="ognl:{'orderarea'}"

At least that's what I use and it works but I'm not sure if that's a
requirement.


On 2/14/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]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to