commandButton action not executed

problem description:

I have a page that has the following commandButton.

<h:commandButton value="Update List" action="#{todoListBean.update}"
rendered="#{todoListBean.todoList.listId ne 0}" />

When I click on the button it doesn't execute the action it just
refreshes the page.  But if I remove the rendered property so the
commanButton tag looks like:

<h:commandButton value="Update List" action="#{todoListBean.update}" />

jsf will execute the action #{todoListBean.update}.  Does anyone know
why when I have the rendered property in the jsf tag the action doesn't
get executed?

http://203.208.39.132/search?q=cache:WZkHHRpUdvMJ:www.nabble.com/commandButton-action-not-executed-td16456333.html+commandButton+rendered&cd=11&hl=zh-CN&ct=clnk&gl=cn&st_usg=ALhdy2-0IFh3SVY7lduxLQYW3xJkGUVFYg

 

http://203.208.37.132/search?q=cache:M1K5BMl8PK8J:forums.sun.com/thread.jspa%3FthreadID%3D5285344+commandButton+rendered+action&cd=10&hl=zh-CN&ct=clnk&gl=cn&st_usg=ALhdy2_CbIRHOTzFBf44a0kPd9K7ZptYxw

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值