Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

Q1. I added behavior (for example a SimpleAttributeModifier) to the ListView but I do not see its results in the output. Why?
Q2. I called ListView#setRenderBodyOnly(falsetrue) but the enclosing tags are still generated. How come?
Q3. My validation messages are cleared. What did I do?

...

Code Block
List list = Arrays.asList(new String[] { "a", "b", "c" });
ListView listview = new ListView("listview", list) {
    protected void populateItem(ListItem item) {
        item.add(new Label("label", item.getModel()));
    }
};
add(listview);

Markup:

Code Block
<span wicket:id="listview">
   this label is: <span wicket:id="label">label</span><br/>
</span>

...