Re: Radio buttons in modal window in IE6

2010-09-09 Thread Grafas

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

2010-09-07 Thread andrea del bene

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

2010-09-07 Thread Grafas

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

2010-09-07 Thread Andrea Del Bene
Grafas  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

2010-09-06 Thread Grafas

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:
--










:Search 
string:





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

2010-09-03 Thread Andrea Del Bene
Grafas  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

---



Click me!













---

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

2010-09-02 Thread Grafas

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



Re: Radio buttons in modal window in IE6

2010-09-02 Thread Andrea Del Bene
> 
> 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  gmail.com> writes:



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



Radio buttons in modal window in IE6

2010-09-01 Thread Grafas

Hi all,
We have few radio buttons put in a form in a modal window. And we have a
problem with them.
When IN IE6 form in modal window is submitted we always get firstly added
radio button to the group.

<...>
>From form = new Form("form", new CompoundPropertyModel(new SearchModel()));
add(form);

RadioGroup choiseGroup = new RadioGroup("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);
<...>

Visually I can switch through radio buttons, but, when I submit form - it's
always the same value - NAME. But only on IE6. Everything works on IE7+, FF
etc. And of course we need IE6 and nothing else :/
As if other radio buttons does not exist.

Am I doing something wrong? Or is there workaround? Or smth? I'm desperate. 


-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Radio-buttons-in-modal-window-in-IE6-tp2403103p2403103.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