Re: [Wicket-user] Button and its model

2006-06-29 Thread Igor Vaynberg
the button uses its model to set the value of the "value" attributeso new Button(..., new ResourceModel("button.save")); for i18nsimple as that-Igor On 6/29/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote: >From the javadocs: * The model property is used to set the 'value' attribute. It will * thus b

Re: [Wicket-user] Button and its model

2006-06-29 Thread Eelco Hillenius
>From the javadocs: * The model property is used to set the 'value' attribute. It will * thus be the label of the button that shows up for end users. If you want the * attribute to keep it's markup attribute value, don't provide a model, or let * it return an empty string. If you provide a mo

Re: [Wicket-user] Button and its model

2006-06-29 Thread Matej Knopp
Why do you have to specify object as component model to be able to use it in onSubmit? -Matej cowwoc wrote: > Hi, > > I'd like to pass in a non-String model into a Button so I can use it > for onSubmit() but then the Button text ends up being crap (hashcode of > the model object). I can w

[Wicket-user] Button and its model

2006-06-29 Thread cowwoc
Hi, I'd like to pass in a non-String model into a Button so I can use it for onSubmit() but then the Button text ends up being crap (hashcode of the model object). I can workaround this issue using an AttributeModifier("value") but this seems like a hack to me that might break in future ve