Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within JSF
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Tim Cooke
Campbell Ritchie
paul wheaton
Ron McLeod
Devaka Cooray
Sheriffs:
Jeanne Boyarsky
Liutauras Vilda
Paul Clapham
Saloon Keepers:
Tim Holloway
Carey Brown
Piet Souris
Bartenders:
Forum:
JSF
selectOneMenu disabled
Priti Shah
Ranch Hand
Posts: 43
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi,
I have dropdown menu on my page which gets value from a bean. I also have a checkbox which if not selected disables the dropdown menu.
I do that using javascript.
Now when I submit the form (when dropdown menu is disabled) bean throws null pointer exception for dropdown menu property.
I donot want to get this exception when my dropdown menu is disabled. How to resolve this ??
Thanks
Priti Shah
Ranch Hand
Posts: 43
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Can any one help me for my previous post ?? This is really urgent.
Can I use binding attribute rather than using value binding ?
Thanks in advance.
Varun Khanna
Ranch Hand
Posts: 1400
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Javascript can disable the component at UI, but at server the component is still enabled (not disabled). Don't use javascript to disable menu.
Do it the
JSF
way, probably by writing a listener.
Show some code so that we can help you.
- Varun
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
JSF+Portlet Problem
Form calling a session scoped backing bean constructor twice
Disable Paragraph Tag?
spaces in select/option tag dropdown menu
Best practice
More...