Re: Radio buttons in modal window in IE6
Unfortunately I cannot upgrade... :/ -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Radio-buttons-in-modal-window-in-IE6-tp2403103p2532743.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Radio buttons in modal window in IE6
Grafas martynas.jurkus at gmail.com writes: ... But every time I submit that form model object is NAME and in browser radio button jumps from whatever I checked to the first one although I never relaod the radio button part. Only search result container is added to a target to display search results. Hi, I've tried your code but it seems to work. Have you checked security configuration of IE6? Maybe is blocking AJAX requests... Can you check if AJAX works properly using that browser? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Radio buttons in modal window in IE6
Strange... Yes, AJAX work perfectly - we are using AJAX in many places... Also we use other modal windows with forms and text fields, text areas and dropdowns in it and they work just fine... This modal window is the only with radio buttons Andrea, are you using Wicket 1.3.5 for your tests? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Radio-buttons-in-modal-window-in-IE6-tp2403103p2530144.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Radio buttons in modal window in IE6
On 09/07/2010 07:42 PM, Grafas wrote: Strange... Yes, AJAX work perfectly - we are using AJAX in many places... Also we use other modal windows with forms and text fields, text areas and dropdowns in it and they work just fine... This modal window is the only with radio buttons Andrea, are you using Wicket 1.3.5 for your tests? Mmm...nope :), I'm using Wicket 1.4.7 for tests. Con you upgrade your version or are you forced to use 1.3.x release? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Radio buttons in modal window in IE6
I still dont get where I'm wrong... Here's the full code of radio buttons. This code is in a panel which is set as modal window content. JAVA code: - form = new Form(customerSearchForm); add(form); choiseGroup = new RadioGroup(searchParam, new PropertyModel(this, searchParam)); choiseGroup.add(new Radio(p1, new Model(SearchParams.NAME))); choiseGroup.add(new Radio(p2, new Model(SearchParams.CODE))); choiseGroup.add(new Radio(p3, new Model(SearchParams.CIF))); choiseGroup.add(new Radio(p4, new Model(SearchParams.ACC_NUMBER))); choiseGroup.add(new Radio(p5, new Model(SearchParams.CARD_NUMBER))); form.add(choiseGroup); form.add(new TextField(searchString, new PropertyModel(this, searchString))); final WebMarkupContainer container = new WebMarkupContainer(resultContainer); container.setOutputMarkupId(true); add(container); form.add(new IndicatingAjaxButton(search, form) { @Override protected void onSubmit(AjaxRequestTarget target, Form form) { .. doing searching stuff here target.addComponent(container); } }); HTML: -- form wicket:id=customerSearchForm input wicket:id=p1 type=radio class=radiobutton id=p1 checked=checked input wicket:id=p2 type=radio class=radiobutton id=p2 input wicket:id=p3 type=radio class=radiobutton id=p3 input wicket:id=p4 type=radio class=radiobutton id=p4 input wicket:id=p5 type=radio class=radiobutton id=p5 label for=searchString wicket:message key=searchString:Search string:/wicket:message /label input type=text id=searchString wicket:id=searchString /br / input wicket:id=search type=submit value=Search/ /form But every time I submit that form model object is NAME and in browser radio button jumps from whatever I checked to the first one although I never relaod the radio button part. Only search result container is added to a target to display search results. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Radio-buttons-in-modal-window-in-IE6-tp2403103p2528111.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Radio buttons in modal window in IE6
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=modalWinButtonClick 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
Re: Radio buttons in modal window in IE6
Visually I can switch through radio buttons, but, when I submit form - it's always the same value - Hi! Have you tried adding model to RadioGroup? es: RadioGroup choiseGroup = new RadioGroup(searchParam, new Model()); Grafas martynas.jurkus at gmail.com writes: - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Radio buttons in modal window in IE6
Oh, yeah, sorry, the code sample doesn't show it... Sorry about that. Yeah, RadioGroup has model set. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Radio-buttons-in-modal-window-in-IE6-tp2403103p2524455.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org