Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
2.1.4
-
None
-
None
-
Windows
Description
I am using this tag to delete user entry from table.
<s:url action="deleteGroup.action" var="deleteUrlTag" >
<s:param name="group.groupId"><s:property value="groupId"/></s:param>
</s:url>
<sx:a id="url1" href="%
{#deleteUrlTag}" executeScripts="true" onclick="return confirm('Do you really want to delete this Group?');" targets="three">Delete</sx:a>
Here i am calling the confirm() javascript function.when user clicks on "ok" then it should call struts action and when user clicks on "cancel" button it should not call this action.
But in my i have seen that,it is calling the struts action in both the cases(in case of "ok" and "cancel" ).
Can you please tell for these dojo tags how can i handle this.
It should call the href action class when javascript is returning true. it should not call when it is returning false.
Is this a bug in struts dojo api.?
Please tell me how can i solve this.