our jira is a much better place for bug reports....issues.apache.org
-igor
On Tue, May 20, 2008 at 11:12 AM, jfowler06 <[EMAIL PROTECTED]> wrote:
>
> AjaxFormComponentUpdatingBehavior works with Firefox, but not IE7.
> The error in the wicket debug window is: Could not locate ajax transport.
> Your browser does not support the required XMLHttpRequest object or wicket
> could not gain access to it.
>
> I created this simple example to demonstrate the issue:
>
> Example.java
> ============================================================
> package example.page;
>
> import org.apache.wicket.ajax.AjaxRequestTarget;
> import org.apache.wicket.ajax.form.AjaxFormComponentUpdatingBehavior;
> import org.apache.wicket.markup.html.WebPage;
> import org.apache.wicket.markup.html.basic.Label;
> import org.apache.wicket.markup.html.form.Form;
> import org.apache.wicket.markup.html.form.TextField;
> import org.apache.wicket.model.CompoundPropertyModel;
> import org.apache.wicket.model.PropertyModel;
>
> public class Example extends WebPage {
> private int age;
>
> public Example() {
> Form form = new Form("form", new CompoundPropertyModel(this));
> add(form);
>
> final Label label = new Label("label", new PropertyModel(this,
> "age"));
> label.setOutputMarkupId(true);
> add(label);
>
> final TextField age = new TextField("age");
> age.add(new AjaxFormComponentUpdatingBehavior("onblur") {
>
> /**
> *
> */
> private static final long serialVersionUID = 1L;
>
> protected void onUpdate(AjaxRequestTarget target) {
> System.out.println("onUpdate triggered");
> target.addComponent(label);
> }
>
> });
> form.add(age);
> }
>
> public int getAge() {
> return age;
> }
>
> public void setAge(int age) {
> this.age = age;
> }
>
> }
>
> Example.html
> ==================================================
> <html>
> <head>
> <title>Test</title>
> </head>
> <body>
>
> <div>
> <label wicket:id="label">My Label Goes Here</label>
> </div>
> <form wicket:id="form">
> <div>Age: <input type="text" wicket:id="age" /></div>
> <div>
> <input type="submit" value="Submit" />
> </div>
> </form>
> </body>
> </html>
>
> Thanks,
> Jarmar Fowler
>
> --
> View this message in context:
> http://www.nabble.com/AjaxFormComponentUpdatingBehavior-not-working-in-IE7-using-Wicket-1.3.3-tp17346965p17346965.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]