Re: [Wicket-user] Question about localizing strings with .properties files

2006-04-26 Thread Juergen Donnerstag
exactly, all by a sudden the messages are now different. And there is
another reason.
It realy is a workaround circumventing inefficencies of internals. IMO
we should fix the internals and make it right instead. And because it
doesn't look like a 1 hour change to make it right, I'd rather
postpone the real fix post 1.2 but still provide the users a solution
if they want to.

Juergen

On 4/27/06, Johan Compagner <[EMAIL PROTECTED]> wrote:
> really how?
> they find messages they didn't before?
>
> johan
>
>
>
> On 4/27/06, Juergen Donnerstag < [EMAIL PROTECTED]> wrote:
> > It'll break existing applications.
> >
> > Juergen
> >
> > On 4/27/06, Johan Compagner <[EMAIL PROTECTED]> wrote:
> > > is there a problem why i can't be default?
> > >
> > >
> > > On 4/26/06, Juergen Donnerstag < [EMAIL PROTECTED] > wrote:
> > > >
> > > I've added WicketBundleResourceStringLoader to core
> which
> > > implements
> > >  the behavior, but it is not activated by default. You need to add it
> > > to the application like
> > > getResourceSettings().addStringResourceLoader(new
> > > WicketBundleStringResourceLoader(application, ...));
> > >
> > > Juergen
> > >
> > > On 4/26/06, Ari Suutari < [EMAIL PROTECTED]> wrote:
> > > > Hi,
> > > >
> > > >
> > > > > But java ResourceBundles don't know about styles and variations as
> fas
> > > > > as I know. I know only about locales.
> > > >
> > > > True. I meant that when ResourceBundles, if you have
> > > msgs_fi.properties and
> > > > msgs.properties the system falls back to msgs.properties if
> requested
> > > message
> > > > is not found in msgs_fi.properties.
> > > >
> > > > Ari S.
> > > >
> > > > >
> > > > > Juergen
> > > > >
> > > > > On 4/26/06, Ari Suutari < [EMAIL PROTECTED]> wrote:
> > > > >> Hi,
> > > > >>
> > > > >> > What i (and presumably Ari) wanted tried to achieve, is to have
> some
> > > > >> > style-specific bundle wich only contains some keys with
> > > style-specific
> > > > >> > values and thus not having to maintain a bunch of property files
> if
> > > we
> > > > >> > add another key, eventhough it's value would be the same across
> all
> > > styles.
> > > > >> >
> > > > >> > But since this behaviour is *not* how java usually deals with
> > > > >> > .properties, i'm not sure if this is a bug.
> > > > >>
> > > > >>I think that this is the way how java handles ResourceBundles:
> > > lookup
> > > > >>falls back to parent bundle if key is not found. Because of this
> I
> > > assumed
> > > > >>that wicket's .properties would work same way.
> > > > >>
> > > > >>Ari S.
> > > > >>
> > > > >>
> > > > >>
> > > > >>
> > > ---
> > > > >> 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___
> > > > > 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
> > > >
> > >
> > >
> > > ---
> > >
> > > 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?cmdlnk&kid0709&bid&3057&dat1642
> > > __

[Wicket-user] Pondering Possible PageMap Problem

2006-04-26 Thread Nick Heudecker
I'm running RC2 for an application I'm working on.  The application has two major parts: internal pages for use by application admins, and public registration pages.  Internal pages don't do anything special with the PageMap, but public registration pages set a specific PageMap.  This is in case app admins preview the public site.  (Hopefully this is all making sense.)
The public registration pages have a common super class that calls:super(PageMap.forName("microsite"));The problem I'm having is that the public registration page keeps refreshing in the browser, with the following URL:
http://localhost:8080/app/event/4c7d7d8a/wicket:pageMapName/wicket-0Everything in that URL is mine except "/wicket:pageMapName/wicket-0".  I didn't type it in - Wicket put it there.  What is it and could it be causing this problem?
I've tried removing Tomcat's HTTP Session cache with no change.  Any help is appreciated.



Re: [Wicket-user] Question about localizing strings with .properties files

2006-04-26 Thread Johan Compagner
really how?they find messages they didn't before?johanOn 4/27/06, Juergen Donnerstag <
[EMAIL PROTECTED]> wrote:It'll break existing applications.
JuergenOn 4/27/06, Johan Compagner <[EMAIL PROTECTED]> wrote:> is there a problem why i can't be default?>>> On 4/26/06, Juergen Donnerstag <
[EMAIL PROTECTED] > wrote:> >> I've added WicketBundleResourceStringLoader to core which> implements>  the behavior, but it is not activated by default. You need to add it
> to the application like> getResourceSettings().addStringResourceLoader(new> WicketBundleStringResourceLoader(application, ...));>> Juergen>> On 4/26/06, Ari Suutari <
[EMAIL PROTECTED]> wrote:> > Hi,> >> >> > > But java ResourceBundles don't know about styles and variations as fas> > > as I know. I know only about locales.
> >> > True. I meant that when ResourceBundles, if you have> msgs_fi.properties and> > msgs.properties the system falls back to msgs.properties if requested> message
> > is not found in msgs_fi.properties.> >> > Ari S.> >> > >> > > Juergen> > >> > > On 4/26/06, Ari Suutari < 
[EMAIL PROTECTED]> wrote:> > >> Hi,> > >>> > >> > What i (and presumably Ari) wanted tried to achieve, is to have some> > >> > style-specific bundle wich only contains some keys with
> style-specific> > >> > values and thus not having to maintain a bunch of property files if> we> > >> > add another key, eventhough it's value would be the same across all
> styles.> > >> >> > >> > But since this behaviour is *not* how java usually deals with> > >> > .properties, i'm not sure if this is a bug.> > >>
> > >>I think that this is the way how java handles ResourceBundles:> lookup> > >>falls back to parent bundle if key is not found. Because of this I> assumed> > >>that wicket's .properties would work same way.
> > >>> > >>Ari S.> > >>> > >>> > >>> > >>> ---> > >> 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___> > > 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>  ---
>> 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?cmdlnk&kid0709&bid&3057&dat1642
> ___>> 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.falkag.net/sel?cmdlnk&kid0709&bid&3057&dat1642___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Ajax javascript resources

2006-04-26 Thread Igor Vaynberg
change your servlet mapping to:/accoRequestor/*-IgorOn 4/26/06, Bas ter Brugge <[EMAIL PROTECTED]
> wrote:Hi all,

I'm new to Wicket and I've started to create a small sample app to see
how things work. I've added an AjaxLink to my Page, but I keep getting
a "wicketAjaxGet is not defined" _javascript_ error when running the
application. Somehow, the application cannot locate the wicket ajax
_javascript_ libraries, which are in the Wicket jar, I think. Do I need
to configure anything to have Wicket find these _javascript_s? 

- I'm using wicket-1.2-rc2.
- My servlet mapping looks like:
    
    AccoRequestorApplication
    /accoRequestor
    

- The name of my application also is accoRequestor
- The reference path to the Wicket Ajax _javascript_ library in the generated HTML looks like: 
-