hungsama / struts2-jquery

Automatically exported from code.google.com/p/struts2-jquery
0 stars 0 forks source link

sj:a into a sj:dialog doesn't work #776

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Which struts2 version?
2.2.3

Which struts2-jquery plugin version?
3.2.1

The code :

<sj:dialog id="myclickdialog"
            autoOpen="false"
            modal="true"
            title="%{getText('title.modal.modification')}"  >
    <s:url id="urlPrecedent" action="currentAction" method="previousStep" includeParams="none" escapeAmp="false"/>
    <sj:a href="%{urlPrecedent}" formIds="formStarter" targets="demandeContents">
        <s:text name="value.yes" />
    </sj:a>

    <s:url id="urlSuivant" action="currentAction" method="nextStep" includeParams="none" escapeAmp="false"/>
    <sj:a href="%{urlSuivant}" formIds="formStarter" targets="demandeContents">
        <s:text name="value.no" />
    </sj:a> 
</sj:dialog>

When i click on link nothing happens. Nothing either on firebug console.
Impossible to debug what's happening

Original issue reported on code.google.com by costa...@gmail.com on 15 Feb 2012 at 1:34

GoogleCodeExporter commented 9 years ago

Original comment by johgep on 28 Feb 2012 at 9:17

GoogleCodeExporter commented 9 years ago
Can you please verify if this problem still exists in latest version and latest 
SNAPSHOT 3.4.0-SNAPSHOT?

Original comment by johgep on 10 Sep 2012 at 2:35

GoogleCodeExporter commented 9 years ago
This is still occurring for me in 3.5.1.  href gets set to "javascript:void(0)"

Original comment by RKums...@gmail.com on 7 Feb 2013 at 2:49

GoogleCodeExporter commented 9 years ago
When using struts2-jquery plugin 3.1.1 I could use a sj:a tag inside of a 
sj:dialog tag without a targets attribute and its target would default to the 
dialog it was in.  Now (versions greater than 3.2.1 ?) if you don't supply a 
target, the anchor tags href gets set to "javascript:void(0)" if there is no 
target specified.  A workaround is to set the targets attribute to the dialog's 
ID.

Original comment by RKums...@gmail.com on 7 Feb 2013 at 3:36