Author: ivaynberg Date: Fri Apr 2 16:05:26 2010 New Revision: 930306 URL: http://svn.apache.org/viewvc?rev=930306&view=rev Log: WICKET-2817 make CheckGroup constructor more flexible Issue: WICKET-2817
Modified: wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/markup/html/form/CheckGroup.java Modified: wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/markup/html/form/CheckGroup.java URL: http://svn.apache.org/viewvc/wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/markup/html/form/CheckGroup.java?rev=930306&r1=930305&r2=930306&view=diff ============================================================================== --- wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/markup/html/form/CheckGroup.java (original) +++ wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/markup/html/form/CheckGroup.java Fri Apr 2 16:05:26 2010 @@ -90,9 +90,10 @@ public class CheckGroup<T> extends FormC * @param model * @see WebMarkupContainer#WebMarkupContainer(String, IModel) */ - public CheckGroup(String id, IModel<Collection<T>> model) + @SuppressWarnings("unchecked") + public CheckGroup(String id, IModel<? extends Collection<T>> model) { - super(id, model); + super(id, (IModel<Collection<T>>)model); setRenderBodyOnly(true); }