Grafas <martynas.jurkus <at> gmail.com> writes: > > > Oh, yeah, sorry, the code sample doesn't show it... Sorry about that. > Yeah, RadioGroup has model set.
Hi, I've tried to reproduce your case in my development environment. Here's the HTML I used for test ------- <span wicket:id="modalWin"> </span> <button wicket:id="modalWinButton">Click me!</button> <wicket:fragment wicket:id="modalContent"> <form wicket:id="form" action=""> <div wicket:id="searchParam"> <input type="radio" wicket:id="p1" checked="checked"/> <input type="radio" wicket:id="p2"/> <input type="radio" wicket:id="p3"/> <input type="radio" wicket:id="p4"/> <input type="radio" wicket:id="p5"/> </div> <input type="submit" value="Submit"/> </form> </wicket:fragment> ------- For modal window content I've used a fragment. Here's the Java code: ------- final ModalWindow modalWindow = new ModalWindow("modalWin"); Fragment fragment = new Fragment(modalWindow.getContentId(), "modalContent", this); choiseGroup = new RadioGroup("searchParam", new Model()); choiseGroup.add(new Radio("p1", new Model(2))); choiseGroup.add(new Radio("p2", new Model(3))); choiseGroup.add(new Radio("p3", new Model(4))); choiseGroup.add(new Radio("p4", new Model(5))); choiseGroup.add(new Radio("p5", new Model(6))); Form form = new Form("form", new Model()); form.add(choiseGroup); fragment.add(form); modalWindow.setContent(fragment); modalWindow.setTitle("This is modal window with panel content."); add(modalWindow); add(new AjaxLink("modalWinButton"){ @Override public void onClick(AjaxRequestTarget target) { modalWindow.show(target); } }); --------- To test radio buttons submition I printed out choiseGroup model in method onBeforeRender of parent webPage (like this: System.out.println(choiseGroup.getModel().getObject())). This example seems to work even on IE6 on Windows XP. I hope my test will help you anyway. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org