Re: Why is it forbidden to overwrite "getString" method in the Component class ?

2012-10-24 Thread Martin Grigorov
Hi, On Tue, Oct 23, 2012 at 8:31 PM, seba.wag...@gmail.com wrote: > Thanks Martin, > > using IStringResourceLoader solved my issue. > > However I did not understand what you meant with "#getMyString()" > I did not find any method #getMyString() that I could overwrite, also > Google gave me no p

Re: Why is it forbidden to overwrite "getString" method in the Component class ?

2012-10-23 Thread seba.wag...@gmail.com
Thanks Martin, using IStringResourceLoader solved my issue. However I did not understand what you meant with "#getMyString()" I did not find any method #getMyString() that I could overwrite, also Google gave me no pointers where this function is hidden. Did you meant to overwrite the getString me

Re: Why is it forbidden to overwrite "getString" method in the Component class ?

2012-10-23 Thread Martin Grigorov
Hi, You can always use #getMyString() for custom loading. Or you may just need to add an additional/custom IStringResourceLoader instead of overriding #getString(). On Tue, Oct 23, 2012 at 3:56 PM, seba.wag...@gmail.com wrote: > Hi, > > I am wondering why it is forbidden to overwrite > > public

Why is it forbidden to overwrite "getString" method in the Component class ?

2012-10-23 Thread seba.wag...@gmail.com
Hi, I am wondering why it is forbidden to overwrite public final String getString(final String key) in org.apache.wicket.Component ? What is the reason of forbidding anybody to use his custom resource loading mechanism ? Thanks! Sebastian -- Sebastian Wagner https://twitter.com/#!/dead_lock h