Yes, both are very wrong.

Pitfalls are in earlier messages in this thread.


On 22-11-10 16:36, mzem...@osc.state.ny.us wrote:
By "keep a reference to the session in their class" do you mean something
like this?

Are there any pitfalls to doing this?

final Session session = getSession();
add(new Label("userNameLabel", new Model(session.getUser
().getUserName())));

How about this?
final UserDTO dto = session.getUser();
CompoundPropertyModel cpm = new CompoundPropertyModel(dto);


--
Sent from my SMTP compliant software
Erik van Oosten
http://day-to-day-stuff.blogspot.com/



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to