I add a mixins "Confirm" to a EventLink,When the eventlink request is xhr will return a zone,the mixins is invalid.
the mixins's java is @Import(library = "confirm.js") public class Confirm { @InjectContainer private ClientElement container; @Inject private JavaScriptSupport javaScriptSupport; @Parameter(value = "confirm.message", defaultPrefix = BindingConstants.MESSAGE) private String confirmMessage; @Parameter(defaultPrefix = BindingConstants.LITERAL, value = "click") private String clientEvent; @org.apache.tapestry5.annotations.BeforeRenderTemplate void addScript() { JSONObject json = new JSONObject(); json.put("id", container.getClientId()); json.put("message", confirmMessage); json.put("event", clientEvent); javaScriptSupport.addScript("new ConfirmDialog(%s);", json.toString()); } } js is ConfirmDialog = Class.create({initialize:function (spec) { Event.observe($(spec.id), spec.event, function (event) { var result = confirm(spec.message); if (result == false) { alert(event); Event.stop(event); return false; } }); }}); Can anyone help me,is there another mixins like the "ConFirm" provide -- View this message in context: http://tapestry.1045711.n5.nabble.com/mixins-Confirm-is-invalid-tp5118652p5118652.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