| Issue 215: | two JMesa tag in same gsp page does'nt work | |
| 1 person starred this issue and may be notified of changes. | Back to list |
What steps will reproduce the problem?
1. put two jmesa tag in same gsp page
2. create an grails action to prepare two list list1, list2
What is the expected output? What do you see instead?
i expect two different jmesa table :
whene i put tow jmesa table in the same gsp page i got this situation :
Table 1
----------------------------
Caption : TEST1
Table1_col 1 Table1_col 2 Table1_col 3
100 Test Test
Table : 2
-----------------------------
Caption : TEST2
Table2_Col1 Table2_Col2
200 kind
i see instead :
Table 1
----------------------------
Caption : TEST1
Table1_col 1 Table1_col 2 Table1_col 3
100 Test Test
Table : 2
-----------------------------
Caption : TEST1
Table1_col 1 Table1_col 2 Table1_col 3 Table2_Col1 Table2_Col2
200 kind
so look at Table 2, it include the column of Table 1, and it display the
caption of Table 1
What version of the product are you using? On what operating system?
JMesa 0.8 / Grails 1.0.1 / Windows XP
Please provide any additional information below.
Grails action example :
def searchIs = {
TableFacade tableFacade1 = new TableFacadeImpl("tag1",request)
def ISList = []
ISList = refBpiISService.getRefBpiISes()
tableFacade1.items = ISList
Limit limit1 = tableFacade1.limit
TableFacade tableFacade2 = new TableFacadeImpl("tag2",request)
def rules = []
rules = regleService.getRegles()
tableFacade2.items = rules
Limit limit2 = tableFacade2.limit
return [ISList : ISList,rules : rules]
}
GSP page :
<form name="iSForm" action="searchIs">
<jmesa:tableFacade
id="tag1"
items="${ISList}"
maxRows="100"
exportTypes="csv,jexcel"
stateAttr="restore"
var="bean1"
autoFilterAndSort="true"
>
<jmesa:htmlTable
caption="TEST1"
width="100%"
>
<jmesa:htmlRow>
<jmesa:htmlColumn property="col1"
title="Table1_Col1" sortable="true" filterable="true"
cellEditor="org.jmesa.view.editor.BasicCellEditor" />
<jmesa:htmlColumn property="col2"
title="Table1_Col2" sortable="true" filterable="true" />
<jmesa:htmlColumn property="col3"
title="Table1_Col3" sortable="true" filterable="true" />
</jmesa:htmlRow>
</jmesa:htmlTable>
</jmesa:tableFacade>
</form>
<br />
<%
request.removeAttribute("tableFacade");
%>
<form name="ISForm2" action="searchIs">
<jmesa:tableFacade
id="tag2"
items="${rules}"
maxRows="100"
exportTypes="csv,jexcel"
stateAttr="restore"
var="bean2"
autoFilterAndSort="true"
>
<jmesa:htmlTable
caption="TEST2"
width="100%"
>
<jmesa:htmlRow>
<jmesa:htmlColumn property="col1"
title="Table2_Col1" sortable="true" filterable="true"
cellEditor="org.jmesa.view.editor.BasicCellEditor" />
<jmesa:htmlColumn property="col2"
title="Table2_Col2" sortable="true" filterable="true" />
</jmesa:htmlRow>
</jmesa:htmlTable>
</jmesa:tableFacade>
</form>
Sep 8, 2009
Project Member
#1
jeff.johnston.mn@gmail.com
Status:
Accepted
Mar 9, 2011
I really need somebody to pick up the Grails support...
Status:
WontFix
|