Error during Table cache update in vaadin

佐手、 提交于 2019-12-10 19:38:45

问题


MY code is:

   BeanItemContainer<TimeCardBean> results = new BeanItemContainer<TimeCardBean> (TimeCardBean.class);
        for (TimeCardBean bean : beans) {
            results.addBean(bean);
        }
      table.setContainerDataSource(results);
      table.addGeneratedColumn("function",new ColumnGenerator(){
      public Object generateCell(final Table source, final Object itemId, final Object columnId) {
      Byte timecardSeq=
     (Byte)source.addItem(itemId).getItemProperty("timeCardSeq").getValue();

     Button btnChange= new Button("Change", new ClickListener() {
     public void buttonClick(final ClickEvent event) {
     TimeCardEditDialog editDialog = new TimeCardEditDialog(viewService);
                            editDialog.init(timecardSeq);
     }
    });
   return btnChange;
}

I get the following error:

com.vaadin.ui.Table$CacheUpdateException: Error during Table cache update. Additional causes not shown. at com.vaadin.ui.Table.maybeThrowCacheUpdateExceptions(Table.java:1716) at com.vaadin.ui.Table.refreshRenderedCells(Table.java:1705) at com.vaadin.ui.Table.refreshRowCache(Table.java:2638) at com.vaadin.ui.Table.addGeneratedColumn(Table.java:4404)

Hope you got when I want to express and can anyone tell me about to do this?

来源:https://stackoverflow.com/questions/24991301/error-during-table-cache-update-in-vaadin

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!