Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to disable rich:listShuttle controlling components?

 
Robert Jack
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I need to disable the all control components.

That mean display the copy,copyall, remove and removeall and first, up, down and last
at the same time disable to all the above control components.



Help me.
Thanks in advance.









 
Robert Jack
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any body know the answer for disable the rich:listshuttle controlling components..

Help me...
Thanks for your effort..
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18012
47
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The easiest/safest way to disable JSF components is to use the 'disabled="#{bean.property}"'' construct where the control to be disabled takes its cue from the state of the backing bean named "bean" (or whatever). For a dynamic page, you can alter that property using AJAX and as long as the AJAX request also forces the control to be reRendered, all works well.

Don't attempt to use JavaScript to enable/disable JSF controls. There are all sorts of pitfalls when you try to do that (I know, I fell into most of them!). And that's just on simple controls like radiobuttons and textboxes. Compound controls like the RichFaces Shuttle DEFINITELY will cause pain if you try and use JavaScript.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic