• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

navigation problem

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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/
 
What's that smell? I think this tiny ad may have stepped in something.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic