RE: DropDownChoice in FormComponentPanel

2013-05-20 Thread Paul Bors
al Message- From: Richard W. Adams [mailto:rwada...@up.com] Sent: Monday, May 20, 2013 12:54 PM To: users@wicket.apache.org Subject: RE: DropDownChoice in FormComponentPanel I'm not finished investigating this yet, but my preliminary findings indicate that the solution (at least in my c

RE: DropDownChoice in FormComponentPanel

2013-05-20 Thread Richard W. Adams
Paul Bors To: Date: 05/20/2013 11:35 AM Subject: RE: DropDownChoice in FormComponentPanel Simplest way I can think of is something like: @Override protected void onBeforeRender() { if(isValid()) { dropDown.getFormField().setDefaultModel(getDe

RE: DropDownChoice in FormComponentPanel

2013-05-20 Thread Paul Bors
Simplest way I can think of is something like: @Override protected void onBeforeRender() { if(isValid()) { dropDown.getFormField().setDefaultModel(getDefaultModel()); } ... super.onBeforeRender(); } @Override protected void convertInput() { if(dropdown != null) { setConvertedInp