Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

h:selectOneMenu disabling  RSS feed

 
nikos karanikos
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello i am disabling with javascript the

The disabling command is:


but when i submit the form with

I have this error

When the selectOneMenu is not disabled it works fine. What i am doing wrong?
Thanks
 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This construct:


Should be:


EL is supposed to be referencing things, not calling them. JSF will do the calling based on the reference.

As far as disabling goes, usually disabling/enabling controls via JavaScript leads to problems, since JSF assumes that it's managing the control disabling with the "disabled=" JSF attribute and renders the page accordingly.

I may need to see how you defined "excursion.chargingway", but fix the action first.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!