Set with PageableListView

Mon, 29 Nov 2010 22:23:42 -0800

Hi 

I have a question related to using a collection (Set) within a
PageableListView. At runtime I get an exception 

java.lang.ClassCastException: org.hibernate.collection.PersistentSet cannot
be cast to java.util.List
at org.apache.wicket.markup.html.list.ListView.getList(ListView.java:177)

The entity structure is like this

public class Subject{

  String firstName;
  Set<Phone> phones;
}

I guess it expects only a List type object. I can work around this by
converting the Set into a List and then provide it but felt somehow this is
a limitation. How can I work with generic collections?

Any thoughts much appreciated

thank you
Regards





-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Set-Object-with-PageableListView-tp3064906p3064906.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to