I have problems with radio groups. According to docs and tutorials the group's model object should be set to the selected radio model object. However, in my case (using enum values which must be set on an enum property) the group's model object always seems to be null. I based my code on the tutorial at http://cwiki.apache.org/WICKET/using-radiogroups.html
My code below produces.. test was pressed:null, null, Tenant, CompanyTenant // RadioGroup group = new RadioGroup("reportType", new PropertyModel(getReportTenantDTO(), "reportType")); Radio radIndividual = new Radio("individual", new Model(ReportType.Tenant)); Radio radCompany = new Radio("company", new Model(ReportType.CompanyTenant)); group.add(radIndividual); Button test = new Button("test"){ protected void onSubmit(){ info("test was pressed:" + getReportTenantDTO().getReportType() + ", " + group.getModelObject() + ", " + radIndividual.getModelObject() + ", " + radCompany.getModelObject()); } }; -- View this message in context: http://www.nabble.com/RadioGroup..-Correct-usage-%28with-enum-values%29--tf3685397.html#a10301382 Sent from the Wicket - User mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user