• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Devaka Cooray
Saloon Keepers:
  • Ganesh Patekar
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
Bartenders:
  • Ron McLeod
  • Frits Walraven
  • Pete Letkeman

navigation problem  RSS feed

 
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
 
Ranch Hand
Posts: 405
  • 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: 405
  • 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
 
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.
 
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/
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!