| |

VerySource

 Forgot password?
 Register
Search
View: 676|Reply: 1

Ask a spring and Ajax integration

[Copy link]

1

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-1-14 09:40:02
| Show all posts |Read mode
The current project uses the spring and buffalo frameworks. The page turning page uses the PageHoldList class that comes with spring. That is, the data is first read out of the database at one time, wrapped with PageHoldList, and then placed in the session. page. In some pages that involve page turning, buffalo is used for modification. First, the modified content is put into the database with buffalo.remoteCall, and then the display content of the page is rewritten with javascript.
This will encounter a problem, modify the content of the current page and return to the page after turning the page, because the data is from the previous data into the session and not re-read from the database, so the display is in the session Data, not what was previously modified.
I don't know if you have encountered similar problems, are there any good solutions? ?
Thank you!
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-8-29 16:00:01
| Show all posts
You don’t need this, you can read it from the database once without turning the page... Hehe, use setFirstResult and hibernate
setMaxResults can be done...
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list