form.add(new Link("cancel").add(new Label("label",,new
MyStyledResourceModel("cancel", this, null))))
On Nov 9, 2007 10:58 AM, Pills <[EMAIL PROTECTED]> wrote:
>
>
>
> igor.vaynberg wrote:
> >
> > i would make the cancel button a Link, but thats just me...
> >
> > -igor
> >
> Yes, I too, but when I make it a link, the button's text isn't localized
>
> <code>
> form.add(new Link("cancel", new MyStyledResourceModel("cancel", this,
> null))
> {
> @Override
> public void onClick() {
> //...
> });
> </code>
>
> And it display the default value "[Cancel]"...
>
> --
> View this message in context:
> http://www.nabble.com/Several-localized-buttons-in-a-form-tf4770293.html#a13664181
> Sent from the Wicket - User mailing list archive at
> Nabble.com<http://nabble.com/>
> .
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>