0
我想实现this带有分页和排序的JSF页面。不幸的是Netbeans的显示了使用getComponent()
我的错误:找不到方法getComponent()
cannot find symbol
symbol: method getComponent()
location: variable event of type java.awt.event.ActionEvent
我试图导入的依赖java.awt.event.ActionEvent中却没有任何改变。这是使用getComponent()
的代码。
public void page(ActionEvent event) {
page(((Integer) ((UICommand) event.getComponent()).getValue() - 1) * rowsPerPage);
}
需要什么样的依赖才能使用getComponent()
?我可以用类似的方法替换这个Java方法吗?
祝
谢谢!有用! – 2012-04-07 14:31:32
欢迎你:) – 2012-04-08 07:11:49