gigaZhang / struts2-jquery

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

Two different grids in the same page #787

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
(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. I have two grids
2. The code of the fist one is:
<s:url id="remoteurlNoc" action="json-jqgrid-noc" namespace="/" />
<s:url id="editurlNoc" action="json-edit-grid-entry-noc"/>

<sjg:grid
id="gridtableNic"
caption="Pool de NOCs"
dataType="json"
width="600"
href="%{remoteurlNoc}"
editurl="%{editurlNoc}"
pager="true"
navigator="true"
gridModel="listaPlanGridNoc"
rowList="10,20,30"
rowNum="10"
rownumbers="true"
onSelectRowTopics="rowselect"
editurl="%{editurlNoc}"
editinline="false"
multiselect="true"
viewrecords="true"
>
...
</sjg:grid>
3. The code of the second one is very similar (just change the actions)
4. If I render them in the page separately they are shown without any problems.
5. If I try to show them together in the same page, it just rendes the fist one.
6. Any idea?

What is the expected output? What do you see instead?
I expect to see to diferent grids in the same jsp page.

Which struts2 version?
2.2.3.

Which struts2-jquery plugin version?
3.2.1.

Please provide any additional information below.

Original issue reported on code.google.com by cobac...@gmail.com on 7 Mar 2012 at 9:00

GoogleCodeExporter commented 9 years ago
Do you have used two different IDs?

Original comment by johgep on 14 Mar 2012 at 2:48

GoogleCodeExporter commented 9 years ago
Thank you, johgep. That was the error. It's a silly one but most of the times 
those are the most difficult to find...

Original comment by cobac...@gmail.com on 15 Mar 2012 at 6:51

GoogleCodeExporter commented 9 years ago

Original comment by johgep on 16 Mar 2012 at 3:15