This week's book giveaways are in the Refactoring and Agile forums. We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line! See this thread and this one for details.
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]