see wicket.markup.transformer package, you can write a transformer that will do the replcement for you. keep in mind this is not the most efficient solution because wicket has to buffer the rendered output of the tag so that the transformer can change it instead of directly streaming it into response - so you take a small hit

another solution would be to read the raw markup from the markup stream and do what the label does, call replacecomponentbody but this is a bit more advanced

-Igor


On 6/3/06, nato <[EMAIL PROTECTED]> wrote:
For example, I have this in my markup:

<div wicket:id="foo">
Hello, ++name++. Do you know that your name which is ++name++ is very beautiful? The ++name++ is a Japanese word. The meaning of the word ++name++ in Japanese is space.... (50 times more citation of ++name++ here)
</div>


What I want to do with 'foo' is replace all the ++name++ occurrences with another word; so, my problem is how can I get the tagbody of 'foo' and render it with all the ++name++ occurences replaced?

--------
Thanks for the help.
--------




_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user



_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to