gigaZhang / struts2-jquery

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

List is generated by hibernate not work struts2 jquery grid #1113

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
in DAo class Im write

List<XYZ> list;
list = null;
            try {
                SessionFactory sf=new AnnotationConfiguration().configure().buildSessionFactory();
                System.out.println("SF");
                Session ss= sf.openSession();
                System.out.println("SS");
                list = ss.createQuery("from RegisteredDept").list();
                System.out.println("List");
                System.out.println(registeredDeptlist);
            } catch (Exception e) {
                e.printStackTrace();
            }

in JSON action class

List<XYZ> gridModel;

gridModel= list; // is not Working

list in number of size is 20(no records in database) mode count is '1' is 
perfectly work in struts2 CRUD  
but Struts2-Jquery-Grid working when size is equal to mode-count 

to show detail debug program using eclipse and see variable detail

Original issue reported on code.google.com by prashant.gawali20@gmail.com on 28 Jul 2014 at 7:45