• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

navigation problem

 
aditi shah
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 403
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
ujjwal soni
Ranch Hand
Posts: 403
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you have h:messages on your page? Try that and let us know if there are messages being thrown.
 
Bob Good
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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/
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic