aspose file tools
The moose likes JSF and the fly likes How to disable rich:listShuttle controlling components? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSF
Reply 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: 37
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: 37
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: 14480
    
    7

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.
 
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: How to disable rich:listShuttle controlling components?
 
Similar Threads
<rich:listShuttle> problem
Problem with rich:listShuttle
How to make Expression Language dynamically
<rich:listShuttle and toobar ???
rich:dataTable and rich:listshuttle rerendering issue