gigaZhang / struts2-jquery

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

Grid behavior difference between 3.5.1 and 3.6.1 #1065

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. struts2-jquery-grid with a navigationExtraButton that opens a strut2-jquery 
dialog on click (I think the grid might be omitted, just a button opening the 
dialog will do, although I have not tested it)
2. this dialog's href points to an action that returns a jsp with a 
struts2-jquery-grid in it with some href set
3. on 3.5.1 the second grid loads correctly and on 3.6.1 it doesn't

Looking at the generated code, on 3.6.1, the rendering for the second grid and 
the calling of the href action is done inside a $(document).ready function, 
but, since this second grid is loaded inside a dialog, when the dialog is 
opened, the $(document).ready does not fire. In 3.5.1 I can't find how the 
second grid is loaded, but there's no $(document).ready function I can't sea, 
relating to this grid, that is. 

I'm using struts 2.3.15.3 and have changed from struts2-jquery 3.6.1 to 3.5.1

Original issue reported on code.google.com by amanda.t...@gmail.com on 19 Dec 2013 at 11:35