• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

LastPostInfo is null on forum list

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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]
 
This tiny ad is wafer thin:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic