Are you implying that getting a markup's tagbody to be used for the model is not recommended/easy?


On 6/6/06, Eelco Hillenius < [EMAIL PROTECTED]> wrote:
String s = "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";

String name = "Haiku";

add(new Label("foo", s.replace("++name++", name)); // JSE 1.5

..

<div wicket:id="foo"></div>

Or anything fancier. You would probably make a custom model that you
can create with a name, or that works with some other class or model
to fetch the name that is to be used for replacement.

If ${name} instead of ++name++ would work for you, you might consider
taking a look at package ' wicket.util.string.interpolator'.

Eelco



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

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

Reply via email to