Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-3594

It is calling strtus action even though javascript is returning false

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 2.1.4
    • None
    • Plugin - Dojo Tags
    • 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.

      Attachments

        Activity

          People

            lukaszlenart Lukasz Lenart
            satyaprakash@tataelxsi.co.in Satya Prakash Tiwari
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: