Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

LastPostInfo is null on forum list

 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See here for the full story, but basically I'm trying to replace the username with a Firstname/Lastname, which I just stuck in an extra field for now rather than re-do the schema. Anyhow, to make the info show up on the forums list, I had to extend ForumAction and add some functionality to retrieve the user ID from the LastPostInfo of each Forum.

The problem is when I first start up JForum, this information always seems to be null. Each request I send seems to fill in 1 forum's LPI, so say I have 5 forums. When I first load it up, all the information is missing. When I refresh, the first forum has its information, and so on, and the forum looks as it should after 5 refreshes. So I have a workaround for now, clearly, but I cannot determine why this information is null at first, and what causes it to be loaded.

For reference, here is my code overriding net.jforum.view.forum.ForumAction#list:


Any ideas?
[originally posted on jforum.net by msernatinger]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic