wicket-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cosmindumy <cosmind...@yahoo.com>
Subject Re: getChoices from ListMultipleChoice
Date Thu, 26 Jul 2012 10:28:54 GMT
Thanks
It helped me. But just another problem. 
I have a customized multiple choice with 2 multiple ListMultipleChoice
inside. and movieng selected choices from each other. 

I have problems with safe cast. 

Here is my class definition: 
public class CusomizedMultipleChoice<T> extends Panel 

Here are the two method I used.

Collection<T> leftChoices = leftChoice.getChoices();
Collection<T> selectedLeftChoices = leftChoice.getModelObject();

The compiler complains at first method. getChoices. Shouldn't return return
a collection of T.  compiler ask me to cast at Collection<T>. Is it safe to
do this?
I checked the wicket sources but couldn't find the cause. 
Is anything wrong?
Thanks. 




--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/getChoices-from-ListMultipleChoice-tp4650725p4650789.html
Sent from the Users forum mailing list archive at Nabble.com.

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


Mime
View raw message