将属性名字type改成其它看看可能这个type有冲突...

解决方案 »

  1.   


    function   Init() 

    bm.getAllType(InitCB); 

    function   InitCB(inf) 

        if(inf!=null&&inf.length>0)
        {
           DWRUtil.addOptions('dailyType',inf,'數據表字段名,對應select的value屬性','對應option的text');
        }
        else{
         DWRUtil.addOptions('brandselect',['Nothing Data...']);
         }

      

  2.   

    用下面的代碼返回listpublic List queryForList(String sql) {
    List list = new ArrayList();
    try {
    rs = stmt.executeQuery(sql);
    rsmd = rs.getMetaData();
    int cols = rsmd.getColumnCount();
    while (rs.next()) {
    Map record = new HashMap();
    for (int i = 1; i <= cols; i++) {
    String field = (String) rsmd.getColumnName(i);
    String value = (String) rs.getString(i);
    if (value == null)
    value = "";
    record.put(field, value);
    }
    list.add(record);
    }
    rs.close();
    } catch (SQLException e) {
    pool.freeConnection(POOLNAME, con);
    e.printStackTrace();
    }
    return list;
    }
      

  3.   

    还有就是这个bean是否在DWR里注册过,觉得麻烦的话,还是用HashMap代替你的Bean吧