This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSF and the fly likes a4j command button not functioning Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "a4j command button not functioning" Watch "a4j command button not functioning" New topic
Author

a4j command button not functioning

Brajendra Mathema
Ranch Hand

Joined: Jun 02, 2009
Posts: 39
hi i have a4j command button
<h:form>
<a4j:commandButton ignoreDupResponses="true" id="submit" value="submit">
<a4j:support event="onclick" reRender="mainPanel1,mainPanel2" onsubmit="this.disabled=true; this.value='Processing';" action="#{nt.doAction}"/>
</a4j:commandButton>
</h:form>
how ever this button works for some clicks and does not work for another,

this page has been included with a4j:include,

any help/idea please

brajen
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15958
    
  19

onsubmit requires a boolean return. If it returns false, the action will not fire.

The actual generated javascript for something like this includes both your own code and additional javascript that the a4j support element processor may add.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: a4j command button not functioning
 
Similar Threads
How to skip the default button action in JSF
Issue with h:commandButton tag
rich tabpanel : first rich tab not loaded with focus with first tab
simple jsf form
Execute javascript if there is no validation error