zk框架,如何判断component存在?

J2EE 码拜 9年前 (2015-04-18) 1232次浏览 0个评论
 

for(int i = 0 ; i <= grid_pics_rows.getVisibleItemCount(); i++){
if(grid_pics_rows.getFellow(“rowid”+i) != null ){

Row rowremove = (Row) grid_pics_rows.getFellow(“rowid”+i);
System.out.println(i+”isnotnull”);
grid_pics_rows.removeChild(rowremove);

}else
{
System.out.println(i+”isnull”);
}

}
我用!=null 判断没有效果,它还是给我报错:
org.zkoss.zk.ui.ComponentNotFoundException: Fellow component not found: rowid0

求解救!

zk框架,如何判断component存在?
20分
zk估计用的人不多, 你把zul文件发出来,我帮你看下

CodeBye 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权 , 转载请注明zk框架,如何判断component存在?
喜欢 (0)
[1034331897@qq.com]
分享 (0)

文章评论已关闭!