Export to GitHub

struts2-jquery - issue #445

Tabbedpanel not submiting form data


Posted on Feb 19, 2011 by Grumpy Cat

(This is for feature requests and bugs in Struts2 jQuery Plugin - for getting help, please use the User Group. http://groups.google.com/group/struts2-jquery )

What steps will reproduce the problem? 1.Create a from and provide id attribute. 2.create a tabpanel with tabs and provide href and formIds attribute. href will point to a action class that will display form data.

What is the expected output? What do you see instead? Action class we should able to retrive form data. But m getting form data as null.I tried all the possibilities but its not submitting the form.

Which struts2 version? struts 2.2.1.1

Which struts2-jquery plugin version? 2.5.3

Please provide any additional information below.

<s:url id="detailUrl" action="detailVSubscriber.action" />

<form id="myform"> <input type="text" name="mdnNumber" value="12345678"/> </form>

<sj:tabbedpanel id="mytabs2" cache="false"> <sj:tab formIds="myform" id="tab1" href="%{detailUrl}" key="label.Details" /> </sj:tabbedpanel>

Comment #1

Posted on Feb 21, 2011 by Swift Lion

(No comment was entered for this change.)

Comment #2

Posted on Feb 28, 2011 by Swift Lion

http://code.google.com/p/struts2-jquery/source/detail?r=1354

Comment #3

Posted on Mar 1, 2011 by Grumpy Cat

Hi johgep,

How can i disable close button of sj:dialog.

Thanks & Regards Gunjan

Comment #4

Posted on Mar 1, 2011 by Swift Lion

set the closeOnEscape attribute to false and put following code in a onOpenTopics.

jQuery(".ui-dialog-titlebar-close").hide();

Comment #5

Posted on Mar 4, 2011 by Grumpy Cat

Hi johgep,

Thanks for the sj:dialog close button disabling code. Its working fine. One more query. I am able to cancel ajax submit using event.originalEvent.options.submit = false; But how can i do it for sj:a

Thanks & Regards Gunjan Vishwakarma

Comment #6

Posted on Mar 7, 2011 by Swift Lion

when sj:a submits a form, it should work the same way.

Comment #7

Posted on Mar 11, 2011 by Massive Panda

Hi, Disable close button not working for sj:dialog. I tried your code, but not working. I write the folowing code as you suggested: .....

Please suggest me.

Comment #8

Posted on Mar 11, 2011 by Swift Lion

please take a look in the docs or showcase how topics work.

in your javascript section:

$.subscribe('dialogopentopic', function(event, ui) {
    jQuery(".ui-dialog-titlebar-close").hide();
});

in your JSP: .....

Comment #9

Posted on Mar 11, 2011 by Massive Panda

Hi, Thanks for the info. But still its not working. Please find my code below. I put two alerts. I'm getting outside alert('hello..') but not inside one. I think that subscribe code is not getting executed. I dont know the reason. I've tried subscribe script inside also but no use.

Please provide mobile number and email id. Other users may contact you if necessary.

$.subscribe('dialogopentopic', function(event, ui) { alert('hi'); jQuery(".ui-dialog-titlebar-close").hide(); }); alert('hello..');

But if try with normal jquery, its working fine. $(function() {

$( "#dialog-form" ).dialog({
    resizable: true,
    width:310,
    height:275,
    modal: true,
    closeOnEscape: false,
    open: function(event, ui) { $(".ui-dialog-titlebar-close").hide(); },

});

});

I couldnt' find the issue. Please help me in this regard.

Comment #10

Posted on Mar 14, 2011 by Grumpy Cat

Hi johgep,

sj:tab mouse event are working like onclick onmouseover etc. Also onBeforeTopics attribute is also not working.

Thanks & Regards Gunjan Vishwakarma

Comment #11

Posted on May 6, 2011 by Swift Lion

(No comment was entered for this change.)

Status: Fixed

Labels:
Type-Enhancement Priority-Medium Component-Plugin Milestone-3.0.0