Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
    Bookmark Topic Watch Topic
  • New Topic

Command Button Action not fired..Please help

 
Shasi Mitra
Ranch Hand
Posts: 101
Flex Java Spring
  • Mark post as helpful
  • send pies
  • Report post to moderator
This is my code
<t:commandButton value="View Previous Year's History" rendered = "#{ myBean.paymentYear == 'C' }" action="#{myBean.doAction}"/>

The action is not fired in this case. But in all the following cases action is fired

1. If i give <t:commandButton value="View Previous Year's History" rendered = "true" action="#{myBean.doAction}"/>
2. Or if i put the scope of my backing bean as session, action is fired
3. Or if i give
<t:saveState id="test" value="#{myBean.paymentYear }"/>
<t:commandButton value="View Previous Year's History" rendered = "#{ myBean.paymentYear == 'C' }" action="#{myBean.doAction}"/>

also the action is fired..

I have no clue. Can anybody help?
 
Bauke Scholtz
Ranch Hand
Posts: 2458
 
    Bookmark Topic Watch Topic
  • New Topic