Re: [Wicket-user] alternatives to set locale without using session?

2007-05-04 Thread ywtsang

Sorry that I am new to Wicket and may not know what the greatest values of
wicket are supposed to be.

We are evaluating different web frameworks right now and Wicket is one of
them.

One good and attracting point of Wicket to us is that it can separate
html/design and logic at a good way.
The usage of Wicket is simple and efficient.

But when looking more details of Wicket, we find that session is created for
every request. 

This introduces another concern about the performance problem as our website
needs to serve a large volume of traffic.

As we find that it seems wicket 1.3 or 2.0+ are supporting no-session
pages, this fits our needs.

Since the handling of html/logic is attractive to us, we are trying to
seek possible solutions for session handling rather than just dumping out
wicket from our list just because of without session, can't get the most
benefit from wicket.

Or do you suggest we should look at wicket 1.3 or 2.0+ rather than wicket
1.2.6?

Regards,
Wing


igor.vaynberg wrote:
 
 tbh i see little value of using wicket in a completely stateless
 application. the big advantage of wicket is the programming model it
 offers,
 which you give up when using stateless only components.
 
 -igor
 
 
 On 5/3/07, ywtsang [EMAIL PROTECTED] wrote:


 One of the requirements of my project is not to use session, that's why
 my
 question is so :)

 Our website will have different language. Customers can choose for
 different
 languages by clicking links like:

 e.g.
 /en/... (show english content)
 /jp/... (show japanese content)
 /kr/... (show korean content)
 /zh/ (show chinese content)

 Therefore I can deduce the language from the request link, it would be
 nice if we can configure locale without the need of session creation.

 Regards,
 Wing


 Scott Swank wrote:
 
  Can I ask why you don't want to store the locale in the session?  It
  seems that the locale is unarguably session-specific.
 
  Cheers,
  Scott
 
  On 5/3/07, ywtsang [EMAIL PROTECTED] wrote:
 
  Dear all,
 
  I have read the wicket examples, wiki, mail lists, etc and it seems
 that
  if
  I need to expliclity change the locale, i need to write codes like:
 
  getSession().setLocale(my locale);
 
 
 
  Now, I can determine the explicity language/locale need to use from
 the
  incoming URL.
 
  I want to use wicket built in i18n support. My problem is, I
 cannot/will
  not
  use session for nearl all the pages.
 
  So, any means to set the locale without using session? Any
 help/guideline
  will be welcomed. Thanks.
 
 
  Regards,
  Wing
  --
  View this message in context:
 
 http://www.nabble.com/alternatives-to-set-locale-without-using-%22session%22--tf3690056.html#a10316471
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
 
 -
  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
 
 
 
  --
  Scott Swank
  reformed mathematician
 
 
 -
  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
 
 

 --
 View this message in context:
 http://www.nabble.com/alternatives-to-set-locale-without-using-%22session%22--tf3690056.html#a10317292
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 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
 
 

-- 
View this message in context: 

Re: [Wicket-user] alternatives to set locale without using session?

2007-05-04 Thread Igor Vaynberg

1.3 is what i would look at, the current trunk in our svn. we just had a
1.3.0-beta release in apache incubator. 1.2.x doesnt have stateless support.

there are numerous threads on this list that try to disprove the session is
evil myth. so i would search the list for those first, before i made the
decision that my app needs to be stateless. wicket-1.3 also has a
second-level-session store which stores old pages to disk, further reducing
the session size. just my 2c.

-igor


On 5/3/07, ywtsang [EMAIL PROTECTED] wrote:



Sorry that I am new to Wicket and may not know what the greatest values of
wicket are supposed to be.

We are evaluating different web frameworks right now and Wicket is one of
them.

One good and attracting point of Wicket to us is that it can separate
html/design and logic at a good way.
The usage of Wicket is simple and efficient.

But when looking more details of Wicket, we find that session is created
for
every request.

This introduces another concern about the performance problem as our
website
needs to serve a large volume of traffic.

As we find that it seems wicket 1.3 or 2.0+ are supporting no-session
pages, this fits our needs.

Since the handling of html/logic is attractive to us, we are trying to
seek possible solutions for session handling rather than just dumping
out
wicket from our list just because of without session, can't get the most
benefit from wicket.

Or do you suggest we should look at wicket 1.3 or 2.0+ rather than wicket
1.2.6?

Regards,
Wing


igor.vaynberg wrote:

 tbh i see little value of using wicket in a completely stateless
 application. the big advantage of wicket is the programming model it
 offers,
 which you give up when using stateless only components.

 -igor


 On 5/3/07, ywtsang [EMAIL PROTECTED] wrote:


 One of the requirements of my project is not to use session, that's why
 my
 question is so :)

 Our website will have different language. Customers can choose for
 different
 languages by clicking links like:

 e.g.
 /en/... (show english content)
 /jp/... (show japanese content)
 /kr/... (show korean content)
 /zh/ (show chinese content)

 Therefore I can deduce the language from the request link, it would
be
 nice if we can configure locale without the need of session creation.

 Regards,
 Wing


 Scott Swank wrote:
 
  Can I ask why you don't want to store the locale in the session?  It
  seems that the locale is unarguably session-specific.
 
  Cheers,
  Scott
 
  On 5/3/07, ywtsang [EMAIL PROTECTED] wrote:
 
  Dear all,
 
  I have read the wicket examples, wiki, mail lists, etc and it seems
 that
  if
  I need to expliclity change the locale, i need to write codes like:
 
  getSession().setLocale(my locale);
 
 
 
  Now, I can determine the explicity language/locale need to use from
 the
  incoming URL.
 
  I want to use wicket built in i18n support. My problem is, I
 cannot/will
  not
  use session for nearl all the pages.
 
  So, any means to set the locale without using session? Any
 help/guideline
  will be welcomed. Thanks.
 
 
  Regards,
  Wing
  --
  View this message in context:
 

http://www.nabble.com/alternatives-to-set-locale-without-using-%22session%22--tf3690056.html#a10316471
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
 

-
  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
 
 
 
  --
  Scott Swank
  reformed mathematician
 
 

-
  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
 
 

 --
 View this message in context:

http://www.nabble.com/alternatives-to-set-locale-without-using-%22session%22--tf3690056.html#a10317292
 Sent from the Wicket - User mailing list archive at Nabble.com.



-
 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] alternatives to set locale without using session?

2007-05-04 Thread Johan Compagner

in 1.3 you still can use getSession() and set the locale
But then you need to set it everytime because the session is created
everytime
if the pages are all stateless. So then you still can work with the normal
Wicket session object
Creating a wicket session object doesn't mean you create a http session
object. That only happens
if there are pages that need to go into the session.

johan


On 5/4/07, Scott Swank [EMAIL PROTECTED] wrote:


Can I ask why you don't want to store the locale in the session?  It
seems that the locale is unarguably session-specific.

Cheers,
Scott

On 5/3/07, ywtsang [EMAIL PROTECTED] wrote:

 Dear all,

 I have read the wicket examples, wiki, mail lists, etc and it seems that
if
 I need to expliclity change the locale, i need to write codes like:

 getSession().setLocale(my locale);



 Now, I can determine the explicity language/locale need to use from the
 incoming URL.

 I want to use wicket built in i18n support. My problem is, I cannot/will
not
 use session for nearl all the pages.

 So, any means to set the locale without using session? Any
help/guideline
 will be welcomed. Thanks.


 Regards,
 Wing
 --
 View this message in context:
http://www.nabble.com/alternatives-to-set-locale-without-using-%22session%22--tf3690056.html#a10316471
 Sent from the Wicket - User mailing list archive at Nabble.com.



-
 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



--
Scott Swank
reformed mathematician

-
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] alternatives to set locale without using session?

2007-05-04 Thread Eelco Hillenius
 in 1.3 you still can use getSession() and set the locale
 But then you need to set it everytime because the session is created
 everytime
 if the pages are all stateless. So then you still can work with the normal
 Wicket session object
 Creating a wicket session object doesn't mean you create a http session
 object. That only happens
 if there are pages that need to go into the session.

Yes. When a client is not bound to a *HttpSession*, Wicket creates a
temporary *Wicket Session* object for every request. This is not kept
in memory, so when the request is done, the objects are free to be
garbage collected.

Eelco

-
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


[Wicket-user] alternatives to set locale without using session?

2007-05-03 Thread ywtsang

Dear all,

I have read the wicket examples, wiki, mail lists, etc and it seems that if
I need to expliclity change the locale, i need to write codes like:

getSession().setLocale(my locale);



Now, I can determine the explicity language/locale need to use from the
incoming URL. 

I want to use wicket built in i18n support. My problem is, I cannot/will not
use session for nearl all the pages. 

So, any means to set the locale without using session? Any help/guideline
will be welcomed. Thanks.


Regards,
Wing
-- 
View this message in context: 
http://www.nabble.com/alternatives-to-set-locale-without-using-%22session%22--tf3690056.html#a10316471
Sent from the Wicket - User mailing list archive at Nabble.com.


-
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] alternatives to set locale without using session?

2007-05-03 Thread Scott Swank
Can I ask why you don't want to store the locale in the session?  It
seems that the locale is unarguably session-specific.

Cheers,
Scott

On 5/3/07, ywtsang [EMAIL PROTECTED] wrote:

 Dear all,

 I have read the wicket examples, wiki, mail lists, etc and it seems that if
 I need to expliclity change the locale, i need to write codes like:

 getSession().setLocale(my locale);



 Now, I can determine the explicity language/locale need to use from the
 incoming URL.

 I want to use wicket built in i18n support. My problem is, I cannot/will not
 use session for nearl all the pages.

 So, any means to set the locale without using session? Any help/guideline
 will be welcomed. Thanks.


 Regards,
 Wing
 --
 View this message in context: 
 http://www.nabble.com/alternatives-to-set-locale-without-using-%22session%22--tf3690056.html#a10316471
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 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



-- 
Scott Swank
reformed mathematician

-
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] alternatives to set locale without using session?

2007-05-03 Thread Igor Vaynberg

you can override page.getlocale() and return something based on page
parameters. havent tried it but sounds like it should work.

-igor


On 5/3/07, ywtsang [EMAIL PROTECTED] wrote:



Dear all,

I have read the wicket examples, wiki, mail lists, etc and it seems that
if
I need to expliclity change the locale, i need to write codes like:

getSession().setLocale(my locale);



Now, I can determine the explicity language/locale need to use from the
incoming URL.

I want to use wicket built in i18n support. My problem is, I cannot/will
not
use session for nearl all the pages.

So, any means to set the locale without using session? Any help/guideline
will be welcomed. Thanks.


Regards,
Wing
--
View this message in context:
http://www.nabble.com/alternatives-to-set-locale-without-using-%22session%22--tf3690056.html#a10316471
Sent from the Wicket - User mailing list archive at Nabble.com.


-
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] alternatives to set locale without using session?

2007-05-03 Thread ywtsang

One of the requirements of my project is not to use session, that's why my
question is so :)

Our website will have different language. Customers can choose for different
languages by clicking links like:

e.g.
/en/... (show english content)
/jp/... (show japanese content)
/kr/... (show korean content)
/zh/ (show chinese content)

Therefore I can deduce the language from the request link, it would be
nice if we can configure locale without the need of session creation.

Regards,
Wing


Scott Swank wrote:
 
 Can I ask why you don't want to store the locale in the session?  It
 seems that the locale is unarguably session-specific.
 
 Cheers,
 Scott
 
 On 5/3/07, ywtsang [EMAIL PROTECTED] wrote:

 Dear all,

 I have read the wicket examples, wiki, mail lists, etc and it seems that
 if
 I need to expliclity change the locale, i need to write codes like:

 getSession().setLocale(my locale);



 Now, I can determine the explicity language/locale need to use from the
 incoming URL.

 I want to use wicket built in i18n support. My problem is, I cannot/will
 not
 use session for nearl all the pages.

 So, any means to set the locale without using session? Any help/guideline
 will be welcomed. Thanks.


 Regards,
 Wing
 --
 View this message in context:
 http://www.nabble.com/alternatives-to-set-locale-without-using-%22session%22--tf3690056.html#a10316471
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 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

 
 
 -- 
 Scott Swank
 reformed mathematician
 
 -
 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
 
 

-- 
View this message in context: 
http://www.nabble.com/alternatives-to-set-locale-without-using-%22session%22--tf3690056.html#a10317292
Sent from the Wicket - User mailing list archive at Nabble.com.


-
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] alternatives to set locale without using session?

2007-05-03 Thread Igor Vaynberg

tbh i see little value of using wicket in a completely stateless
application. the big advantage of wicket is the programming model it offers,
which you give up when using stateless only components.

-igor


On 5/3/07, ywtsang [EMAIL PROTECTED] wrote:



One of the requirements of my project is not to use session, that's why my
question is so :)

Our website will have different language. Customers can choose for
different
languages by clicking links like:

e.g.
/en/... (show english content)
/jp/... (show japanese content)
/kr/... (show korean content)
/zh/ (show chinese content)

Therefore I can deduce the language from the request link, it would be
nice if we can configure locale without the need of session creation.

Regards,
Wing


Scott Swank wrote:

 Can I ask why you don't want to store the locale in the session?  It
 seems that the locale is unarguably session-specific.

 Cheers,
 Scott

 On 5/3/07, ywtsang [EMAIL PROTECTED] wrote:

 Dear all,

 I have read the wicket examples, wiki, mail lists, etc and it seems
that
 if
 I need to expliclity change the locale, i need to write codes like:

 getSession().setLocale(my locale);



 Now, I can determine the explicity language/locale need to use from the
 incoming URL.

 I want to use wicket built in i18n support. My problem is, I
cannot/will
 not
 use session for nearl all the pages.

 So, any means to set the locale without using session? Any
help/guideline
 will be welcomed. Thanks.


 Regards,
 Wing
 --
 View this message in context:

http://www.nabble.com/alternatives-to-set-locale-without-using-%22session%22--tf3690056.html#a10316471
 Sent from the Wicket - User mailing list archive at Nabble.com.



-
 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



 --
 Scott Swank
 reformed mathematician


-
 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



--
View this message in context:
http://www.nabble.com/alternatives-to-set-locale-without-using-%22session%22--tf3690056.html#a10317292
Sent from the Wicket - User mailing list archive at Nabble.com.


-
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