aspose file tools*
The moose likes JSF and the fly likes navigation problem 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 "navigation problem" Watch "navigation problem" New topic
Author

navigation problem

aditi shah
Greenhorn

Joined: Feb 02, 2008
Posts: 4
Hi Friends,

I am connecting textbox with mysql database.. I am using JSF framework + Java Server Web Page...

In that 1 textbox .. and 4 buttons are there... for navigation purpose and names are respectively first,next,previous and last...

when i m trying to click on "First" and "Last" button then they show me respectivel record.

But when i click on " Next" and "Previous" button then record won't display in textbox and page is refreshed..

I want to display record one by one using buttons in my page... and without refreshing page...

Please help me out....

thanks in advance..

aditi
ujjwal soni
Ranch Hand

Joined: Mar 28, 2007
Posts: 403
Hi,

Is there any exception shown on the page ? If not then try to put your code in try catch block.

Regards,

Ujjwal Soni

ujjwal@nowonder.co.in


Cheers!!!
Ujjwal B Soni <baroda, gujarat, india> <+919909981973>
"Helping hands are better than praying lips......"
ujjwal soni
Ranch Hand

Joined: Mar 28, 2007
Posts: 403
Hi,

Is there any exception shown on the page ? If not then try to put your code in try catch block.

Regards,

Ujjwal Soni

ujjwal@nowonder.co.in
aditi shah
Greenhorn

Joined: Feb 02, 2008
Posts: 4
Hi,

I have already put my code between Try and Catch only....

I am not getting any error but whenever i m trying to click on next button then it gives me first record only rather then next one..Just page is refreshed... So i want to stop this refreshing process in my application..

So guide me

Regards

Aditi
A. Dusi
Ranch Hand

Joined: Sep 27, 2004
Posts: 114
Do you have h:messages on your page? Try that and let us know if there are messages being thrown.
Bob Good
Ranch Hand

Joined: Jan 09, 2008
Posts: 86
if you want to avoid a page refresh you could use Ajax technology:

https://ajax4jsf.dev.java.net/

There are many possibilities depending on your web server, etc:

http://www.jsfmatrix.net/
 
Consider Paul's rocket mass heater.
 
subject: navigation problem