This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes JSF and the fly likes Button action problem in richfaces Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » JSF
Bookmark "Button action problem in richfaces" Watch "Button action problem in richfaces" New topic

Button action problem in richfaces

Bharat Kasodariya
Ranch Hand

Joined: Aug 19, 2011
Posts: 36

I have created one simple master page. There is cancel button with action in that page.To execute action, I have to press cancel button two times.
Why its not working on single click.

here is jsf page
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns=""

<h:form id="productMasterForm">
<f:facet name="header">
Product Master
<h:panelGrid columns="2">
<hutputLabel value="EAN" />
<h:inputText value="#{productMaster.ean}"
readonly="#{productMaster.editMode}" />
<hutputLabel value="Product Descirption" />
<h:inputText value="#{productMaster.productDesc}" />
<a4j:commandButton id="save" value="Save"
<h:commandButton id="cancel" value="Cancel"
<h:message showSummary="true" showDetail="false"
style="color: red; font-weight: bold;" for="save" />

I agree. Here's the link:
subject: Button action problem in richfaces
jQuery in Action, 3rd edition