In the body of an HTML, I have something like this:

<div wicket:id="MyDiv" class="ValueToModify">
    Embedded content to be added

I have created a label to be able to modify the content of 'class' as

public class MyDivLabel extends Label {
    protected void onComponentTag(ComponentTag tag) {
        tag.put("class", "The class value I want to set");

In the web page, I add the labels as following:

add(new MyDivLabel("MyDiv","xxx"));
add(new Label("MyEmbedded","My embedded text"));

a) Is it ok to embed Labels like I do?
b) How can I make sure the embedded span will not be replaced by "xxx"?

Thanks !!!
View this message in context: 
Sent from the Wicket - User mailing list archive at Nabble.com.

To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to