Well, you have wrong dependency. Webapp shouldn't depend on UI. But UI on webapp. You have to reverse the dependency otherwise there is no possibility.
-----Ursprüngliche Nachricht----- Von: Martin Asenov [mailto:[email protected]] Gesendet: Donnerstag, 21. Januar 2010 17:04 An: [email protected] Betreff: RE: get set attribute wicket session Well, here comes another issue... What should I do when I don't have the MySessionImpl class visible, because it's in the webapp module which is invisible for the UI module. Because webapp has a dependency to the UI and otherwise I'll have a cyclic reference and compile time error.....? How could I get session specific attributes then? By using getMetaData()? Thanks, -----Original Message----- From: Martin Asenov [mailto:[email protected]] Sent: Thursday, January 21, 2010 5:54 PM To: [email protected] Subject: RE: get set attribute wicket session Thanks, Chris! Have a nice evening! Cheers, Martin -----Original Message----- From: Giambalvo, Christian [mailto:[email protected]] Sent: Thursday, January 21, 2010 5:46 PM To: [email protected] Subject: AW: get set attribute wicket session Hi, with getSession() you will always get the session attached to the current request. So yes it is session specific. Greets chris -----Ursprüngliche Nachricht----- Von: Martin Asenov [mailto:[email protected]] Gesendet: Donnerstag, 21. Januar 2010 16:44 An: [email protected] Betreff: get set attribute wicket session Hello, everyone! I would like to ask if: -I've got an AuthenticatedWebSession implementation and there I have the fields -field1 -field2 with getters and setters. After that somewhere in my code, no matter where I say ((MySessionImpl)getSession()).getField1() will I get session specific attribute, since there are no set/getAttribute() methods for the session. I want to save session specific attributes in that manner, is this the correct way to do so? Thanks, --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
