Re: [Wicket-user] Use of Session

2007-06-22 Thread Eelco Hillenius
Like Johan said, the typical case is to provide your own custom
session. You'll have strongly typed variables that way and that's the
whole idea users being able to provide their own in the first place.

Metadata is intended for framework-like use. When you don't know/
don't want to force clients into using concrete session classes, you
can use metadata for instance to store authorization information etc.

Eelco


On 6/22/07, Johan Compagner <[EMAIL PROTECTED]> wrote:
> you should really create your own session.
> Usage of the metadata things should really be avoided for that kind of data.
> I almost could say. don't use meta data at all, its a wicket internal thing
> to store quickly markers and stuff like that.
>
> johan
>
>
> On 6/22/07, Matthieu Casanova <[EMAIL PROTECTED]> wrote:
> > Hi, I'm not familiar with wicket sessions. I understand that I can
> > create my own session object that extends the WebSession, and that
> > will have some fields containing my sessions datas. In that case I
> > have to replace the ISessionFactory of my application.
> > The other choice to store datas in the Session is to use the
> > getMetaData and setMetaData methods of WebSession ?
> > What is the best choice ?
> > thanks
> >
> > Matthieu
> >
> >
> -
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Use of Session

2007-06-22 Thread Matthieu Casanova
2007/6/22, Johan Compagner <[EMAIL PROTECTED]>:
> you should really create your own session.
> Usage of the metadata things should really be avoided for that kind of data.
> I almost could say. don't use meta data at all, its a wicket internal thing
> to store quickly markers and stuff like that.

Thanks everybody, now I'm sure that creating my own session is the
good choice. In fact I found the use of those metadata not easy and
nice so having my session is perfect for me

Matthieu

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Use of Session

2007-06-22 Thread Johan Compagner

you should really create your own session.
Usage of the metadata things should really be avoided for that kind of data.
I almost could say. don't use meta data at all, its a wicket internal thing
to store quickly markers and stuff like that.

johan


On 6/22/07, Matthieu Casanova <[EMAIL PROTECTED]> wrote:


Hi, I'm not familiar with wicket sessions. I understand that I can
create my own session object that extends the WebSession, and that
will have some fields containing my sessions datas. In that case I
have to replace the ISessionFactory of my application.
The other choice to store datas in the Session is to use the
getMetaData and setMetaData methods of WebSession ?
What is the best choice ?
thanks

Matthieu

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Use of Session

2007-06-22 Thread Thies Edeling
shameless plug: http://blog.ehour.nl/index.php/archives/14
:)

Matthieu Casanova wrote:
> Hi, I'm not familiar with wicket sessions. I understand that I can
> create my own session object that extends the WebSession, and that
> will have some fields containing my sessions datas. In that case I
> have to replace the ISessionFactory of my application.
> The other choice to store datas in the Session is to use the
> getMetaData and setMetaData methods of WebSession ?
> What is the best choice ?
> thanks
>
> Matthieu
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>   



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Use of Session

2007-06-22 Thread Maurice Marrink
imo your best option is to override the newSession method in
Application and use your own custom session as it allows you to get
your objects back without casting, as you would have to with metadata,
and it allows you to do do some detach logic (if you need to).
Alternatively you could use the requestcycle in the same way.

Maurice

On 6/22/07, Matthieu Casanova <[EMAIL PROTECTED]> wrote:
> Hi, I'm not familiar with wicket sessions. I understand that I can
> create my own session object that extends the WebSession, and that
> will have some fields containing my sessions datas. In that case I
> have to replace the ISessionFactory of my application.
> The other choice to store datas in the Session is to use the
> getMetaData and setMetaData methods of WebSession ?
> What is the best choice ?
> thanks
>
> Matthieu
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user