posts - 0,comments - 0,trackbacks - 0
最重要的一个区别,h:commandButton 不能传参数

eg:<h:commandButton>
<f:param name="id" value="1"/>
</h:commandButton>
在后台bean是收不到这个1的,而用h:commandLink没有问题

如果一定要用button,可以用a4j:commandButton,这个可以传参数
posted on 2012-12-18 16:58 Kevin_YK 阅读(398) 评论(0)  编辑  收藏 所属分类: JSF