[Wicket-user] HOWTO: replace some texts inside a tagbody.

2006-06-05 Thread nato
For example, I have this in my markup:div wicket:id=fooHello, ++name++. Do you know that your name which is ++name++ is very beautiful? The ++name++ is a Japanese word. The meaning of the word ++name++ in Japanese is space (50 times more citation of ++name++ here)
/divWhat I want to do with 'foo' is replace all the ++name++ occurrences with another word; so, my problem is how can I get the tagbody of 'foo' and render it with all the ++name++ occurences replaced?
Thanks for the help.
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Component.onAfterRender()

2006-05-28 Thread nato
Is it true that the Component.onAfterRender() is always called even if the rendering process of the component is aborted and not completed; one case for example is when the current http request is cancelled (ie. the user hit the stop button of the browser)? My second related question is... Is it a proper way to put a clean-up code at onAfterRender()?



Re: [Wicket-user] weird javascript header

2006-05-27 Thread nato
It's really weird because all of my wicket 1.2 pages with that the same _javascript_ are valid HTML 4.01 and XHTML. It works for me, but not for you. That's weird :)On 5/26/06, 
Wouter de Vaal [EMAIL PROTECTED] wrote:
Hi,I would like to express my concern on how wicket currently outputs _javascript_, my page outputs this header:!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01//EN   
http://www.w3.org/TR/html4/strict.dtdhtml	head		link href=/mycss.css rel=
stylesheet type=text/css media=all	
script type=text/_javascript_ src=/shop/app/resources/wicket.markup.html.WebPage/cookies.js/script
script type=text/_javascript_!--//--![CDATA[//!--var pagemapcookie = getWicketCookie('pm-null/shopShop4AllApplication');if(!pagemapcookie  pagemapcookie != '1'){setWicketCookie('pm-null/myApplication',1);}
else {document.location.href = '';}//--!]]/script/headNow I'm no _javascript_ expert, but this seems quite strange to me. When I try to validate using Firefox's web developer (tools-validate local html),
I get a validation error:Error
Line 14 column 6:
end tag for HEAD which is not finished./headIt looks to me that this originates from the strange (non-)nesting of the interesting comments+CDATA combination, because everything else seemds ok (right?). 
I have no _javascript_ in my code/templates whatsoever.I also changed everything to xhtml and I get the same error.So, is it incorrect? If not, what's wrong then?Thanx,
Wouter 




Re: [Wicket-user] Link to Anchor

2006-05-17 Thread nato
So, would the named anchor be supported in the next version of Wicket?BTW, I vote for Link.setAnchor() so that I could set the anchor dynamically. I also vote for the proposed 


a href="" wicket:id=anchoredLinkan href with # followed by a word is automatically an anchor/a is IMO benificial too.



[Wicket-user] wicket:pageMapName ?

2006-05-15 Thread nato
what is wicket:pageMapName page parameter and why do some of my bookmarkable page link have this and others dont? Can I, if it's ok, get rid of this?


[Wicket-user] how to request.getRemoteAddress() in wicket?

2006-04-28 Thread nato
There is no example about this in the Wicket Examples. The only thing I
found is the Javadoc of WebRequest.getHttpServletRequest() that says
this warning:


WARNING: it is a bad idea to depend on the http servlet request directly.
 Please use the classes and methods that are exposed by Wicket (such as
 Session instead. Send an email to the mailing list in case
 it is not clear how to do things or you think you miss funcionality which
 causes you to depend on this directly.
 






[Wicket-user] Re: how to request.getRemoteAddress() in wicket?

2006-04-28 Thread nato
does anyone want to answer? is there a wicket way to get the ip address of the client like the ServletRequest.getRemoteAddr() ?
On 4/28/06, nato [EMAIL PROTECTED] wrote:
There is no example about this in the Wicket Examples. The only thing I
found is the Javadoc of WebRequest.getHttpServletRequest() that says
this warning:


WARNING: it is a bad idea to depend on the http servlet request directly.
 Please use the classes and methods that are exposed by Wicket (such as
 Session instead. Send an email to the mailing list in case
 it is not clear how to do things or you think you miss funcionality which
 causes you to depend on this directly.
 








[Wicket-user] Re: how to request.getRemoteAddress() in wicket?

2006-04-28 Thread nato
thanks guys!On 4/28/06, nato [EMAIL PROTECTED] wrote:
does anyone want to answer? is there a wicket way to get the ip address of the client like the ServletRequest.getRemoteAddr
() ?
On 4/28/06, nato 
[EMAIL PROTECTED] wrote:

There is no example about this in the Wicket Examples. The only thing I
found is the Javadoc of WebRequest.getHttpServletRequest() that says
this warning:


WARNING: it is a bad idea to depend on the http servlet request directly.
 Please use the classes and methods that are exposed by Wicket (such as
 Session instead. Send an email to the mailing list in case
 it is not clear how to do things or you think you miss funcionality which
 causes you to depend on this directly.
 










Re: [Wicket-user] Re: call for i18n contributions

2006-04-20 Thread nato
Here's a translation in Filipino/Tagalog (tl)___RequiredValidator=Ang '${label}' ay kailangan.TypeValidator=Ang '${input}' ay hindi isang ${type}.NumberValidator.range=Ang ${input} ay dapat na nasa pagitan ng ${minimum} hanggang ${maximum} lamang.
NumberValidator.minimum=Ang '${input}' ay dapat na mas higit sa ${minimum}.NumberValidator.maximum=Ang '${input}' ay dapat na mas mababa sa ${maximum}.StringValidator.range=Ang
 bilang ng mga titik sa '${input}' ay dapat na nasa pagitan ng ${minimum} hanggang ${maximum} lamang.StringValidator.minimum=Ang bilang ng mga titik sa '${input}' ay hindi dapat na mas kaunti sa ${mimimum}.StringValidator.maximum=Ang
 bilang ng mga titik sa '${input}' ay hindi dapat na mas marami sa ${maximum}.DateValidator.range=Ang ${input} ay dapat na nasa pagitan ng ${minimum} hanggang ${maximum} lamang.DateValidator.minimum='Ang '${input}' ay dapat na mas higit sa ${minimum}.
DateValidator.maximum=Ang '${input}' ay dapat na mas mababa sa ${maximum}.PatternValidator=Ang '${input}' ay hindi tumugma sa pattern na '${pattern}'.EmailAddressPatternValidator=Ang '${input}' ay hindi puwedeng email address.
EqualInputValidator=Ang '${input0}' mula sa ${label0} at ang '${input1}' mula sa ${label1} ay dapat na magkapareho.null=Mamili ng isanullValid=__
On 4/18/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
Also, it would be really cool to have as many languages as possiblefor the FormInput example of wicket-examples. Contributions arewelcome!EelcoOn 4/17/06, Eelco Hillenius 
[EMAIL PROTECTED] wrote: Hi all, As you might have noticed, we implemented some default validator messages (Application.properties). We currently have that in languages English (default), Chinese (zh_TW), German (de) and Dutch (nl).
 It would be great if your language is not in that list, you could contribute it. At the end of this email, Iincluded the English contents. Please contribute by either responding to this email, or -
 the preferred way - to add your file to http://sourceforge.net/tracker/index.php?func=detailaid=1471603group_id=119783atid=684977
 Thanks! Eelco RequiredValidator=field '${label}' is required. TypeValidator='${input}' is not a valid ${type}. NumberValidator.range=${input}
 must be between ${minimum} and ${maximum}. NumberValidator.minimum='${input}' must be greater than ${minimum}. NumberValidator.maximum='${input}' must be smaller than ${maximum}. StringValidator.range='${input}
' must be between ${minimum} and ${maximum} chars. StringValidator.minimum='${input}' must be at least ${mimimum} chars. StringValidator.maximum='${input}' must be at most ${maximum} chars.
 DateValidator.range='${input}' must be between ${minimum} and ${maximum}. DateValidator.minimum='${input}' must be greater than ${minimum}. DateValidator.maximum='${input}' must be smaller than ${maximum}.
 PatternValidator='${input}' does not match pattern '${pattern}' EmailAddressPatternValidator='${input}' is not a valid email address. EqualInputValidator='${input0}' from ${label0} and '${input1}' from
 ${label1} must be equal. null=Choose One nullValid=---This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] WebPage generated script problem

2006-04-18 Thread nato
May I suggest that you inlude ![CDATA[ ... ]] inside the script element.For example,script type=text/_javascript_//![CDATA[function isXhtmlFriendly() { alert('Yes, I am XHTML friendly');
 alert('quotes , less than , and ampersand  used in this _javascript_ code do not yield to XHTML validation error');} //]]/scriptThe opening and closing CDATA inside the script tag do not affect the _javascript_ code because it is _javascript_-commented.
It is a w3c recommendation that we enclose the _javascript_ code inside CDATA if the document type is xhtml. Please see http://www.w3.org/TR/xhtml1/#h-4.8I really need to make all my html pages to be valid XHTML because my moron boss requires it. It will be an advance christmas gift for me if this issue be fixed in 
Wicket-1.2final. Thanks to all.On 4/17/06, Johan Compagner [EMAIL PROTECTED] wrote:
we should add it everywhere:
http://www.w3schools.com/tags/tag_script.aspit is a required tag.And language is depricated and shouldn't be used.
johanOn 4/17/06, Juergen Donnerstag 
[EMAIL PROTECTED] wrote:
Searching through the code there are quite some locations where wejust do scriptJuergenOn 4/17/06, Mark Derricutt 
[EMAIL PROTECTED] wrote: language=text/_javascript_I hope thats just a major typo from
 type=text/_javascript_ ? On 4/17/06, Johan Compagner  [EMAIL PROTECTED]
 wrote:   that can't be done.
  Because if i do this:   script language=  text/_javascript_  var pagemapcookie = getWicketCookie('pagemap-null');  if(!pagemapcookie  pagemapcookie !=
 '1'){setWicketCookie('pagemap-null',1);}  else {  document.location.href  = '/wicket/niceurl/the/homepage/path/wicket:pageMapName/wicket-0';}  /script
  then the script is not executed.That can only be used for including a script file.johan  ---
This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642
___
Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user





Re: [Wicket-user] WebPage generated script problem

2006-04-18 Thread nato
mime type: text/htmldoctype: xhtml 1.0 transitionalscript and style tags: enclose it within CDATAWith this setup that I've been doing for almost a year, I haven't had any problems. My applications run even on the very sucking IE. But Wicket prevents me from having a valid XHTML because of the markup it generates.
Actually, I'm a bit confious what document type to use for my Wicket html markups... It's not HTML and not XHTML either. It's not HTML because it requires some tags like the input tag to end with / . And it's not XHTML either because it's not compliant even with 
XHTML-1.0-transitional.On 4/19/06, cowwoc [EMAIL PROTECTED] wrote:
Like I said, I've never had any problems with text/html with the CDATAblocks I mentioned.GiliEelco Hillenius wrote: On 4/18/06, cowwoc [EMAIL PROTECTED]
 wrote:I personally think this is much ado about nothing. I've used text/html for a long time and the CDATA thing below and to date I haven't run into any problems. And if I do in the future, I'll just fix
 it ;) Gili Unfortunately, we have to find something that always works, as we're developing a framework rather than one application. Eelco
 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast
 and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=kkid0944bid$1720dat1642
 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] WebPage generated script problem

2006-04-17 Thread nato
I just want to add, please specify the type=text/_javascript_ on the generated script element so that it will be a valid (x)html. My boss wants our html pages to be w3c compliant. Thanks, I hope this would also be a quick-fix. :D
On 4/17/06, Ingram Chen [EMAIL PROTECTED] wrote:
Wow, so fast! I will try it after rc1 out. Thanks a lot.On 4/17/06, 
Eelco Hillenius [EMAIL PROTECTED]
 wrote:Done. It's setting automaticMultiWindowSupport.Eelco

On 4/16/06, Eelco Hillenius [EMAIL PROTECTED] wrote: That code is for automatically opening new page maps when new windows
 are opened (e.g. when doing ctrl+click or ctrl+n in IE). That code had
 some problems though, and we rewrote it using cookies when they are available, using the history trick as a last fall back. There was a thread about this earlier this week btw. I agree, any checking like this should be a configuration option. I'll
 build that in now. Eelco On 4/16/06, Ingram Chen [EMAIL PROTECTED]
 wrote:  The WebPage from latest beta generate some _javascript_:
   if((history.length == 0  document.all) || (history.length == 1   !document.all))     I am not sure what this for but while in testing we may dump whole page
  source and preview it in browser. This script always do redirect because  there is  no history for such standalone page.   Is it possible to turn it off via PageSetting ? or at least it can be turned
  off  in MockWebApplication.   --  Ingram Chen  Java [EMAIL PROTECTED]  Institue of BioMedical Sciences Academia Sinica Taiwan  blog: 
http://www.javaworld.com.tw/roller/page/ingramchen---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!

http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642___Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-- Ingram ChenJava [EMAIL PROTECTED]
Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen





[Wicket-user] script element is not a valid html 4 or xhtml

2006-04-10 Thread nato
Wicket adds script element which is not a valid html 4 or xhtml because it does not specify the type attribute. I think it's a bug.


[Wicket-user] is it possible? -- a wicket component inside a BookmarkablePageLink

2006-04-03 Thread nato
Is it possible to do this?...In MyPage.java...add(new Label(linkTex, I'm the text inside a/a));
add(new BookmarkablePageLink(link, getClass()));In MyPage.html...a href="" wicket:id=linkspan wicket:id=linkText.../span/a
I'm asking because doing this I get an error saying: wicket.WicketRuntimeException: The component(s) below failed to render. A common problem is that you have added a component in code but forgot to reference it in the markup (thus the component will never be rendered).
If it's not the proper way to do this, then what?


Re: [Wicket-user] Re: is it possible? -- a wicket component inside a BookmarkablePageLink

2006-04-03 Thread nato
Ok. I now understand how to do this.I have copy-pasted the wrong exception message in my post. Let me correct this to avoid confusion to the readers.The correct exception message should be this one:
wicket.markup.MarkupException: Unable to find component with id 'linkText' in [MarkupContainer [Component id = link, page = org.mcgi.answers.mysample.Home2, path = 10:link.BookmarkablePageLink, isVisible = true, isVersioned = true]]. This means that you declared wicket:id=linkText in your markup, but that you either did not add the component to your page at all, or that the hierarchy does not match.
On 4/4/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
if you are going to nest the label inside the link in your markup you have to do the same in your javaie

Link link=new BookmarkablePageLink(link, getClass()));add(link);link.add(new Label(linkTex, I'm the text inside a/a));
-Igor
On 4/3/06, nato 

[EMAIL PROTECTED] wrote:correction to a typo in my post: 
add(new Label(linkTex, I'm the text inside a/a));should be
add(new Label(linkText, I'm the text inside a/a));




On 4/4/06, nato 

[EMAIL PROTECTED] wrote:
Is it possible to do this?...In MyPage.java...
add(new Label(linkTex, I'm the text inside a/a));
add(new BookmarkablePageLink(link, getClass()));In MyPage.html...a href="" wicket:id=linkspan wicket:id=linkText.../span/a
I'm asking because doing this I get an error saying: wicket.WicketRuntimeException: The component(s) below failed to render. A common problem 
is that you have added a component in code but forgot to reference it in the markup (thus the component will never be rendered).
If it's not the proper way to do this, then what?








[Wicket-user] Re: is it possible? -- a wicket component inside a BookmarkablePageLink

2006-04-03 Thread nato
correction to a typo in my post: add(new Label(linkTex, I'm the text inside a/a));should be
add(new Label(linkText, I'm the text inside a/a));


On 4/4/06, nato [EMAIL PROTECTED] wrote:
Is it possible to do this?...In MyPage.java...
add(new Label(linkTex, I'm the text inside a/a));
add(new BookmarkablePageLink(link, getClass()));In MyPage.html...a href="" wicket:id=linkspan wicket:id=linkText.../span/a
I'm asking because doing this I get an error saying: wicket.WicketRuntimeException: The component(s) below failed to render. A common problem 
is that you have added a component in code but forgot to reference it in the markup (thus the component will never be rendered).
If it's not the proper way to do this, then what?




[Wicket-user] how to prevent wicket from transforming characters to html entities?

2006-04-03 Thread nato
when wicket renders the html, how can I prevent wicket from transforming characters like , , ,  into html entities like lt;,
 gt;, amp; and quot;?


Re: [Wicket-user] Request for a feature!

2006-03-13 Thread nato
But the locale param is not bookmarkable; the param is not visible in
the URL. BTW I'm using Wicket 1.2beta

On 3/13/06, Johan Compagner [EMAIL PROTECTED] wrote:
 make youre bookmarkable url with the locale param yourself:

 new BookmarkablePageLink(id, MyPage.class, new
 PageParameters().put(locale,locale.toString()));

 And then in youre constructor of the page set the locale you are given.

 johan



 On 3/12/06, nato [EMAIL PROTECTED] wrote:
 
  [Warning: my English sucks!]

 Hi. I have been evaluating Wicket for 4 days now. I would like to
 request a feature for i18n that I wish other MVC framework had.

 Based on what I've learned on Wicket's wiki, the Wicket pages' default
 locale depends on the header property sent by the browsers (correct me
 if I'm wrong). And I can set the pages to use a different locale other
 than the default. But my problem is this: after I set the session to
  use another locale (japanese for example), of course, the page's
 content also change to japanese but the URL do not change. The problem
 is, the japanese page is no longer bookmarkable.

 A scenario in real-life is this: A user visited my site, selected the
 japanese
 locale and found some content in there interesting, he would probably
 copy the page's URL
 http://mysite/myapp/app?bookmarkablePage=Page2
 and send it to a friend saying,
 Hey buddy! go to this URL and read the article. Don't worry, you will
 surely
 understand the text because it's in Japanese language.
 Then, his friend will reply saying,
 Are you crazy? The URL you've given me is not in Japanese, it's in
 English.

 Of course, it's because his friend got the default locale which is
 English. So I suggest that aside from Wickets getting the browsers
 locale as the default for the session, let the session also be set by
  default according to a URL in the page (but not the
 parameterized-bookmarkable-page way because I'm talking about the
 session's default locale).


 ---
  This SF.Net email is sponsored by xPML, a groundbreaking scripting language
 that extends applications into web and mobile media. Attend the live webcast
 and join the prime developer group breaking into this new coding territory!
 http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Request for a feature!

2006-03-13 Thread nato
You're right. I was actually looking at the wrong page that's why I
did not see the querystring.

On 3/14/06, Johan Compagner [EMAIL PROTECTED] wrote:
 what do you mean?
 you can append anything you want as a page parameter as long as it can be
 presented in a string.
 You just have to make in visible in the url just like i did in the example i
 gave you:


  new BookmarkablePageLink(id, MyPage.class, new
  PageParameters().put(locale,locale.toString()));

 johan



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Re: Request for a feature!

2006-03-13 Thread nato
Disregard this message of mine. It's nonsense. (I think I must learn
Wicket first or exert some of my brains effort before sending to this
list a foolish question like this so that noone's valuable time is
wasted.)

Hmmm. I think I love Wicket now. If Wicket were a lady, I would kiss
and hug her. :D

On 3/13/06, nato [EMAIL PROTECTED] wrote:
 [Warning: my English sucks!]

 Hi. I have been evaluating Wicket for 4 days now. I would like to
 request a feature for i18n that I wish other MVC framework had.

 Based on what I've learned on Wicket's wiki, the Wicket pages' default
 locale depends on the header property sent by the browsers (correct me
 if I'm wrong). And I can set the pages to use a different locale other
 than the default. But my problem is this: after I set the session to
 use another locale (japanese for example), of course, the page's
 content also change to japanese but the URL do not change. The problem
 is, the japanese page is no longer bookmarkable.

 A scenario in real-life is this: A user visited my site, selected the japanese
 locale and found some content in there interesting, he would probably
 copy the page's URL
 http://mysite/myapp/app?bookmarkablePage=Page2
 and send it to a friend saying,
 Hey buddy! go to this URL and read the article. Don't worry, you will surely
 understand the text because it's in Japanese language.
 Then, his friend will reply saying,
 Are you crazy? The URL you've given me is not in Japanese, it's in English.

 Of course, it's because his friend got the default locale which is
 English. So I suggest that aside from Wickets getting the browsers
 locale as the default for the session, let the session also be set by
 default according to a URL in the page (but not the
 parameterized-bookmarkable-page way because I'm talking about the
 session's default locale).



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Re: Request for a feature!

2006-03-13 Thread nato
Disregard this message of mine. It's nonsense. (I think I must learn
Wicket first or exert some of my brains effort before sending to this
list a foolish question like this so that noone's valuable time is
wasted.)

Hmmm. I think I love Wicket now. If Wicket were a lady, I would kiss
and hug her. :D

On 3/13/06, nato [EMAIL PROTECTED] wrote:
 [Warning: my English sucks!]

 Hi. I have been evaluating Wicket for 4 days now. I would like to
 request a feature for i18n that I wish other MVC framework had.

 Based on what I've learned on Wicket's wiki, the Wicket pages' default
 locale depends on the header property sent by the browsers (correct me
 if I'm wrong). And I can set the pages to use a different locale other
 than the default. But my problem is this: after I set the session to
 use another locale (japanese for example), of course, the page's
 content also change to japanese but the URL do not change. The problem
 is, the japanese page is no longer bookmarkable.

 A scenario in real-life is this: A user visited my site, selected the japanese
 locale and found some content in there interesting, he would probably
 copy the page's URL
 http://mysite/myapp/app?bookmarkablePage=Page2
 and send it to a friend saying,
 Hey buddy! go to this URL and read the article. Don't worry, you will surely
 understand the text because it's in Japanese language.
 Then, his friend will reply saying,
 Are you crazy? The URL you've given me is not in Japanese, it's in English.

 Of course, it's because his friend got the default locale which is
 English. So I suggest that aside from Wickets getting the browsers
 locale as the default for the session, let the session also be set by
 default according to a URL in the page (but not the
 parameterized-bookmarkable-page way because I'm talking about the
 session's default locale).



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Request for a feature!

2006-03-12 Thread nato
[Warning: my English sucks!]

Hi. I have been evaluating Wicket for 4 days now. I would like to
request a feature for i18n that I wish other MVC framework had.

Based on what I've learned on Wicket's wiki, the Wicket pages' default
locale depends on the header property sent by the browsers (correct me
if I'm wrong). And I can set the pages to use a different locale other
than the default. But my problem is this: after I set the session to
use another locale (japanese for example), of course, the page's
content also change to japanese but the URL do not change. The problem
is, the japanese page is no longer bookmarkable.

A scenario in real-life is this: A user visited my site, selected the japanese
locale and found some content in there interesting, he would probably
copy the page's URL
http://mysite/myapp/app?bookmarkablePage=Page2
and send it to a friend saying,
Hey buddy! go to this URL and read the article. Don't worry, you will surely
understand the text because it's in Japanese language.
Then, his friend will reply saying,
Are you crazy? The URL you've given me is not in Japanese, it's in English.

Of course, it's because his friend got the default locale which is
English. So I suggest that aside from Wickets getting the browsers
locale as the default for the session, let the session also be set by
default according to a URL in the page (but not the
parameterized-bookmarkable-page way because I'm talking about the
session's default locale).


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user