Hi,

 

Still playing around with Tapestry 4.1 it seems I just can't get Ajax to
work in any case. I created the following simple example which doesn't do
Ajax. It just makes a regular request:

 

My html:

 

<a href="#" jwcid="[EMAIL PROTECTED]" listener="listener:listen"
updateComponents="ognl:{'testajax'}">Hello!</a>

<span jwcid="[EMAIL PROTECTED]" value="ognl:toggle" id="testajax"/>

 

My class:

 

public void listen(IRequestCycle cycle) {

   setToggle(!getToggle()); 

}

 

The html produced:

 

<a
href="/test/app?component=link&amp;page=Home&amp;service=direct&amp;session=
T" id="link">Hello world!</a>

 

Is there something missing that I'm just not seeing? Is there something Tap
4.1 needs to activate ajax? I''m using "ajaxEnabled="ognl:true"" on my
@Shell component just to be safe. When using Tacos it was expected that
anytime the Ajax* components where used, the request should be an Ajax
request, I'm not sure how to do that in Tap 4.1. I assume it knows either
because of the "updateComponents" parameter or because of an attatched
@EventListener annotation.

I also tried using @EventListener (with a onmouseover event) with no
success. It does generate the appropriate javascript
(dojo.event.connect(dojo.byId("link"), "onMouseOver", function(e). ) but
nothing happens when I try to use it.

 

I appreciate any help.

Denis Souza

 

Reply via email to