I added a first topic and got this message: Successfully Created Topic With ID: 4902 Title: Transaction compensation I added a second topic and the message did not change to reflect my new topic (4903).
Fixed in 20111007-1026 This one was a bit of a drama: /* * The initial approach to having the status messages updated with the * topic details was to use: * * @Override * * @Factory(value = "topic") public Topic getInstance() { return * super.getInstance(); } * * The problem with this is that the "topic" object is not refreshed, so * the messages all reprint the details of the first created object. The * next step I took to try and fix this was to refresh the context in an * override of clearInstance() like so: * * Contexts.getConversationContext().set("topic", null); * * The problem with this is that the messages generated by the * EntityHome object actually calculate their EL values in a thread. So * by the time the message was calculated, the clearInstance function * had set the "topic" object to null. * * Manually setting the EL object "lasttopic" before the persist ensures that * the messages have time to calculate their variables before the object * is reset. */
*** Bug 735265 has been marked as a duplicate of this bug. ***