AW: AW: get set attribute wicket session

2010-01-21 Thread Giambalvo, Christian
Put them in its own jar and add it as dependency to both projects. (dirty but 
it does the job)


-Ursprüngliche Nachricht-
Von: Martin Asenov [mailto:mase...@velti.com] 
Gesendet: Donnerstag, 21. Januar 2010 17:38
An: users@wicket.apache.org
Betreff: RE: AW: get set attribute wicket session

Unfortunatelly I can't use this since the webapp module builds the core and UI 
modules in one and builds resources and stuff like this in the war.

Maybe I should think of something else...

Regards,

-Original Message-
From: Joseph Pachod [mailto:j...@thomas-daily.de] 
Sent: Thursday, January 21, 2010 6:26 PM
To: users@wicket.apache.org
Subject: Re: AW: get set attribute wicket session

Giambalvo, Christian wrote:
> Hi,
>
> with getSession() you will always get the session attached to the current 
> request.
> So yes it is session specific.
>
> Greets chris
I would add that, in order to save this nasty cast all over the place, 
you could create your own getMySessionImpl this way :
class MySessionImpl
public static MySessionImpl getMySessionImpl(){
  return (MySessionImpl) get();
}



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


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


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



AW: AW: get set attribute wicket session

2010-01-21 Thread Giambalvo, Christian
Not possible cause "What should I do when I don't have the MySessionImpl class 
visible".
The class need to be visible to do that.


-Ursprüngliche Nachricht-
Von: Joseph Pachod [mailto:j...@thomas-daily.de] 
Gesendet: Donnerstag, 21. Januar 2010 17:26
An: users@wicket.apache.org
Betreff: Re: AW: get set attribute wicket session

Giambalvo, Christian wrote:
> Hi,
>
> with getSession() you will always get the session attached to the current 
> request.
> So yes it is session specific.
>
> Greets chris
I would add that, in order to save this nasty cast all over the place, 
you could create your own getMySessionImpl this way :
class MySessionImpl
public static MySessionImpl getMySessionImpl(){
  return (MySessionImpl) get();
}



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


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



RE: AW: get set attribute wicket session

2010-01-21 Thread Martin Asenov
Unfortunatelly I can't use this since the webapp module builds the core and UI 
modules in one and builds resources and stuff like this in the war.

Maybe I should think of something else...

Regards,

-Original Message-
From: Joseph Pachod [mailto:j...@thomas-daily.de] 
Sent: Thursday, January 21, 2010 6:26 PM
To: users@wicket.apache.org
Subject: Re: AW: get set attribute wicket session

Giambalvo, Christian wrote:
> Hi,
>
> with getSession() you will always get the session attached to the current 
> request.
> So yes it is session specific.
>
> Greets chris
I would add that, in order to save this nasty cast all over the place, 
you could create your own getMySessionImpl this way :
class MySessionImpl
public static MySessionImpl getMySessionImpl(){
  return (MySessionImpl) get();
}



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


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



Re: AW: get set attribute wicket session

2010-01-21 Thread Joseph Pachod

Giambalvo, Christian wrote:

Hi,

with getSession() you will always get the session attached to the current 
request.
So yes it is session specific.

Greets chris
I would add that, in order to save this nasty cast all over the place, 
you could create your own getMySessionImpl this way :

class MySessionImpl
public static MySessionImpl getMySessionImpl(){
 return (MySessionImpl) get();
}



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



AW: get set attribute wicket session

2010-01-21 Thread Giambalvo, Christian
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:mase...@velti.com] 
Gesendet: Donnerstag, 21. Januar 2010 17:04
An: users@wicket.apache.org
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:mase...@velti.com] 
Sent: Thursday, January 21, 2010 5:54 PM
To: users@wicket.apache.org
Subject: RE: get set attribute wicket session 

Thanks, Chris!

Have a nice evening!

Cheers,
Martin

-Original Message-
From: Giambalvo, Christian [mailto:christian.giamba...@excelsisnet.com] 
Sent: Thursday, January 21, 2010 5:46 PM
To: users@wicket.apache.org
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:mase...@velti.com] 
Gesendet: Donnerstag, 21. Januar 2010 16:44
An: users@wicket.apache.org
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: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org


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


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


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



AW: get set attribute wicket session

2010-01-21 Thread Giambalvo, Christian
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:mase...@velti.com] 
Gesendet: Donnerstag, 21. Januar 2010 16:44
An: users@wicket.apache.org
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: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org