• 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
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

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

[email protected]
 
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

[email protected]
 
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/
 
This cake looks terrible, but it tastes great! Now take a bite out of this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic