• Post Reply Bookmark Topic Watch Topic
  • New Topic

enabling inputText when select a value in SelectOneMenu  RSS feed

 
Rafael Ra
Greenhorn
Posts: 26
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a method to enable and disable an inputText when checkbox is clicked.

But now, I am trying to implement almost the same method, but I want to enable/disable the inputText when the value "High" is selected on selectOneMenu

How I could implement it using my existing method ?



Thanks!

Bean




HTML


 
Les Morgan
Rancher
Posts: 779
19
C++ Java MySQL Database Netbeans IDE Oracle Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rafael,

I do not see your problem, the logic is identical; if you did it, as you say, before, then you are still just doing a boolean check to see if something is selected or not.

What are you having the problem with?

Les
 
Rafael Ra
Greenhorn
Posts: 26
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This method is working when I select the checkbox. (as I pasted here: bean and HTML)

I can not create the logic when the HIGH value is selected. I am trying here, but without success so far
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!