struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pablo Vázquez Blázquez <>
Subject simulate event on struts 2 tag
Date Mon, 01 Oct 2007 07:27:51 GMT
Hi all!

I have the following code:

<s:a id="removeProject" theme="ajax" notifyTopics="/submitProjectForm"
        loadingText=" " targets="workspaceAjaxContent" executeScripts="true"
        onclick="var a = confirm('Are you sure you want to do this?');
        if (a) {
            var link = document.getElementById('removeProject');
            link.href = '${removeProjectUrl}';
            link.onclick = '';
            return false;
    <fmt:message key="Project.remove"/>

The project is successfully removed and I get the right result, but it 
is shown in the whole page, not in the "workspaceAjaxContent" target. 
That is, it seems like if click() event doesn´t take care about the 
"targets" attribute.

Any suggestion?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message