wood burning stoves*
The moose likes JSF and the fly likes How to disable rich:listShuttle controlling components? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "How to disable rich:listShuttle controlling components?" Watch "How to disable rich:listShuttle controlling components?" New topic
Author

How to disable rich:listShuttle controlling components?

Robert Jack
Ranch Hand

Joined: Apr 13, 2010
Posts: 47
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

Joined: Apr 13, 2010
Posts: 47
Any body know the answer for disable the rich:listshuttle controlling components..

Help me...
Thanks for your effort..
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16145
    
  21

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
 
subject: How to disable rich:listShuttle controlling components?