rahul1671986 / struts2-jquery

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

Remote Dialog does not execute Action with Plugin-Version 3.2.1 #761

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

See Simple Example Project with attached files.

What is the expected output? What do you see instead?

Expected is a Dialog with Content loaded from Remote.
With Version 3.2.1 the Content doesnt get loaded, even
the Action is not executed.

Which struts2 version?

2.3.1.2

Which struts2-jquery plugin version?

3.2.1

Please provide any additional information below.

The provided Example works with Plugin-Version 3.1.1.

Original issue reported on code.google.com by oldmangl...@googlemail.com on 27 Jan 2012 at 10:05

Attachments:

GoogleCodeExporter commented 9 years ago
same problem , we use tomcat 6.0.32

Original comment by bellach...@gmail.com on 31 Jan 2012 at 10:59

GoogleCodeExporter commented 9 years ago
Can you please use Firebug or something similar and open the Network/XHR Panel 
to see if any request is happens and when yes if it is successfully?

Also are there any JavaScript Errors?

Original comment by johgep on 31 Jan 2012 at 9:09

GoogleCodeExporter commented 9 years ago
With Version 3.2.1 there is no Post-Request (FirebugJQueryPluginBUG.png) and
Firebug shows no Errors in Javascripts. With Version 3.1.1 there is a 
Post-Request
(FirebugJQueryPluginOK.png).

Original comment by oldmangl...@googlemail.com on 1 Feb 2012 at 7:39

Attachments:

GoogleCodeExporter commented 9 years ago
Does it works when you change yor JSP like this?

<sj:dialog id="help_dialog"
    href="%{help_dialog_url}"
    title="Help"            
    autoOpen="false"            
    modal="true"            
    height="320"            
    width="640"             
    buttons="{'Close': function() { $('#help_dialog').dialog('close');} }"
/>
<sj:a id="help_link" openDialog="help_dialog" href="%{help_dialog_url}">Open 
Dialog</sj:a> 

Or try it with openTopics like this:

<sj:dialog id="help_dialog"
    href="%{help_dialog_url}"
    openTopics="openHelpDialogTopic"
    title="Help"            
    autoOpen="false"            
    modal="true"            
    height="320"            
    width="640"             
    buttons="{'Close': function() { $('#help_dialog').dialog('close');} }"
/>
<sj:a id="help_link" onClickTopics="openHelpDialogTopic">Open Dialog</sj:a> 

Original comment by johgep on 1 Feb 2012 at 8:33

GoogleCodeExporter commented 9 years ago
The first Change (adding "href") works, the second with the Topics doesn't.

Original comment by oldmangl...@googlemail.com on 1 Feb 2012 at 10:01

GoogleCodeExporter commented 9 years ago
When setting autoOpen="true" or leaving autoOpen at all, it is working.

Original comment by mar...@demetz.eu on 3 Feb 2012 at 4:38

GoogleCodeExporter commented 9 years ago
Hi,

I have a requirement below:

<sj:dialog id="help_dialog"
    openTopics="openHelpDialogTopic"
    title="Help"            
    autoOpen="false"            
    modal="true"            
    height="320"            
    width="640"             
    buttons="{'Save': function() {$('#formName').submit();}, 
'Close': function() { $('#help_dialog').dialog('close');} }"
/>
<sj:a id="help_link" onClickTopics="openHelpDialogTopic">Open Dialog</sj:a>

When click on above link, makes a call to action and page with form loads into 
above dialog. When I click on 'Save', the form is not submitted. Please help.

Original comment by Trinada....@gmail.com on 9 Feb 2012 at 3:54

GoogleCodeExporter commented 9 years ago
I am also facing the same problem with Struts Jquery 3.3.3, when i set autoOpen 
= false, it cannot load the action, if I set the autoOpen = true, the content 
will be load,has this problem solved?

Original comment by Panlong...@gmail.com on 25 Apr 2013 at 7:32

GoogleCodeExporter commented 9 years ago
I have tried 3.4.0, it's ok

Original comment by Panlong...@gmail.com on 25 Apr 2013 at 7:37

GoogleCodeExporter commented 9 years ago
@PanlongJia so it is fixed with latest Version?

Original comment by johgep on 25 Apr 2013 at 7:49