wicket-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrea Del Bene <andrea.on....@libero.it >
Subject Re: Radio buttons in modal window in IE6
Date Fri, 03 Sep 2010 09:55:48 GMT
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">

	<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"/>
			<input type="submit" value="Submit"/>

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",

		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());


		modalWindow.setTitle("This is modal window with panel content.");


		add(new AjaxLink("modalWinButton"){

			public void onClick(AjaxRequestTarget target) {

To test radio buttons submition I printed out choiseGroup model in method
onBeforeRender of parent webPage (like this:
This example seems to work even on IE6 on Windows XP.

I hope my test will help you anyway.

To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org

View raw message