Hello users and developers!
I have template:
<t:zone t:id="output"> ${value} </t:zone>
<t:actionlink t:id="update" zone="output">UPDATE</t:actionlink>
And page class:
@Persist
private int value;
@InjectComponent("output")
private Zone output;
@Inject
private Request request;
public Object onActionFromUpdate() {
value++;
if (request.isXHR()) {
return output.getBody();
} else {
return null;
}
}
This code almost from tapestry example.
When I click on link, browser send two request: first using AJAX (POST) and
secondary ordinary link behavior (GET).
Just like there are no "return false" on link event handler in javascript.
How I can avoid this behavior? I need only one AJAX request.
--
View this message in context:
http://n2.nabble.com/actionlink-ajax-double-request-tp2906180p2906180.html
Sent from the Tapestry Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]