Hi , maybe somebody can help me. I have form with radiogroup holding ListView of posibble models ...
When the the form is first loaded textFields are filled well, but when I click the radio button(round trip is made), variable selectedSystem is updated but textfields are not. I tried different methods in onSelectionChanged method like process(), processInput() but nothing leads in good result. What I am doing wrong ? Any help will be appreciated. public class MyForm extends Form { private List<InterfaceSystemModel> systems; private InterfaceSystemModel selectedSystem; public MyForm() { selectedSystem = systems.get(0); interfaceSystemRadioGroup = new RadioGroup("interfaceSystemRadioGroup", new PropertyModel(this,"selectedSystem")) { @Override protected boolean wantOnSelectionChangedNotifications() { return true; } @Override protected void onModelChanging() { // unselection old value selectedSystem.setSelected(false); } @Override protected void onSelectionChanged(Object arg0) { } interfacesSystemsTable = new ListView("interfaceSystems", systems) { @Override protected void populateItem(final ListItem item) { final InterfaceSystemModel model = (InterfaceSystemModel)item.getModelObject(); item.add(new Radio("interfaceSystemsRadio",model.getModel())); item.add(new Label("system_name",model.getName())); item.add(new Label("description",model.getDescription())); } }; TextField nameTextField = new TextField("name",new PropertyModel(selectedSystem,"name")); TextField descTextField = new TextField("desc",new PropertyModel(selectedSystem,"desc")); add(interfaceSystemRadioGroup.add(interfacesSystemsTable)); add(nameTextField); add(descTextField); } -- View this message in context: http://www.nabble.com/Updating-formComponents-on-round-trip-tf3770603.html#a10660535 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