wood burning stoves*
The moose likes JSF and the fly likes h:commandButton is ignored sometimes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "h:commandButton is ignored sometimes" Watch "h:commandButton is ignored sometimes" New topic
Author

h:commandButton is ignored sometimes

Efrat Bar-Nahum
Ranch Hand

Joined: Jan 19, 2006
Posts: 57
Hi,

I have a jsf page with few checkboxes & a command button.
The user can check & uncheck the desired checkboxes, and then invoke an action by pressing the command button.
A new data is invoked according to the selected checkboxes.

It works fine, and then suddenly stops working.
After "playing" with the checkboxes for a while the action is not submitted when pressing the command button.
(I added an alert when pressing the button - it always works, but the action is ignored sometimes).


Here is part of my jsf:





Any idea??
Thanks,
Efrat
Daniel Prene
Ranch Hand

Joined: Jul 15, 2005
Posts: 241
It probably doesn't matter but, shouldn't you replace that straight html with jsf tags?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: h:commandButton is ignored sometimes
 
Similar Threads
onclick event of command button change the state of radio button but onchange doe not
Strange behavior with reRender attribute
Problem with Spring Web Flow
JSF 1.2 doesn't display in IE 8
Problem getting values from JSP to JSF Bean