Re: [Wicket-user] ListView class cast exception

2007-05-24 Thread eddmosphere
Well...DUH to me! :/ Appart from the getUsers method, I was also trying a wrong query to the database.. Anyway, my method has to be something like this.. ... public List getUsers(ResultSet rs) { List retval = new ArrayList(); try { while(rs.next()) { retval.add(

Re: [Wicket-user] ListView class cast exception

2007-05-24 Thread Robert Novotny
Hello, your getUsers() method looks suspicious - it seems to create list of strings (not Users). Particularly, you add Strings retrieved from the resultset into the list. retval.add(rs.getString(1)); Therefore the ListView component gets passed the list of Strings retrieved from the first co

[Wicket-user] ListView class cast exception

2007-05-23 Thread eddmosphere
Hi there! I'm realll getting confused.. I'm trying to create a table with the resultSet from a mysql database (I tried DataView but gave up..too much for me) by using a ListView. The problem is that I keep getting an ClassCastException: java.lang.String. Wicket tells me this happens in the p