This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSF and the fly likes Command Button Action not fired..Please help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Reply locked New topic
Author

Command Button Action not fired..Please help

Shasi Mitra
Ranch Hand

Joined: Nov 27, 2008
Posts: 101

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

Joined: Oct 08, 2006
Posts: 2458
Doubleposted: http://www.coderanch.com/t/433382/JSF/java/Command-Button-Action-not-fired
 
Don't get me started about those stupid light bulbs.
 
subject: Command Button Action not fired..Please help
 
Similar Threads
Problem using rendered attribute in Command Button
Command Button Action not fired---Strange Issue
JSF Navigation Issue
strachable columns in jsf
IExplorer and general troubles... like loss of sanity.