I have a Data Transfer Object which contains a User object. The User object is loaded by hibernate.
User class contains Profile class.
I create a Collection of SomeDTO objects and pass it to a
JSP which renders them using a
displaytag.
The User class is lazy loaded by hibernate.
The displaytag is used to show a list of users in table form.
The problem is for the
mostly recently created user, the
profile name column is not getting displayed in the table rendered by displaytag. A refresh of the page shows the profile name correctly.
Here is the JSP
The display problem occurs only for variables that are sub referenced. It does not happen when displaying
String,Integer variables contained by User itself. Also the issue is with the latest row added through hibernate.
Why is this happening ? Has anyone else encountered this behavior before ?
[ June 26, 2007: Message edited by: Naveen Sampra ]
[ June 26, 2007: Message edited by: Naveen Sampra ]