------ Solution ---------------------------------------- ----
in action in executing their business logic and then give the list assignment
will echo
------ Solution -------------------------------- ------------
can write a class that uniquely identifies the list with the user ( user ID, or session, depending on your system configuration ) associated by adjusting list uniquely identifies the content .
class List2User {
int userid;
List list;
}
......
static List2User list;
......
------ For reference only -------------------------------- -------
Yes, but the problem is that the list has been lost before . For example, I made a page increases the operation , action gave processed assignment list , I'll make an additional operation , in front of the no. . . Each call to action, private List
------ For reference only -------------------------------------- -
wrong, is static unsafe , two users simultaneously , using a static variable .
------ For reference only -------------------------------------- -
Yes, but the problem is that the list has been lost before . For example, I made a page increases the operation , action gave processed assignment list , I'll make an additional operation , in front of the no. . . Each call to action, private List
Then do not refresh the page
with ajax
------ For reference only -------------------------------- -------
This approach is good, thank you ! Have time to try !
------ For reference only -------------------------------------- -
Yes, but the problem is that the list has been lost before . For example, I made a page increases the operation , action gave processed assignment list , I'll make an additional operation , in front of the no. . . Each call to action, private List
Then do not refresh the page
using ajax
Thank you, I try to use dwr framework , thank you very much !
没有评论:
发表评论