Hi,

I have a problem with ListView in Wicket.
I try to add to the list the label which should display list via 
getGeneral() method.
The label accept only String type and here I have List data type.
Can you advise me please how to solve this problem.

 add(new ListView("category", model) {
private static final long serialVersionUID = 1L;
@Override
 protected void populateItem(ListItem item) {
Content messageduo = (Content)item.getModelObject();
item.add(new Label("GeneralTitle",messageduo.getGeneral()))
}});


I was also trying to solve as follow but I have the same problem.
 RepeatingView rv = new RepeatingView("repeater");
add(rv);
WebMarkupContainer parent = new WebMarkupContainer("general");
parent.add(new Label("general",message1.getGeneral()));


Best regards,
Rafal


-- 
You received this message because you are subscribed to the Google
Groups "Java EE (J2EE) Programming with Passion!" group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en

Reply via email to