Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Command Button Action not fired..Please help

 
Ranch Hand
Posts: 101
Spring Flex Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Doubleposted: https://coderanch.com/t/433382/JSF/java/Command-Button-Action-not-fired
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic