| 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
|
 |
 |
|
|
subject: <h:selectOneListbox disabled="true"> cant read in bean after enbaling thro' JS
|
|
|