aspose file tools*
The moose likes JSF and the fly likes how to disable datascroller in jsf when the datatable doesn't have any records Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "how to disable datascroller in jsf when the datatable doesn Watch "how to disable datascroller in jsf when the datatable doesn New topic
Author

how to disable datascroller in jsf when the datatable doesn't have any records

S.Reddisekhar Reddy
Greenhorn

Joined: Jan 05, 2012
Posts: 29
how to disable datascroller in jsf when the datatable doesn't have any records
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16014
    
  20

That depends partly on what you are using for a datascroller. There is no datascroller UI component in the core JSF. To get one, you have to either design/code/debug/maintain one of your own or use a third-party JSF extension tagset such as Tomahawk or RichFaces.

It also depends on how you define "disable". Whether you want the scroll gadget literally disabled (visible ghosted) or not displayed (rendered) at all.

However, one thing that you can rely on almost universally is that as long as your target dataTable has a statically-determined sized (something like a ListDataModel as opposed to a JDBC datamodel), then the following EL construct should work:


You can also use the "empty" EL expression to hide empty tables and/or display "No Data Available" messages.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
 
subject: how to disable datascroller in jsf when the datatable doesn't have any records