wood burning stoves*
The moose likes JForum and the fly likes topics pagination is incorrect, maybe a bug Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JForum
Bookmark "topics pagination is incorrect, maybe a bug" Watch "topics pagination is incorrect, maybe a bug" New topic
Author

topics pagination is incorrect, maybe a bug

Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
when I'm testing topics pagination, I get a incorrect result. because cache existing, when I post new topic, the total topics doesn't increase. result in I couldn't browse all topics. I fixed it by addding a piece of code in the end of ForumRepository.java::public static synchronized void updateForumStats(Topic t, User u, Post p).


[originally posted on jforum.net by maxchen]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
btw, I use 2.1.6. otherwise, when deleteing topic, the topics pagination is incorrect,too.
[originally posted on jforum.net by maxchen]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
About delete topic. I fix it by add a line code to PostAction.java::public void delete() throws Exception.

insert this into PostAction.java 1267 line.


[originally posted on jforum.net by maxchen]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: topics pagination is incorrect, maybe a bug