You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Tim Lantry <tl...@gmail.com> on 2007/09/11 16:58:55 UTC
Localize AjaxButton
How do you localize the 'label' on an AjaxButton component?
Re: Localize AjaxButton
Posted by Tim Lantry <tl...@gmail.com>.
Thanks Al. That worked. I should have thought of that.
On 9/11/07, Al Maw <wi...@almaw.com> wrote:
>
> Tim Lantry wrote:
> > How do you localize the 'label' on an AjaxButton component?
>
> Off the top of my head, try:
>
> AjaxButton foo = new AjaxButton("foo");
> foo.setModel(new StringResourceModel("propertyKey"));
>
>
> Regards,
>
> Al
> --
> Alastair Maw
> Wicket-biased blog at http://herebebeasties.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
Re: Localize AjaxButton
Posted by Martijn Dashorst <ma...@gmail.com>.
Other than remove the confusion with Link where the IModel is used as
an object in the onclick handler... I don't think I can find a reason.
Martijn
On 9/11/07, Al Maw <wi...@almaw.com> wrote:
> Al Maw wrote:
> > Tim Lantry wrote:
> >> How do you localize the 'label' on an AjaxButton component?
> >
> > Off the top of my head, try:
> >
> > AjaxButton foo = new AjaxButton("foo");
> > foo.setModel(new StringResourceModel("propertyKey"));
>
> Hi folks,
>
> I've pulled the above over from the users@ list.
>
> Is there any reason we don't have constructors for AjaxButton that take
> an IModel to do this?
>
> Regards,
>
> Al
>
> --
> Alastair Maw
> Wicket-biased blog at http://herebebeasties.com
>
--
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.0-beta3 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/
Re: Localize AjaxButton
Posted by Al Maw <wi...@almaw.com>.
Al Maw wrote:
> Tim Lantry wrote:
>> How do you localize the 'label' on an AjaxButton component?
>
> Off the top of my head, try:
>
> AjaxButton foo = new AjaxButton("foo");
> foo.setModel(new StringResourceModel("propertyKey"));
Hi folks,
I've pulled the above over from the users@ list.
Is there any reason we don't have constructors for AjaxButton that take
an IModel to do this?
Regards,
Al
--
Alastair Maw
Wicket-biased blog at http://herebebeasties.com
Re: Localize AjaxButton
Posted by Craig Lenzen <le...@visi.com>.
I think the better way of doing this is;
<input type="button" wicket:id="foo" value="preview"
wicket:message="value:propertyKey"/>
Al Maw wrote:
>
> Tim Lantry wrote:
>> How do you localize the 'label' on an AjaxButton component?
>
> Off the top of my head, try:
>
> AjaxButton foo = new AjaxButton("foo");
> foo.setModel(new StringResourceModel("propertyKey"));
>
>
> Regards,
>
> Al
> --
> Alastair Maw
> Wicket-biased blog at http://herebebeasties.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/Localize-AjaxButton-tf4423210.html#a12619476
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Localize AjaxButton
Posted by Al Maw <wi...@almaw.com>.
Tim Lantry wrote:
> How do you localize the 'label' on an AjaxButton component?
Off the top of my head, try:
AjaxButton foo = new AjaxButton("foo");
foo.setModel(new StringResourceModel("propertyKey"));
Regards,
Al
--
Alastair Maw
Wicket-biased blog at http://herebebeasties.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org