Not at a computer, but have you tried:

button.add(new SimpleAttributeModifier("value", getString("your.key"));

Or

button.add(new SimpleAttributeModifier("value", new ResourceModel("your.key"));

It may not be called ResourceModel - the name is escaping 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:
     * <b>NOTE</b>. For a <tt>&lt;button&gt;</tt> the <tt>value</tt>
     * attribute is not rendered, markup needs to be added within the button
     * to display the button's label.
     * </p>
however if i add markup the i18n is gone.
i currently use
                <label for="button.send"><wicket:message 
key="buttontxt.send" />:</label>
                <input type="submit" wicket:id="button.send" value="" />
however the internationalized string is added as a label.
is there a way to use i18n in the value attribute of the button tag?

all three don't work, i tried to dig the code, but haven't found a way 
to accomplish:
            submitButton = new Button("button.send",new 
Model(getString("buttontxt.send")));
            submitButton.setLabel(new Model(getString("buttontxt.send")));
            add(submitButton);

regards, nico

> info(getString("your.key"));
>
> Jeremy Thomerson



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to