Re: i18n feedbackmessages

2007-10-27 Thread Johan Compagner
yes checking for enabled there is fine (thats why wicket also does for setting the enabled attribute) johan On 10/27/07, nico <[EMAIL PROTECTED]> wrote: > > Johan Compagner schrieb: > > why aren't you subclassing button and have a button that has that > > modifier and use that one on all your f

Re: i18n feedbackmessages

2007-10-27 Thread nico
Johan Compagner schrieb: why aren't you subclassing button and have a button that has that modifier and use that one on all your forms? doh! thanks, i haven't seen that obvious possibility ..is it right, to check wether the button is enabled in the onComponentTag event before putting the att

Re: i18n feedbackmessages

2007-10-26 Thread Johan Compagner
why aren't you subclassing button and have a button that has that modifier and use that one on all your forms? On 10/26/07, nico <[EMAIL PROTECTED]> wrote: > > Thanks, Johan > > With that code you are adding an attribute modifier ever time the button > renders > > And you did get an exception i g

Re: i18n feedbackmessages

2007-10-26 Thread nico
Thanks, Johan With that code you are adding an attribute modifier ever time the button renders And you did get an exception i guess because you call getString() out of the blue inside a construtor of a not fully constructed class. thats why i moved the code to the propably wrong place.. To

Re: i18n feedbackmessages

2007-10-26 Thread Johan Compagner
With that code you are adding an attribute modifier ever time the button renders And you did get an exception i guess because you call getString() out of the blue inside a construtor of a not fully constructed class. To do that you have to lazy get the string through a model.getObject(). Then als

Re: i18n feedbackmessages

2007-10-26 Thread nico
Thanks, that worked for me, however i needed to add the modifier in onBeforeRender, within the constructor an exception was thrown @Override public void onBeforeRender() { submitButton.add( new SimpleAttributeModifier("value",

RE: i18n feedbackmessages

2007-10-24 Thread Jeremy Thomerson
me right now. Jeremy Thomerson -- sent from a wireless device -Original Message- From: "nico" <[EMAIL PROTECTED]> To: users@wicket.apache.org Sent: 10/24/07 3:52 PM Subject: Re: i18n feedbackmessages another issue, Button.onComponentTag states in its documentation tag:

Re: i18n feedbackmessages

2007-10-24 Thread nico
another issue, Button.onComponentTag states in its documentation tag: * NOTE. For a

Re: i18n feedbackmessages

2007-10-23 Thread Jeremy Thomerson
info(getString("your.key")); Jeremy Thomerson On 10/23/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hi, i wonder wether the > info("feedback message"); could be internationalized, ie. > info("feedback.success"); with a corresponding entry in the xyz.properties > . > is there a workaround?

Re: i18n feedbackmessages

2007-10-23 Thread Igor Vaynberg
info(getstring("feedback.success")); -igor On 10/23/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi, i wonder wether the > info("feedback message"); could be internationalized, ie. > info("feedback.success"); with a corresponding entry in the xyz.properties. > is there a workaround? > than