开发者

JPA - JSF - Rerendered - Ajax why must i re-start server to see new item was added?

开发者 https://www.devze.com 2023-01-29 20:21 出处:网络
i have problem with load data from Database i use Primefaces (or other use richfaces) to persist object into database using object - it means when you add object into database object will display on

i have problem with load data from Database

i use Primefaces (or other use richfaces) to persist object into database using object - it means when you add object into database object will display on datatable <--- it's use ajax but problem is here, i can see object on datatable but when i go to other page (ex. i add new item into item table a开发者_如何转开发nd go to item list page to view new item) but i can't see new item was added, i must stop and start server again and it display in item list?

What's happen with it?

Anyone have any solution please help me!

Thank you

P/s: my backin bean using Session Scoped


Either you aren't reloading the list in session or the DB transaction isn't (auto)committed.

0

精彩评论

暂无评论...
验证码 换一张
取 消