aspose file tools
The moose likes JSF and the fly likes <h:selectOneListbox disabled= cant read in bean after enbaling thro' JS" title="" /> Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSF
Reply Bookmark "<h:selectOneListbox disabled="true"> cant read in bean after enbaling thro Watch "<h:selectOneListbox disabled="true"> cant read in bean after enbaling thro New topic
Author

<h:selectOneListbox disabled="true"> cant read in bean after enbaling thro' JS

Selvakumar Nachimuthu
Greenhorn

Joined: Jan 10, 2011
Posts: 4
Hi,
Iam using <h:selectOneListbox disabled="true" >. Initially this is disabled and iam enabling thro' Javascript. But the value is not reflecting in the bean. Can anyone help me out on this...
Avi Abrami
Ranch Hand

Joined: Oct 11, 2000
Posts: 1114

Javascript runs on the client side. JSF runs on the server side. Hence the bean is not invoked at all.
Selvakumar Nachimuthu
Greenhorn

Joined: Jan 10, 2011
Posts: 4
Thanks Avi, actually i just started working in JSF. Is there anyway that i can bring that value in bean
Avi Abrami
Ranch Hand

Joined: Oct 11, 2000
Posts: 1114

The value for the "disabled" attribute can be a JSF EL expression, as in:

The value of the property should be a boolean but the strings "true" and "false" should also work.

Good Luck,
Avi.
Selvakumar Nachimuthu
Greenhorn

Joined: Jan 10, 2011
Posts: 4
Thanks a lot Avi
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: <h:selectOneListbox disabled="true"> cant read in bean after enbaling thro' JS
 
Similar Threads
drop down list question
how to get html select's value in the bean
jsf ajax rerender inputText
how to force setter in jsf??
f:ajax doesn't render.