Only 48 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Selvakumar Nachimuthu
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1141
1
Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Javascript runs on the client side. JSF runs on the server side. Hence the bean is not invoked at all.
 
Selvakumar Nachimuthu
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Avi, actually i just started working in JSF. Is there anyway that i can bring that value in bean
 
Avi Abrami
Ranch Hand
Posts: 1141
1
Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot Avi
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!