Assuming Login is a tapestry page then yes, exactly. (although you can skip the last line:
User user = stateManager.get(User.class); as user is already defined here.) On Mon, 2011-02-21 at 02:57 -0800, robnangle wrote: > So I have a 'User' entity class and then my Login class. So in my login I > should have: > > > private String username; > private String password; > > @Inject > private ApplicationStateManager stateManager; > > private Object userDao; > > User user = userDao.get(username); > stateManager.set(User.class, users); > User user = stateManager.get(User.class); --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org