Re: Why is it forbidden to overwrite getString method in the Component class ?
Hi, On Tue, Oct 23, 2012 at 8:31 PM, seba.wag...@gmail.com 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 pointers where this function is hidden. Did you meant to overwrite the getString method in the Localizer? No :-) I meant that you can add your own method and use it. Thanks! Sebastian 2012/10/23 Martin Grigorov mgrigo...@apache.org 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 seba.wag...@gmail.com wrote: 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 http://www.webbase-design.de http://www.wagner-sebastian.com seba.wag...@gmail.com -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Sebastian Wagner https://twitter.com/#!/dead_lock http://www.webbase-design.de http://www.wagner-sebastian.com seba.wag...@gmail.com -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Why is it forbidden to overwrite getString method in the Component class ?
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 http://www.webbase-design.de http://www.wagner-sebastian.com seba.wag...@gmail.com
Re: Why is it forbidden to overwrite getString method in the Component class ?
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 seba.wag...@gmail.com wrote: 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 http://www.webbase-design.de http://www.wagner-sebastian.com seba.wag...@gmail.com -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Why is it forbidden to overwrite getString method in the Component class ?
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 method in the Localizer? Thanks! Sebastian 2012/10/23 Martin Grigorov mgrigo...@apache.org 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 seba.wag...@gmail.com wrote: 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 http://www.webbase-design.de http://www.wagner-sebastian.com seba.wag...@gmail.com -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Sebastian Wagner https://twitter.com/#!/dead_lock http://www.webbase-design.de http://www.wagner-sebastian.com seba.wag...@gmail.com