gigaZhang / struts2-jquery

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

Sortable grid option not working #148

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Create a grid with sortable="true" like this (override from showcase):
<sj:grid 
        id="gridtable" 
        caption="Customers Examples" 
        dataType="json" 
        href="%{remoteurl}" 
        pager="true" 
        gridModel="gridModel"
        rowList="10,15,20"
        rowNum="15"
        rownumbers="true"
        sortable="true"
    >
        <sj:gridColumn name="id" index="id" title="ID" width="30"
formatter="integer" sortable="false"/>
        <sj:gridColumn name="name" index="name" title="Name" width="250"
sortable="true"/>
        <sj:gridColumn name="country" index="country" title="Country"
sortable="false"/>
        <sj:gridColumn name="city" index="city" title="City" sortable="false"/>
        <sj:gridColumn name="creditLimit" index="creditLimit" title="Credit
Limit" align="right" formatter="currency" sortable="false"/>
    </sj:grid>

What is the expected output? What do you see instead?
Expected is a grid where I can drag the colums to set the order.
But what I get is an Exception:
org.apache.jasper.JasperException: /gridtest.jsp(18,4) Unable to find
setter method for attribute: sortable

Which struts2 version?
2.1.8.1

Which struts2-jquery plugin version?
2.0.0

Original issue reported on code.google.com by jcar...@gmail.com on 28 Apr 2010 at 6:37

GoogleCodeExporter commented 9 years ago

Original comment by johgep on 28 Apr 2010 at 7:07

GoogleCodeExporter commented 9 years ago
there is already a fix available in the SNAPSHOT repository

Original comment by johgep on 28 Apr 2010 at 7:31

GoogleCodeExporter commented 9 years ago
Nice!
I've got the snapshot from repository and it's working.
Thank you!

Original comment by jcar...@gmail.com on 28 Apr 2010 at 9:02

GoogleCodeExporter commented 9 years ago

Original comment by johgep on 2 May 2010 at 3:24