I'm still unable to reproduce. Last thing I tried is this:

Index: 
/Users/eelcohillenius/Documents/workspace/wicket-examples-1.2/src/java/wicket/examples/forminput/FormInput.html
===================================================================
--- 
/Users/eelcohillenius/Documents/workspace/wicket-examples-1.2/src/java/wicket/examples/forminput/FormInput.html
     (revision
7183)
+++ 
/Users/eelcohillenius/Documents/workspace/wicket-examples-1.2/src/java/wicket/examples/forminput/FormInput.html
     (working
copy)
@@ -29,6 +29,7 @@
                          <label wicket:id="dateLabel" 
for="dateProperty">Date</label>
                          <input wicket:id="dateProperty" id="dateProperty" 
type="text" size="40"/>
                          <span wicket:id="datePicker"></span>
+                         <a href="#" wicket:id="ajaxLink">refresh data 
picker</a>
                  <label>Listview in a Form</label>                     
                          <ul>
                           <li wicket:id="lines">
Index: 
/Users/eelcohillenius/Documents/workspace/wicket-examples-1.2/src/java/wicket/examples/forminput/FormInput.java
===================================================================
--- 
/Users/eelcohillenius/Documents/workspace/wicket-examples-1.2/src/java/wicket/examples/forminput/FormInput.java
     (revision
7183)
+++ 
/Users/eelcohillenius/Documents/workspace/wicket-examples-1.2/src/java/wicket/examples/forminput/FormInput.java
     (working
copy)
@@ -24,6 +24,8 @@
 import java.util.List;
 import java.util.Locale;

+import wicket.ajax.AjaxRequestTarget;
+import wicket.ajax.markup.html.AjaxLink;
 import wicket.examples.WicketExamplePage;
 import wicket.extensions.markup.html.datepicker.DatePicker;
 import wicket.markup.html.WebMarkupContainer;
@@ -67,7 +69,7 @@
        /** Relevant locales wrapped in a list. */
        private static final List LOCALES = Arrays.asList(new Locale[] {
Locale.ENGLISH,
                        new Locale("nl"), Locale.GERMAN, 
Locale.SIMPLIFIED_CHINESE, Locale.JAPANESE,
-                       new Locale("pt", "BR"), new Locale("fa", "IR"), new 
Locale("da", "DK")});
+                       new Locale("pt", "BR"), new Locale("fa", "IR"), new 
Locale("da", "DK") });

        /** available numbers for the radio selection. */
        static final List NUMBERS = Arrays.asList(new String[] { "1", "2", "3" 
});
@@ -144,9 +146,20 @@
                        // do without labels
                        WebMarkupContainer dateLabel = new 
WebMarkupContainer("dateLabel");
                        add(dateLabel);
-                       TextField datePropertyTextField = new 
TextField("dateProperty", Date.class);
+                       final TextField datePropertyTextField = new
TextField("dateProperty", Date.class);
                        add(datePropertyTextField);
-                       add(new DatePicker("datePicker", dateLabel, 
datePropertyTextField));
+                       final DatePicker datePicker = new 
DatePicker("datePicker",
dateLabel, datePropertyTextField);
+                       add(datePicker);
+                       add(new AjaxLink("ajaxLink")
+                       {
+                               public void onClick(AjaxRequestTarget target)
+                               {
+                                       FormInputModel m = 
(FormInputModel)InputForm.this.getModelObject();
+                                       m.setDateProperty(new Date());
+                                       
target.addComponent(datePropertyTextField);
+                                       target.addComponent(datePicker);
+                               }
+                       });
                        add(new RequiredTextField("integerInRangeProperty",
Integer.class).add(NumberValidator
                                        .range(0, 100)));
                        add(new CheckBox("booleanProperty"));


But that doesn't stall the page either (tested with Camino and Opera 9)


Eelco

On 9/1/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> Luly can you confirm this only happens with IE/ Opera or does it also
> happen with e.g. Firefox?
>
> Eelco
>
>
> On 9/1/06, Matej Knopp <[EMAIL PROTECTED]> wrote:
> > I guess I might know what's causing it. It's not the header contribution
> > code. It's the initialization code.
> >
> > the thing is that prior 1.2.2 no javascript in the
> > <component></component> was executed. When setting outerhtml in Internet
> > explorer the javascript in the outer html is not executed. This is also
> > true for opera.
> >
> > In 1.2.2 there is a workaround so that the javascript is executed. This
> > might cause the calendar initialized twice (or more) for same control.
> > Which could cause the deadlock. So the solution might be to make the
> > initializing javascript check whether it was already initialized for
> > given component or not.
> >
> > Other than this, I don't know what could be causing this behavior.
> >
> > -Matej
> >
> > Iuly wrote:
> > > I've repoduced also this java script error in the following context :
> > > Here is the ajax context and also component hierarchy involved.
> > > So in my page I have a main container which extends Border component. I've
> > > set on this container
> > > setOutputMarkupId(true). Let's name this container A.
> > > Panel(extends Panel component) that contains DatePicker component is child
> > > of A.
> > > This child defines a form component that has 2 DatePicker components 
> > > inside
> > > and associated inputs and also other inputs. Let's name the child of 
> > > border
> > > container B.
> > > I've called also on form on B setOutputMarkupId(true).
> > >
> > > First time when the page is rendered all inputs from B are disabled(using
> > > AttributeModifier) and both DatePicker components work properly.
> > > I have also a AjaxSubmitButton that enables all the inputs from B.
> > > Clicking on it inputs became enabled (I am using here AttributeModifier),
> > > but both
> > > DatePicker components generate that java script error.
> > > What I'm doing in onSubmit method of that AjaxSubmitButton is the 
> > > following
> > > :
> > > target.addComponent(A);
> > >
> > >
> > > samyem wrote:
> > >> I keep getting this error on the Date Picker:
> > >>
> > >> Error: too much recursion
> > >> Source File:
> > >> http://localhost:8081/mm/app/resources/wicket.extensions.markup.html.datepicker.DatePicker/calendar.js
> > >> Line: 1796
> > >>
> > >> See my source code for the HTML generated in my browser:
> > >>  http://www.nabble.com/user-files/235808/problem.txt problem.txt
> > >>
> > >> I can see that the calendar.js is included several times, probably each
> > >> one for every time I ajax-refresh the panel with the date picker. Also,
> > >> there is a big mess generated in the HTML with tons of &amp;nbsp; . Is
> > >> this my fault or something wrong with wicket? I am using the latest 
> > >> wicket
> > >> from SVN.
> > >>
> > >
> >
> >
> > -------------------------------------------------------------------------
> > Using Tomcat but need to do more? Need to support web services, security?
> > Get stuff done quickly with pre-integrated technology to make your job 
> > easier
> > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > _______________________________________________
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to