String[] bO = (String[])(new Object[]{"yes","we","can"});
Regards - Cemal http://www.jWeekend.co.uk http://jWeekend.co.uk Timo Rantalaiho wrote: > > On Thu, 27 Nov 2008, Valentine2008 wrote: >> java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to >> [Lorg.apache >> .wicket.Component; >> at >> org.apache.wicket.MarkupContainer.iterator(MarkupContainer.java:478) >> ......... >> >> The code on line 478 of MarkupContainer.java is: >> sorted = Arrays.asList((Component[])children); >> >> Is it a bug of Wicket? > > No, I think it's a limitation of Java. You cannnot cast > arrays. > > Best wishes, > Timo > > -- > Timo Rantalaiho > Reaktor Innovations Oy <URL: http://www.ri.fi/ > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Bug-of-Wicket-when-iterate-the-form-using-iterator%28%29--tp20723903p20735617.html Sent from the Wicket - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]