Simple Datatable question

UI Components for JSF
Post Reply
prime2000
Posts: 31
Joined: 26 Oct 2011, 05:17

26 Oct 2011, 05:25

Hi,

I am new to primefaces and I love it. Great work primefaces team. I need a way to get data from a simple user form and look up the database and display that data/result in a different page with datatable.

So I need a simple form, eg, one input field and button is fine for now to demo my answer and based on what is entered in the search form, lookup the database and display the results in a datatabe in different jsf page using primefaces lazyload.

A complete code would be greatly appreciated.

Thank you in advance.

Prime2000

prime2000
Posts: 31
Joined: 26 Oct 2011, 05:17

26 Oct 2011, 16:00

I really need a direction to my question above.

I need.

1) read user form page1.xhtml
2) fetch database values
3) display datatable in different page,like page2.xhtml

Any help please??

Thanks

prime2000
Posts: 31
Joined: 26 Oct 2011, 05:17

26 Oct 2011, 18:53

I solved my problem.

All I had to do was use the same bean for both views and from page1 command invoke method1 which will populate the list needed for page2 and return "page2"

P2k

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

26 Oct 2011, 22:38

Maybe time to learn some generic jsf stuff first ;-)

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 34 guests