You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by "Vladimir V. Bychkov" <vl...@bychkov.name> on 2010/08/18 21:50:41 UTC
Problem AjaxFormChoiceComponentUpdatingBehavior & IE7
Hello. Sorry my bad english.
Component RadioChoice with AjaxFormChoiceComponentUpdatingBehavior has different
behavior in Firefox and IE7. Source:
----------------------------------------------------
public class TestPage extends WebPage
{
private List<Integer> values = Arrays.asList(-1, 1);
private IModel<Integer> model = new Model<Integer>();
public TestPage()
{
RadioChoice choice = new RadioChoice("choice", model, values);
choice.add(new AjaxFormChoiceComponentUpdatingBehavior()
{
@Override
protected void onUpdate(AjaxRequestTarget target)
{
Integer value = model.getObject();
target.appendJavascript("alert('" + value + "')");
}
});
add(choice);
}
}
-------------------------------------------------------------
This page also can be seen at http://www.testit.net.ru/
--
Vladimir Bychkov
www.bychkov.name
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Problem AjaxFormChoiceComponentUpdatingBehavior & IE7
Posted by Alexander <al...@gmail.com>.
I think you should create Form component and attach RadioChoice instance to
in.
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Problem-AjaxFormChoiceComponentUpdatingBehavior-IE7-tp2330305p2330741.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Problem AjaxFormChoiceComponentUpdatingBehavior & IE7
Posted by "William.Bacchi" <wi...@gmail.com>.
Vladimir V. Bychkov wrote:
>
> Hello. Sorry my bad english.
>
> Component RadioChoice with AjaxFormChoiceComponentUpdatingBehavior has
> different
> behavior in Firefox and IE7. Source:
>
>
Adding <form action=""></form> around RadioGroup in the html file works for
me.
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Problem-AjaxFormChoiceComponentUpdatingBehavior-IE7-tp2330305p3171905.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org