File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes Selectmanylistbox disables submit button Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Selectmanylistbox disables submit button" Watch "Selectmanylistbox disables submit button" New topic

Selectmanylistbox disables submit button

Jeremy Wilson
Ranch Hand

Joined: Feb 18, 2003
Posts: 166
I have an issue with the code below. When I first access the page the submit buttons work, this is without selecting any items in the select box. If I then select any item in the list box and click the submit button nothing is happening. It's almost as if the buttons are disabled when an item is selected. Any insite would be wonderful.

Jeremy Wilson
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15302

Well, you've got 3 submit buttons, 1 of which has an actionListeners attached to it and one with an action, and all you said was "...the submit button..."

And are you sure they aren't working? Or is something in the backing bean not working? What exactly do you mean by not working?

GenRocket - Experts at Building Test Data
Varun Khanna
Ranch Hand

Joined: May 30, 2002
Posts: 1400
Try to put down h:messages tag to debug if any error is thrown by the server.

- Varun
Jeremy Wilson
Ranch Hand

Joined: Feb 18, 2003
Posts: 166
Thanks Varun. Should have done that way before this, getting a

Validation Error: Value is not valid
I agree. Here's the link:
subject: Selectmanylistbox disables submit button
jQuery in Action, 3rd edition