Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


mulitple datatables on page

Posted on 2007-10-16
Medium Priority
Last Modified: 2013-11-24
I am new to JSF and am using Richfaces 3.1.1, netbeans 5.11 with hibernate 3. I would like to have 3 datatables on a page, each within a rich:tab. I would like each table to display a different subset of data from the same table.

What is the best strategy to accomplish this? I have tried using one managed bean and passing it a parameter to be inserted into the HQL as a where clause. Would it be better to create 3 managed beans, one for each subset of data?

I get the feeling I am missing a simple way to do this.

Question by:rick2001
1 Comment
LVL 15

Accepted Solution

bpmurray earned 2000 total points
ID: 20096302
I'm not familiar with RichFaces, but normally when binding data to the datatable, you do just that, so you can use the same bean, although the data you display may not be reset for each table (that's a function of the bean implementation).

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
Suggested Courses

564 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question