lets keep our html modifications only to components and tags in wicket namespace. Its pretty easy to create a webmarkupcontainer that will do this replace.
-Igor
On 11/9/05, Johan Compagner <[EMAIL PROTECTED]> wrote:
i can live with:
<wicket:message key="..">Default Text</wicket:message>
and
<input type="button" value="message:key=my-key"/>
But i think the second one will be pretty hard.
Because then we have to parse the complete xml and see if in any attribute something starts with message:key
even for non wicket tags as above?
johan
On 11/9/05, Andrew Berman <[EMAIL PROTECTED] > wrote:Oh and the other nice feature would be that if you do it like this: <wicket:message key="..">My Text</wicket> that the My Text would be the default text if the key is not found.On 11/9/05, Andrew Berman <[EMAIL PROTECTED]> wrote:Well, I guess not being able to do it in _javascript_ would be ok, but I think there definitely needs to be a way to do it in attributes.
Here is the link for how Tapestry 4.0 does it: http://jakarta.apache.org/tapestry/UsersGuide/localization.html
--AndrewOn 11/9/05, Juergen Donnerstag < [EMAIL PROTECTED]> wrote:On 11/9/05, Andrew Berman < [EMAIL PROTECTED]> wrote:
> I like <wicket:message key=".."/> as long as it would work how normal JSP
> tags currently work. In other words, I would be able to do this:
>
> <input type="button" value="<wicket:message key='labelKey'/>"/>
>
> or
>
> <script>
> alert("<wicket:message key='labelKey'/>");
> </script>
>
No, that was not the intend and I don't like it either.
<wicket:message ..> would be a normal XML tag. To retrieve a i18n
message for a tag attribute I'd go for <input type="button"
value="message:key='labelKey'/>"/>.
The following is a bit tricky and I'm not sure how well it'll realy
work, because you kind of have to analyze JS.
<script>
alert("message:key='labelKey'/>");
</script>
Juergen
-------------------------------------------------------
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