标签有个actionListener属性例如:<h:commandButton action="" name="" actionListener="#{bean.show}">
</h:commandButton>
至于#{bean.show}这个应该看的懂吧.然后你在后台bean对应的类这样写import javax.faces.event.ActionEvent;
class xxx{
public void show(ActionEvent e)
{
// 这就是事件代码
// 代码
}
}
</h:commandButton>
至于#{bean.show}这个应该看的懂吧.然后你在后台bean对应的类这样写import javax.faces.event.ActionEvent;
class xxx{
public void show(ActionEvent e)
{
// 这就是事件代码
// 代码
}
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货