Re: [Wicket-user] Question about i18n

2006-11-02 Thread Igor Vaynberg
you need to create your own tagsee WicketMessageResolver-igorOn 11/2/06, Carfield Yim <[EMAIL PROTECTED]
> wrote:A new question about  tag, can I specific some
standard postprocessing?I like to do that because the message may or may be use in _javascript_.In some language there may be contain single quote that the originalmessage don't have, which, break the _javascript_ string.
In order to prevent this I would like to run the _javascript_ escapefunction for all string come from resource bundle. Can I specific somepostprocessing of this tag? Or I need to create a custom tag base on
 tag? How can I do that?-Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Question about i18n

2006-11-02 Thread Carfield Yim
A new question about  tag, can I specific some
standard postprocessing?

I like to do that because the message may or may be use in Javascript.
In some language there may be contain single quote that the original
message don't have, which, break the javascript string.

In order to prevent this I would like to run the javascript escape
function for all string come from resource bundle. Can I specific some
postprocessing of this tag? Or I need to create a custom tag base on
 tag? How can I do that?

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Question about i18n

2006-11-01 Thread Carfield Yim
Please ignore this, I just make some other mistake at my code and lead
me think the tag work in this way, in fact the key is not a
requirement as I expected before

On 11/2/06, Carfield Yim <[EMAIL PROTECTED]> wrote:
> Thanks. By the way I just found that the key must existed otherwise
> the application will not run.
>
> I personally think as there is already default message for that tag,
> may be we don't need to make it as requirement of have key at bundle?
>
> On 11/1/06, Martijn Dashorst <[EMAIL PROTECTED]> wrote:
> > MyApplication.properties
> > MyApplication_nl_NL.properties
> > MyApplication_fr.properties
> > MyApplication_bg.properties
> > MyApplication_jp.properties
> >
> > Martijn
> >
> > On 11/1/06, Carfield Yim <[EMAIL PROTECTED]> wrote:
> > > Thanks for pointing out this, this is very useful. However according to
> > >
> > > http://wicketframework.org/wicket-1.1/apidocs/wicket/WicketMessageResolver.html
> > >
> > > Look like if for page class MyPage.class, then it will use the bundle
> > > define at MyPage_[locate].properties, right?
> > >
> > > However, I guess most people like to put all bundles key value pair in
> > > single properties file so that it is easier to reuse and translate. I
> > > believe this can be done in wicket, anyone know how?
> > >
> > >
> > > On 11/1/06, Erik van Oosten <[EMAIL PROTECTED]> wrote:
> > > > Hi Carfield,
> > > >
> > > > There is also the  tag.
> > > >
> > > > I am trying to find documentation on the wiki but I failed. I guess
> > > > you'll have to google for it.
> > > >
> > > >  Erik.
> > > >
> > > > Carfield Yim schreef:
> > > > > Have read these two page:
> > > > >
> > > > > http://cwiki.apache.org/confluence/display/WICKET/General+i18n+in+Wicket
> > > > > http://www.wicket-wiki.org.uk/wiki/index.php/I18n_in_Wicket
> > > > >
> > > > > Look like I have 2 options:
> > > > > 1) Have a of of  at HTML and fill all those
> > > > >  at Java code.
> > > > > 2) Have a lot of MyPage_[locate].html .
> > > > >
> > > > > Sound like both are not very ideal, as 1) need programmer add a long
> > > > > list of labels at java code, and 2) need designer keep multiple copy
> > > > > of HTML in sync manually.
> > > > >
> > > > > I just wonder if I have just have HTML template like
> > > > >
> > > > >  
> > > > > 
> > > > > 
> > > > > {label.message_to_user}
> > > > > 
> > > > > 
> > > > > 
> > > > >
> > > > > Then wicket will look it up from bundle without the programmer fill a
> > > > > long list of  component?
> > > >
> > > > --
> > > > Erik van Oosten
> > > > http://www.day-to-day-stuff.blogspot.com/
> > > >
> > > >
> > > > -
> > > > Using Tomcat but need to do more? Need to support web services, 
> > > > security?
> > > > Get stuff done quickly with pre-integrated technology to make your job 
> > > > easier
> > > > Download IBM WebSphere Application Server v.1.0.1 based on Apache 
> > > > Geronimo
> > > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > > > ___
> > > > Wicket-user mailing list
> > > > Wicket-user@lists.sourceforge.net
> > > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > > >
> > >
> > > -
> > > Using Tomcat but need to do more? Need to support web services, security?
> > > Get stuff done quickly with pre-integrated technology to make your job 
> > > easier
> > > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > > ___
> > > Wicket-user mailing list
> > > Wicket-user@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> >
> >
> > --
> > http://www.thebeststuffintheworld.com/vote_for/wicket";>Vote
> > for http://www.thebeststuffintheworld.com/stuff/wicket";>Wicket
> > at the http://www.thebeststuffintheworld.com/";>Best Stuff in
> > the World!
> >
> > -
> > Using Tomcat but need to do more? Need to support web services, security?
> > Get stuff done quickly with pre-integrated technology to make your job 
> > easier
> > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://

Re: [Wicket-user] Question about i18n

2006-11-01 Thread Carfield Yim
Thanks. By the way I just found that the key must existed otherwise
the application will not run.

I personally think as there is already default message for that tag,
may be we don't need to make it as requirement of have key at bundle?

On 11/1/06, Martijn Dashorst <[EMAIL PROTECTED]> wrote:
> MyApplication.properties
> MyApplication_nl_NL.properties
> MyApplication_fr.properties
> MyApplication_bg.properties
> MyApplication_jp.properties
>
> Martijn
>
> On 11/1/06, Carfield Yim <[EMAIL PROTECTED]> wrote:
> > Thanks for pointing out this, this is very useful. However according to
> >
> > http://wicketframework.org/wicket-1.1/apidocs/wicket/WicketMessageResolver.html
> >
> > Look like if for page class MyPage.class, then it will use the bundle
> > define at MyPage_[locate].properties, right?
> >
> > However, I guess most people like to put all bundles key value pair in
> > single properties file so that it is easier to reuse and translate. I
> > believe this can be done in wicket, anyone know how?
> >
> >
> > On 11/1/06, Erik van Oosten <[EMAIL PROTECTED]> wrote:
> > > Hi Carfield,
> > >
> > > There is also the  tag.
> > >
> > > I am trying to find documentation on the wiki but I failed. I guess
> > > you'll have to google for it.
> > >
> > >  Erik.
> > >
> > > Carfield Yim schreef:
> > > > Have read these two page:
> > > >
> > > > http://cwiki.apache.org/confluence/display/WICKET/General+i18n+in+Wicket
> > > > http://www.wicket-wiki.org.uk/wiki/index.php/I18n_in_Wicket
> > > >
> > > > Look like I have 2 options:
> > > > 1) Have a of of  at HTML and fill all those
> > > >  at Java code.
> > > > 2) Have a lot of MyPage_[locate].html .
> > > >
> > > > Sound like both are not very ideal, as 1) need programmer add a long
> > > > list of labels at java code, and 2) need designer keep multiple copy
> > > > of HTML in sync manually.
> > > >
> > > > I just wonder if I have just have HTML template like
> > > >
> > > >  
> > > > 
> > > > 
> > > > {label.message_to_user}
> > > > 
> > > > 
> > > > 
> > > >
> > > > Then wicket will look it up from bundle without the programmer fill a
> > > > long list of  component?
> > >
> > > --
> > > Erik van Oosten
> > > http://www.day-to-day-stuff.blogspot.com/
> > >
> > >
> > > -
> > > Using Tomcat but need to do more? Need to support web services, security?
> > > Get stuff done quickly with pre-integrated technology to make your job 
> > > easier
> > > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > > ___
> > > Wicket-user mailing list
> > > Wicket-user@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> >
> > -
> > Using Tomcat but need to do more? Need to support web services, security?
> > Get stuff done quickly with pre-integrated technology to make your job 
> > easier
> > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
>
> --
> http://www.thebeststuffintheworld.com/vote_for/wicket";>Vote
> for http://www.thebeststuffintheworld.com/stuff/wicket";>Wicket
> at the http://www.thebeststuffintheworld.com/";>Best Stuff in
> the World!
>
> -
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Question about i18n

2006-11-01 Thread Igor Vaynberg
no, since wicket:message takes no arguments there is no need for messageformatthe output is the exact string defined in the properties file for the specified key.-igor
On 11/1/06, Carfield Yim <[EMAIL PROTECTED]> wrote:
sorry, one more question, can I involve messageformat class from tag?On 11/2/06, Carfield Yim <[EMAIL PROTECTED]> wrote:> Excellent!
>> On 11/2/06, Erik van Oosten <[EMAIL PROTECTED]> wrote:> > Wicket will search all resource files with the names equal to the> > components in your component hierarchy, with your application as a last
> > resort (as Martin shows in his e-mail).> >> > So for a MyApplication, with a MyPage containing a MyPanel Wicket will> > look in:> > 1. MyPanel.properties (and _locale variants)
> > 2. MyPage.properties (..)> > 3. MyApplication.properties (..)> >> > Actually, it even goes two steps further. Wicket will also look at> > property files for the base classes of MyPanel, MyPage and
> > MyApplication. Secondly you can have different styles and variants.> >> >   Erik.> >> >> > Carfield Yim schreef:> > > Thanks for pointing out this, this is very useful. However according to
> > >> > > http://wicketframework.org/wicket-1.1/apidocs/wicket/WicketMessageResolver.html> > >
> > > Look like if for page class MyPage.class, then it will use the bundle> > > define at MyPage_[locate].properties, right?> > >> > > However, I guess most people like to put all bundles key value pair in
> > > single properties file so that it is easier to reuse and translate. I> > > believe this can be done in wicket, anyone know how?> > >> > >> > > On 11/1/06, Erik van Oosten <
[EMAIL PROTECTED]> wrote:> > >> > >> Hi Carfield,> > >>> > >> There is also the  tag.
> > >>> > >> I am trying to find documentation on the wiki but I failed. I guess> > >> you'll have to google for it.> > >>> > >>  Erik.> > >>
> > >> Carfield Yim schreef:> > >>> > >>> Have read these two page:> >  > >>> 
http://cwiki.apache.org/confluence/display/WICKET/General+i18n+in+Wicket> > >>> http://www.wicket-wiki.org.uk/wiki/index.php/I18n_in_Wicket
> >  > >>> Look like I have 2 options:> > >>> 1) Have a of of  at HTML and fill all those> > >>>  at Java code.
> > >>> 2) Have a lot of MyPage_[locate].html .> >  > >>> Sound like both are not very ideal, as 1) need programmer add a long> > >>> list of labels at java code, and 2) need designer keep multiple copy
> > >>> of HTML in sync manually.> >  > >>> I just wonder if I have just have HTML template like> >  > >>>  
> > >>> > > >>> > > >>> {label.message_to_user}> > >>> 
> > >>> > > >>> > >  > >>> Then wicket will look it up from bundle without the programmer fill a> > >>> long list of  component?
> >  > >> --> > >> Erik van Oosten> > >> http://www.day-to-day-stuff.blogspot.com/> > >>
> > >>> > >> -> > >> Using Tomcat but need to do more? Need to support web services, security?> > >> Get stuff done quickly with pre-integrated technology to make your job easier
> > >> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo> > >> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > >> ___> > >> Wicket-user mailing list> > >> Wicket-user@lists.sourceforge.net
> > >> https://lists.sourceforge.net/lists/listinfo/wicket-user> > >>> > >>> > >> > > -
> > > Using Tomcat but need to do more? Need to support web services, security?> > > Get stuff done quickly with pre-integrated technology to make your job easier> > > Download IBM WebSphere Application Server 
v.1.0.1 based on Apache Geronimo> > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > > ___> > > Wicket-user mailing list> > > Wicket-user@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/wicket-user> > >> > >> >> > --> > Erik van Oosten
> > http://www.day-to-day-stuff.blogspot.com/> >> >> > -
> > Using Tomcat but need to do more? Need to support web services, security?> > Get stuff done quickly with pre-integrated technology to make your job easier> > Download IBM WebSphere Application Server 
v.1.0.1 based on Apache Geronimo> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > ___> > Wicket-user mailing list> > Wicket-user@lists.sourceforge.net> > 
https://lists.sourceforge.net/lists/listinfo/wicket-user> >>-Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falka

Re: [Wicket-user] Question about i18n

2006-11-01 Thread Carfield Yim
sorry, one more question, can I involve messageformat class from
 tag?

On 11/2/06, Carfield Yim <[EMAIL PROTECTED]> wrote:
> Excellent!
>
> On 11/2/06, Erik van Oosten <[EMAIL PROTECTED]> wrote:
> > Wicket will search all resource files with the names equal to the
> > components in your component hierarchy, with your application as a last
> > resort (as Martin shows in his e-mail).
> >
> > So for a MyApplication, with a MyPage containing a MyPanel Wicket will
> > look in:
> > 1. MyPanel.properties (and _locale variants)
> > 2. MyPage.properties (..)
> > 3. MyApplication.properties (..)
> >
> > Actually, it even goes two steps further. Wicket will also look at
> > property files for the base classes of MyPanel, MyPage and
> > MyApplication. Secondly you can have different styles and variants.
> >
> >   Erik.
> >
> >
> > Carfield Yim schreef:
> > > Thanks for pointing out this, this is very useful. However according to
> > >
> > > http://wicketframework.org/wicket-1.1/apidocs/wicket/WicketMessageResolver.html
> > >
> > > Look like if for page class MyPage.class, then it will use the bundle
> > > define at MyPage_[locate].properties, right?
> > >
> > > However, I guess most people like to put all bundles key value pair in
> > > single properties file so that it is easier to reuse and translate. I
> > > believe this can be done in wicket, anyone know how?
> > >
> > >
> > > On 11/1/06, Erik van Oosten <[EMAIL PROTECTED]> wrote:
> > >
> > >> Hi Carfield,
> > >>
> > >> There is also the  tag.
> > >>
> > >> I am trying to find documentation on the wiki but I failed. I guess
> > >> you'll have to google for it.
> > >>
> > >>  Erik.
> > >>
> > >> Carfield Yim schreef:
> > >>
> > >>> Have read these two page:
> > >>>
> > >>> http://cwiki.apache.org/confluence/display/WICKET/General+i18n+in+Wicket
> > >>> http://www.wicket-wiki.org.uk/wiki/index.php/I18n_in_Wicket
> > >>>
> > >>> Look like I have 2 options:
> > >>> 1) Have a of of  at HTML and fill all those
> > >>>  at Java code.
> > >>> 2) Have a lot of MyPage_[locate].html .
> > >>>
> > >>> Sound like both are not very ideal, as 1) need programmer add a long
> > >>> list of labels at java code, and 2) need designer keep multiple copy
> > >>> of HTML in sync manually.
> > >>>
> > >>> I just wonder if I have just have HTML template like
> > >>>
> > >>>  
> > >>> 
> > >>> 
> > >>> {label.message_to_user}
> > >>> 
> > >>> 
> > >>> 
> > >>>
> > >>> Then wicket will look it up from bundle without the programmer fill a
> > >>> long list of  component?
> > >>>
> > >> --
> > >> Erik van Oosten
> > >> http://www.day-to-day-stuff.blogspot.com/
> > >>
> > >>
> > >> -
> > >> Using Tomcat but need to do more? Need to support web services, security?
> > >> Get stuff done quickly with pre-integrated technology to make your job 
> > >> easier
> > >> Download IBM WebSphere Application Server v.1.0.1 based on Apache 
> > >> Geronimo
> > >> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > >> ___
> > >> Wicket-user mailing list
> > >> Wicket-user@lists.sourceforge.net
> > >> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >>
> > >>
> > >
> > > -
> > > Using Tomcat but need to do more? Need to support web services, security?
> > > Get stuff done quickly with pre-integrated technology to make your job 
> > > easier
> > > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > > ___
> > > Wicket-user mailing list
> > > Wicket-user@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> > >
> >
> > --
> > Erik van Oosten
> > http://www.day-to-day-stuff.blogspot.com/
> >
> >
> > -
> > Using Tomcat but need to do more? Need to support web services, security?
> > Get stuff done quickly with pre-integrated technology to make your job 
> > easier
> > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
__

Re: [Wicket-user] Question about i18n

2006-11-01 Thread Carfield Yim
Excellent!

On 11/2/06, Erik van Oosten <[EMAIL PROTECTED]> wrote:
> Wicket will search all resource files with the names equal to the
> components in your component hierarchy, with your application as a last
> resort (as Martin shows in his e-mail).
>
> So for a MyApplication, with a MyPage containing a MyPanel Wicket will
> look in:
> 1. MyPanel.properties (and _locale variants)
> 2. MyPage.properties (..)
> 3. MyApplication.properties (..)
>
> Actually, it even goes two steps further. Wicket will also look at
> property files for the base classes of MyPanel, MyPage and
> MyApplication. Secondly you can have different styles and variants.
>
>   Erik.
>
>
> Carfield Yim schreef:
> > Thanks for pointing out this, this is very useful. However according to
> >
> > http://wicketframework.org/wicket-1.1/apidocs/wicket/WicketMessageResolver.html
> >
> > Look like if for page class MyPage.class, then it will use the bundle
> > define at MyPage_[locate].properties, right?
> >
> > However, I guess most people like to put all bundles key value pair in
> > single properties file so that it is easier to reuse and translate. I
> > believe this can be done in wicket, anyone know how?
> >
> >
> > On 11/1/06, Erik van Oosten <[EMAIL PROTECTED]> wrote:
> >
> >> Hi Carfield,
> >>
> >> There is also the  tag.
> >>
> >> I am trying to find documentation on the wiki but I failed. I guess
> >> you'll have to google for it.
> >>
> >>  Erik.
> >>
> >> Carfield Yim schreef:
> >>
> >>> Have read these two page:
> >>>
> >>> http://cwiki.apache.org/confluence/display/WICKET/General+i18n+in+Wicket
> >>> http://www.wicket-wiki.org.uk/wiki/index.php/I18n_in_Wicket
> >>>
> >>> Look like I have 2 options:
> >>> 1) Have a of of  at HTML and fill all those
> >>>  at Java code.
> >>> 2) Have a lot of MyPage_[locate].html .
> >>>
> >>> Sound like both are not very ideal, as 1) need programmer add a long
> >>> list of labels at java code, and 2) need designer keep multiple copy
> >>> of HTML in sync manually.
> >>>
> >>> I just wonder if I have just have HTML template like
> >>>
> >>>  
> >>> 
> >>> 
> >>> {label.message_to_user}
> >>> 
> >>> 
> >>> 
> >>>
> >>> Then wicket will look it up from bundle without the programmer fill a
> >>> long list of  component?
> >>>
> >> --
> >> Erik van Oosten
> >> http://www.day-to-day-stuff.blogspot.com/
> >>
> >>
> >> -
> >> Using Tomcat but need to do more? Need to support web services, security?
> >> Get stuff done quickly with pre-integrated technology to make your job 
> >> easier
> >> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> >> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> >> ___
> >> Wicket-user mailing list
> >> Wicket-user@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/wicket-user
> >>
> >>
> >
> > -
> > Using Tomcat but need to do more? Need to support web services, security?
> > Get stuff done quickly with pre-integrated technology to make your job 
> > easier
> > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
>
> --
> Erik van Oosten
> http://www.day-to-day-stuff.blogspot.com/
>
>
> -
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Question about i18n

2006-11-01 Thread Erik van Oosten
Wicket will search all resource files with the names equal to the 
components in your component hierarchy, with your application as a last 
resort (as Martin shows in his e-mail).

So for a MyApplication, with a MyPage containing a MyPanel Wicket will 
look in:
1. MyPanel.properties (and _locale variants)
2. MyPage.properties (..)
3. MyApplication.properties (..)

Actually, it even goes two steps further. Wicket will also look at 
property files for the base classes of MyPanel, MyPage and 
MyApplication. Secondly you can have different styles and variants.

  Erik.


Carfield Yim schreef:
> Thanks for pointing out this, this is very useful. However according to
>
> http://wicketframework.org/wicket-1.1/apidocs/wicket/WicketMessageResolver.html
>
> Look like if for page class MyPage.class, then it will use the bundle
> define at MyPage_[locate].properties, right?
>
> However, I guess most people like to put all bundles key value pair in
> single properties file so that it is easier to reuse and translate. I
> believe this can be done in wicket, anyone know how?
>
>
> On 11/1/06, Erik van Oosten <[EMAIL PROTECTED]> wrote:
>   
>> Hi Carfield,
>>
>> There is also the  tag.
>>
>> I am trying to find documentation on the wiki but I failed. I guess
>> you'll have to google for it.
>>
>>  Erik.
>>
>> Carfield Yim schreef:
>> 
>>> Have read these two page:
>>>
>>> http://cwiki.apache.org/confluence/display/WICKET/General+i18n+in+Wicket
>>> http://www.wicket-wiki.org.uk/wiki/index.php/I18n_in_Wicket
>>>
>>> Look like I have 2 options:
>>> 1) Have a of of  at HTML and fill all those
>>>  at Java code.
>>> 2) Have a lot of MyPage_[locate].html .
>>>
>>> Sound like both are not very ideal, as 1) need programmer add a long
>>> list of labels at java code, and 2) need designer keep multiple copy
>>> of HTML in sync manually.
>>>
>>> I just wonder if I have just have HTML template like
>>>
>>>  
>>> 
>>> 
>>> {label.message_to_user}
>>> 
>>> 
>>> 
>>>
>>> Then wicket will look it up from bundle without the programmer fill a
>>> long list of  component?
>>>   
>> --
>> Erik van Oosten
>> http://www.day-to-day-stuff.blogspot.com/
>>
>>
>> -
>> Using Tomcat but need to do more? Need to support web services, security?
>> Get stuff done quickly with pre-integrated technology to make your job easier
>> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>> ___
>> Wicket-user mailing list
>> Wicket-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
>> 
>
> -
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>   

-- 
Erik van Oosten
http://www.day-to-day-stuff.blogspot.com/


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Question about i18n

2006-11-01 Thread Martijn Dashorst
MyApplication.properties
MyApplication_nl_NL.properties
MyApplication_fr.properties
MyApplication_bg.properties
MyApplication_jp.properties

Martijn

On 11/1/06, Carfield Yim <[EMAIL PROTECTED]> wrote:
> Thanks for pointing out this, this is very useful. However according to
>
> http://wicketframework.org/wicket-1.1/apidocs/wicket/WicketMessageResolver.html
>
> Look like if for page class MyPage.class, then it will use the bundle
> define at MyPage_[locate].properties, right?
>
> However, I guess most people like to put all bundles key value pair in
> single properties file so that it is easier to reuse and translate. I
> believe this can be done in wicket, anyone know how?
>
>
> On 11/1/06, Erik van Oosten <[EMAIL PROTECTED]> wrote:
> > Hi Carfield,
> >
> > There is also the  tag.
> >
> > I am trying to find documentation on the wiki but I failed. I guess
> > you'll have to google for it.
> >
> >  Erik.
> >
> > Carfield Yim schreef:
> > > Have read these two page:
> > >
> > > http://cwiki.apache.org/confluence/display/WICKET/General+i18n+in+Wicket
> > > http://www.wicket-wiki.org.uk/wiki/index.php/I18n_in_Wicket
> > >
> > > Look like I have 2 options:
> > > 1) Have a of of  at HTML and fill all those
> > >  at Java code.
> > > 2) Have a lot of MyPage_[locate].html .
> > >
> > > Sound like both are not very ideal, as 1) need programmer add a long
> > > list of labels at java code, and 2) need designer keep multiple copy
> > > of HTML in sync manually.
> > >
> > > I just wonder if I have just have HTML template like
> > >
> > >  
> > > 
> > > 
> > > {label.message_to_user}
> > > 
> > > 
> > > 
> > >
> > > Then wicket will look it up from bundle without the programmer fill a
> > > long list of  component?
> >
> > --
> > Erik van Oosten
> > http://www.day-to-day-stuff.blogspot.com/
> >
> >
> > -
> > Using Tomcat but need to do more? Need to support web services, security?
> > Get stuff done quickly with pre-integrated technology to make your job 
> > easier
> > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
> -
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>


-- 
http://www.thebeststuffintheworld.com/vote_for/wicket";>Vote
for http://www.thebeststuffintheworld.com/stuff/wicket";>Wicket
at the http://www.thebeststuffintheworld.com/";>Best Stuff in
the World!

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Question about i18n

2006-11-01 Thread Carfield Yim
Thanks for pointing out this, this is very useful. However according to

http://wicketframework.org/wicket-1.1/apidocs/wicket/WicketMessageResolver.html

Look like if for page class MyPage.class, then it will use the bundle
define at MyPage_[locate].properties, right?

However, I guess most people like to put all bundles key value pair in
single properties file so that it is easier to reuse and translate. I
believe this can be done in wicket, anyone know how?


On 11/1/06, Erik van Oosten <[EMAIL PROTECTED]> wrote:
> Hi Carfield,
>
> There is also the  tag.
>
> I am trying to find documentation on the wiki but I failed. I guess
> you'll have to google for it.
>
>  Erik.
>
> Carfield Yim schreef:
> > Have read these two page:
> >
> > http://cwiki.apache.org/confluence/display/WICKET/General+i18n+in+Wicket
> > http://www.wicket-wiki.org.uk/wiki/index.php/I18n_in_Wicket
> >
> > Look like I have 2 options:
> > 1) Have a of of  at HTML and fill all those
> >  at Java code.
> > 2) Have a lot of MyPage_[locate].html .
> >
> > Sound like both are not very ideal, as 1) need programmer add a long
> > list of labels at java code, and 2) need designer keep multiple copy
> > of HTML in sync manually.
> >
> > I just wonder if I have just have HTML template like
> >
> >  
> > 
> > 
> > {label.message_to_user}
> > 
> > 
> > 
> >
> > Then wicket will look it up from bundle without the programmer fill a
> > long list of  component?
>
> --
> Erik van Oosten
> http://www.day-to-day-stuff.blogspot.com/
>
>
> -
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Question about i18n

2006-11-01 Thread Erik van Oosten
Hi Carfield,

There is also the  tag.

I am trying to find documentation on the wiki but I failed. I guess 
you'll have to google for it.

 Erik.

Carfield Yim schreef:
> Have read these two page:
>
> http://cwiki.apache.org/confluence/display/WICKET/General+i18n+in+Wicket
> http://www.wicket-wiki.org.uk/wiki/index.php/I18n_in_Wicket
>
> Look like I have 2 options:
> 1) Have a of of  at HTML and fill all those
>  at Java code.
> 2) Have a lot of MyPage_[locate].html .
>
> Sound like both are not very ideal, as 1) need programmer add a long
> list of labels at java code, and 2) need designer keep multiple copy
> of HTML in sync manually.
>
> I just wonder if I have just have HTML template like
>
>  
> 
> 
> {label.message_to_user}
> 
> 
> 
>
> Then wicket will look it up from bundle without the programmer fill a
> long list of  component?

-- 
Erik van Oosten
http://www.day-to-day-stuff.blogspot.com/


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user