Johan Compagner wrote:
i can live with:

<wicket:message key="..">Default Text</wicket:message>

This makes sense.

<input type="button" value="message:key=my-key"/>

I don't think this one does. It breaks the previewability of pages which is one of Wicket's hallmarks.

How about something like

<input type="button" value="My Val" wicket:attr="value:message:my-key"/>

or

    wicket:i18n="value:my-key"

Wicket could then replace the value attribute entirely, but the preview is still available.

This could also contain a comma-separated list of attribute-name/attribute-value-keys if there are multiple attributes to replace (not that I can think of a use-case right now...)

  -- Scott



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to