Re: [Wicket-user] ListView updated twice in IE6 (Was : Ajax Submit default to Non Ajax Submit ?)

2006-08-11 Thread Pierre-Yves Saumont
I finally find what caused the problem: I knew that for the example to 
work as standalone, one must call setOutputMarkup(true) on the ListView 
container. What I did not know is that if the example is embeded in an 
Ajax TabbedPanel, the Form used to update the ListView must also have 
setOutputMarkup(true) called on it. If not, the form id use colons as 
separators instead of undersores, and the Javascript function receives a 
null form.

Pierre-Yves

Igor Vaynberg a écrit :
 if there is nothing in the ajax debug window then a request is never 
 made so the javascript doesnt execute. are there javascript errors?
 
 is the update performed by a self updating timer behavior?  if so it 
 will not be executed if the listview itself is shown as a result of ajax 
 update unless you use a version of wicket after 1.2.1 like 1.2.2 or 
 trunk from WICKET_1_2 branch.
 
 -Igor
 
 
 On 8/10/06, *Pierre-Yves Saumont* [EMAIL PROTECTED] mailto:[EMAIL 
 PROTECTED] 
 wrote:
 
 I am sorry, I just hit reply and although sometimes it goes to the list,
 sometimes not :-(
 
 I tried to use the enclosing tab as the target, as well as the panel
 that was used in the standalone version. In either case, absolutely
 nothing happens. And nothing is displayed in the Ajax Debug Windows. Is
 there a way to track what is happening ?
 
 Pierre-Yves
 
 Igor Vaynberg a écrit :
   a tab is by istelf a panel, set the ajax target to the panel
 itself. and
   please do continue this on the list so that others can also
 benefit from
   the discussion.
  
   -Igor
  
  
   On 8/10/06, *Pierre-Yves Saumont* [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL 
 PROTECTED]
   wrote:
  
   Attaching the markup container to the table tag instead of
 the tbody
   works in both Firefox and IE. Now, what I need it to use the
 ListView as
   a component of a tab in a tabbed panel. The tabbed panel is
 using ajax
   to switch tabs.
  
   The tabbed panel works fine. The ListView now works fine too as a
   standalone example.
  
   But when I put the ListView in the tab, it don't work
 anymore. I tried
   to put it in the first tab (the one which is displayed by
 default, not
   using ajax) but it don't work neither.
  
   Should I continue searching or is this impossible ? Should I
 use the
   whole tab as a target ? Or is it possible to use the same markup
   container attached to the table html tag ?
  
   Pierre-Yves
  
   Igor Vaynberg a écrit :
 you cannot update listview directly because
 a) listview itself has no markup - it lets the children
 use its
   markup
 b) you cannot update tr/tbody/etc tags via outerhtml which is
   what we do
 and when you try you get the very helpful runtime error

 you have to create a markupcontainer around the listview
 that is
 preferrably attached to the table tag and update that instead.


 -Igor


 On 8/10/06, * Pierre-Yves Saumont* [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
   mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL 
 PROTECTED]
 mailto:[EMAIL PROTECTED]
 wrote:

 I eventually could not reproduce the problem in a test
 case.
   However, I
 have been able (??) to produce another problem of the same
   kind, ie
 something that does not work the same in IE6 and
 Firefox. In
   fact, it
 works fine in FireFox and produces an error in IE6. The
   example is a
 ListView that is updated through Ajax. No problem in
 Firefox.
   In IE6,
 the Ajax Debug Windows displays :

 ERROR: error while processing response: [object
 Error].Erreur
 d'exécution inconnue
   INFO: invoking failure handler...

 (The part which is in french means unknown runtime
 error)

 Do you want me to send the test case ? If you do, can you
   tell me what
 to send exactly ? A self contained working archive of the
   quickstart
 project is about 3Mb. Is that OK ?

 Pierre-Yves

 Johan Compagner a écrit :
   do you have a simple test case in a quickstart
 project?
  
  
   On 8/10/06, *Pierre-Yves Saumont*  [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
 

Re: [Wicket-user] ListView updated twice in IE6 (Was : Ajax Submit default to Non Ajax Submit ?)

2006-08-11 Thread Johan Compagner
can wicket do something to improve this?On 8/11/06, Pierre-Yves Saumont [EMAIL PROTECTED] wrote:
I finally find what caused the problem: I knew that for the example towork as standalone, one must call setOutputMarkup(true) on the ListViewcontainer. What I did not know is that if the example is embeded in an
Ajax TabbedPanel, the Form used to update the ListView must also havesetOutputMarkup(true) called on it. If not, the form id use colons asseparators instead of undersores, and the _javascript_ function receives a
null form.
-
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=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ListView updated twice in IE6 (Was : Ajax Submit default to Non Ajax Submit ?)

2006-08-11 Thread Igor Vaynberg
yes, we can ditch : as the default separator and use something else like an underscore.-IgorOn 8/11/06, Johan Compagner 
[EMAIL PROTECTED] wrote:can wicket do something to improve this?
On 8/11/06, Pierre-Yves Saumont 
[EMAIL PROTECTED] wrote:
I finally find what caused the problem: I knew that for the example towork as standalone, one must call setOutputMarkup(true) on the ListViewcontainer. What I did not know is that if the example is embeded in an

Ajax TabbedPanel, the Form used to update the ListView must also havesetOutputMarkup(true) called on it. If not, the form id use colons asseparators instead of undersores, and the _javascript_ function receives a

null form.

-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=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://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=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ListView updated twice in IE6 (Was : Ajax Submit default to Non Ajax Submit ?)

2006-08-10 Thread Pierre-Yves Saumont
Hello,

After spending the night testing, it appears that there are two 
different problems :

1) The Ajax handler - onSubmit(AjaxRequestTarget target, Form form) - is 
not called and Wicket default to onSubmit() if is is present. I can't 
see why Ajax does not work for this form, since it works for all the 
other cases I have tried. I have tried the Ajax form example with no 
problem. I have implemented an Ajax  tabbed panel that work fine. The 
only thing I can see is that the Ajax form is inside a tab from the 
tabbed panel. Could this be a problem ? (If I put the Ajax form example, 
which work as standalone, inside a tab, it does not work either, 
defaulting to normal submit)

2) I setup a ListView exactly as Igor indicated using this construction :

 IModel listModel=new LoadableDetachableModel() {
 protected Object load() {
 return DataObjectsFactory.getMyObjectList();
}};

For testing, I set the getMyObjectList() to add an object to the list 
each time it is called.

Then, I add an objet by using the form. In Firefox, the list is updated 
(but not through Ajax !) and two objects are added (one from the form 
and one from the getMyObjectList() itself.

In IE6, THREE objects are added because getMyObjectList() is called 
twice : once before adding the object from the file and once after. The 
end result is the list contains two more object from the method and one 
from the form.

Isn't that surprising ?

Pierre-Yves

Pierre-Yves Saumont a écrit :
 Hello,
 
 I am still trying to make my Ajax form working, with no success until 
 now. I have made a simple example that works in a standalone page. I 
 have then copied this example in a page of my app, and it don't work.
 
 What is surprising is that no code in the Ajax OnSubmit handler is 
 executed, although the result component is updated with the values form 
 the form. As the page is also flashing in the browser, my guess is that 
 if Ajax submit don't work, Wicket default to non Ajax submit with the 
 page redisplaying. Is that right?
 
 If it is, can you give me some indications about why an Ajax submit 
 handler that work in a page would not work in another one?
 
 Thanks,
 
 Pierre-Yves
 
 
 -
 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=lnkkid=120709bid=263057dat=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=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ListView updated twice in IE6 (Was : Ajax Submit default to Non Ajax Submit ?)

2006-08-10 Thread Johan Compagner
do you have a simple test case in a quickstart project?On 8/10/06, Pierre-Yves Saumont [EMAIL PROTECTED] wrote:
Hello,After spending the night testing, it appears that there are twodifferent problems :
1) The Ajax handler - onSubmit(AjaxRequestTarget target, Form form) - isnot called and Wicket default to onSubmit() if is is present. I can'tsee why Ajax does not work for this form, since it works for all the
other cases I have tried. I have tried the Ajax form example with noproblem. I have implemented an Ajaxtabbed panel that work fine. Theonly thing I can see is that the Ajax form is inside a tab from thetabbed panel. Could this be a problem ? (If I put the Ajax form example,
which work as standalone, inside a tab, it does not work either,defaulting to normal submit)2) I setup a ListView exactly as Igor indicated using this construction : IModel listModel=new LoadableDetachableModel() {
 protected Object load() { return DataObjectsFactory.getMyObjectList();}};For testing, I set the getMyObjectList() to add an object to the listeach time it is called.
Then, I add an objet by using the form. In Firefox, the list is updated(but not through Ajax !) and two objects are added (one from the formand one from the getMyObjectList() itself.In IE6, THREE objects are added because getMyObjectList() is called
twice : once before adding the object from the file and once after. Theend result is the list contains two more object from the method and onefrom the form.Isn't that surprising ?Pierre-Yves
Pierre-Yves Saumont a écrit : Hello, I am still trying to make my Ajax form working, with no success until now. I have made a simple example that works in a standalone page. I have then copied this example in a page of my app, and it don't work.
 What is surprising is that no code in the Ajax OnSubmit handler is executed, although the result component is updated with the values form the form. As the page is also flashing in the browser, my guess is that
 if Ajax submit don't work, Wicket default to non Ajax submit with the page redisplaying. Is that right? If it is, can you give me some indications about why an Ajax submit handler that work in a page would not work in another one?
 Thanks, Pierre-Yves - 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=lnkkid=120709bid=263057dat=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 easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://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=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ListView updated twice in IE6 (Was : Ajax Submit default to Non Ajax Submit ?)

2006-08-10 Thread Pierre-Yves Saumont
I eventually could not reproduce the problem in a test case. However, I 
have been able (??) to produce another problem of the same kind, ie 
something that does not work the same in IE6 and Firefox. In fact, it 
works fine in FireFox and produces an error in IE6. The example is a 
ListView that is updated through Ajax. No problem in Firefox. In IE6, 
the Ajax Debug Windows displays :

ERROR: error while processing response: [object Error].Erreur 
d'exécution inconnue
  INFO: invoking failure handler...

(The part which is in french means unknown runtime error)

Do you want me to send the test case ? If you do, can you tell me what 
to send exactly ? A self contained working archive of the quickstart 
project is about 3Mb. Is that OK ?

Pierre-Yves

Johan Compagner a écrit :
 do you have a simple test case in a quickstart project?
 
 
 On 8/10/06, *Pierre-Yves Saumont* [EMAIL PROTECTED] mailto:[EMAIL 
 PROTECTED] 
 wrote:
 
 Hello,
 
 After spending the night testing, it appears that there are two
 different problems :
 
 1) The Ajax handler - onSubmit(AjaxRequestTarget target, Form form) - is
 not called and Wicket default to onSubmit() if is is present. I can't
 see why Ajax does not work for this form, since it works for all the
 other cases I have tried. I have tried the Ajax form example with no
 problem. I have implemented an Ajax  tabbed panel that work fine. The
 only thing I can see is that the Ajax form is inside a tab from the
 tabbed panel. Could this be a problem ? (If I put the Ajax form
 example,
 which work as standalone, inside a tab, it does not work either,
 defaulting to normal submit)
 
 2) I setup a ListView exactly as Igor indicated using this
 construction :
 
  IModel listModel=new LoadableDetachableModel() {
  protected Object load() {
  return DataObjectsFactory.getMyObjectList();
 }};
 
 For testing, I set the getMyObjectList() to add an object to the list
 each time it is called.
 
 Then, I add an objet by using the form. In Firefox, the list is updated
 (but not through Ajax !) and two objects are added (one from the form
 and one from the getMyObjectList() itself.
 
 In IE6, THREE objects are added because getMyObjectList() is called
 twice : once before adding the object from the file and once after. The
 end result is the list contains two more object from the method and one
 from the form.
 
 Isn't that surprising ?
 
 Pierre-Yves
 
 Pierre-Yves Saumont a écrit :
   Hello,
  
   I am still trying to make my Ajax form working, with no success until
   now. I have made a simple example that works in a standalone page. I
   have then copied this example in a page of my app, and it don't
 work.
  
   What is surprising is that no code in the Ajax OnSubmit handler is
   executed, although the result component is updated with the
 values form
   the form. As the page is also flashing in the browser, my guess
 is that
   if Ajax submit don't work, Wicket default to non Ajax submit with the
   page redisplaying. Is that right?
  
   If it is, can you give me some indications about why an Ajax submit
   handler that work in a page would not work in another one?
  
   Thanks,
  
   Pierre-Yves
  
  
  
 -
   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=lnkkid=120709bid=263057dat=121642
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
 mailto: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=lnkkid=120709bid=263057dat=121642
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 



Re: [Wicket-user] ListView updated twice in IE6 (Was : Ajax Submit default to Non Ajax Submit ?)

2006-08-10 Thread Igor Vaynberg
you cannot update listview directly because a) listview itself has no markup - it lets the children use its markupb) you cannot update tr/tbody/etc tags via outerhtml which is what we do and when you try you get the very helpful runtime error
you have to create a markupcontainer around the listview that is preferrably attached to the table tag and update that instead.-IgorOn 8/10/06, 
Pierre-Yves Saumont [EMAIL PROTECTED] wrote:
I eventually could not reproduce the problem in a test case. However, Ihave been able (??) to produce another problem of the same kind, iesomething that does not work the same in IE6 and Firefox. In fact, itworks fine in FireFox and produces an error in IE6. The example is a
ListView that is updated through Ajax. No problem in Firefox. In IE6,the Ajax Debug Windows displays :ERROR: error while processing response: [object Error].Erreurd'exécution inconnueINFO: invoking failure handler...
(The part which is in french means unknown runtime error)Do you want me to send the test case ? If you do, can you tell me whatto send exactly ? A self contained working archive of the quickstart
project is about 3Mb. Is that OK ?Pierre-YvesJohan Compagner a écrit : do you have a simple test case in a quickstart project? On 8/10/06, *Pierre-Yves Saumont* 
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hello, After spending the night testing, it appears that there are two different problems :
 1) The Ajax handler - onSubmit(AjaxRequestTarget target, Form form) - is not called and Wicket default to onSubmit() if is is present. I can't see why Ajax does not work for this form, since it works for all the
 other cases I have tried. I have tried the Ajax form example with no problem. I have implemented an Ajaxtabbed panel that work fine. The only thing I can see is that the Ajax form is inside a tab from the
 tabbed panel. Could this be a problem ? (If I put the Ajax form example, which work as standalone, inside a tab, it does not work either, defaulting to normal submit)
 2) I setup a ListView exactly as Igor indicated using this construction :IModel listModel=new LoadableDetachableModel() {protected Object load() {
return DataObjectsFactory.getMyObjectList(); }}; For testing, I set the getMyObjectList() to add an object to the list each time it is called.
 Then, I add an objet by using the form. In Firefox, the list is updated (but not through Ajax !) and two objects are added (one from the form and one from the getMyObjectList() itself.
 In IE6, THREE objects are added because getMyObjectList() is called twice : once before adding the object from the file and once after. The end result is the list contains two more object from the method and one
 from the form. Isn't that surprising ? Pierre-Yves Pierre-Yves Saumont a écrit : Hello, I am still trying to make my Ajax form working, with no success until
 now. I have made a simple example that works in a standalone page. I have then copied this example in a page of my app, and it don't work. What is surprising is that no code in the Ajax OnSubmit handler is
 executed, although the result component is updated with the values form the form. As the page is also flashing in the browser, my guess is that if Ajax submit don't work, Wicket default to non Ajax submit with the
 page redisplaying. Is that right? If it is, can you give me some indications about why an Ajax submit handler that work in a page would not work in another one?
 Thanks, Pierre-Yves -
 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=lnkkid=120709bid=263057dat=121642
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___
 Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:
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=lnkkid=120709bid=263057dat=121642 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:
Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
 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 

Re: [Wicket-user] ListView updated twice in IE6 (Was : Ajax Submit default to Non Ajax Submit ?)

2006-08-10 Thread Pierre-Yves Saumont
 you cannot update listview directly because
 a) listview itself has no markup - it lets the children use its markup

I know this because I made some research on the list archive and found 
one of your post where you explained this problem ;-)

 b) you cannot update tr/tbody/etc tags via outerhtml which is what we do 
 and when you try you get the very helpful runtime error

I do not get any error in Firefox although I update tbody !
 
 you have to create a markupcontainer around the listview that is 
 preferrably attached to the table tag and update that instead.

I will try this !

Thanks,

Pierre-Yves
 
 
 -Igor
 
 
 On 8/10/06, * Pierre-Yves Saumont* [EMAIL PROTECTED] mailto:[EMAIL 
 PROTECTED] 
 wrote:
 
 I eventually could not reproduce the problem in a test case. However, I
 have been able (??) to produce another problem of the same kind, ie
 something that does not work the same in IE6 and Firefox. In fact, it
 works fine in FireFox and produces an error in IE6. The example is a
 ListView that is updated through Ajax. No problem in Firefox. In IE6,
 the Ajax Debug Windows displays :
 
 ERROR: error while processing response: [object Error].Erreur
 d'exécution inconnue
   INFO: invoking failure handler...
 
 (The part which is in french means unknown runtime error)
 
 Do you want me to send the test case ? If you do, can you tell me what
 to send exactly ? A self contained working archive of the quickstart
 project is about 3Mb. Is that OK ?
 
 Pierre-Yves
 
 Johan Compagner a écrit :
   do you have a simple test case in a quickstart project?
  
  
   On 8/10/06, *Pierre-Yves Saumont*  [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL 
 PROTECTED]
   wrote:
  
   Hello,
  
   After spending the night testing, it appears that there are two
   different problems :
  
   1) The Ajax handler - onSubmit(AjaxRequestTarget target, Form
 form) - is
   not called and Wicket default to onSubmit() if is is present.
 I can't
   see why Ajax does not work for this form, since it works for
 all the
   other cases I have tried. I have tried the Ajax form example
 with no
   problem. I have implemented an Ajax  tabbed panel that work
 fine. The
   only thing I can see is that the Ajax form is inside a tab
 from the
   tabbed panel. Could this be a problem ? (If I put the Ajax form
   example,
   which work as standalone, inside a tab, it does not work either,
   defaulting to normal submit)
  
   2) I setup a ListView exactly as Igor indicated using this
   construction :
  
IModel listModel=new LoadableDetachableModel() {
protected Object load() {
return DataObjectsFactory.getMyObjectList();
   }};
  
   For testing, I set the getMyObjectList() to add an object to
 the list
   each time it is called.
  
   Then, I add an objet by using the form. In Firefox, the list
 is updated
   (but not through Ajax !) and two objects are added (one from
 the form
   and one from the getMyObjectList() itself.
  
   In IE6, THREE objects are added because getMyObjectList() is
 called
   twice : once before adding the object from the file and once
 after. The
   end result is the list contains two more object from the
 method and one
   from the form.
  
   Isn't that surprising ?
  
   Pierre-Yves
  
   Pierre-Yves Saumont a écrit :
 Hello,

 I am still trying to make my Ajax form working, with no
 success until
 now. I have made a simple example that works in a
 standalone page. I
 have then copied this example in a page of my app, and it
 don't
   work.

 What is surprising is that no code in the Ajax OnSubmit
 handler is
 executed, although the result component is updated with the
   values form
 the form. As the page is also flashing in the browser, my
 guess
   is that
 if Ajax submit don't work, Wicket default to non Ajax
 submit with the
 page redisplaying. Is that right?

 If it is, can you give me some indications about why an
 Ajax submit
 handler that work in a page would not work in another one?

 Thanks,

 Pierre-Yves



  
 -
 
 Using Tomcat but need to do more? Need to support web
 services,
   security?
 

Re: [Wicket-user] ListView updated twice in IE6 (Was : Ajax Submit default to Non Ajax Submit ?)

2006-08-10 Thread Igor Vaynberg
 b) you cannot update tr/tbody/etc tags via outerhtml which is what we do and when you try you get the very helpful runtime error
I do not get any error in Firefox although I update tbody !not all browsers are born equal. have you tried safari? opera? konqueror? :)-Igor
-
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=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ListView updated twice in IE6 (Was : Ajax Submit default to Non Ajax Submit ?)

2006-08-10 Thread Pierre-Yves Saumont
I am sorry, I just hit reply and although sometimes it goes to the list, 
sometimes not :-(

I tried to use the enclosing tab as the target, as well as the panel 
that was used in the standalone version. In either case, absolutely 
nothing happens. And nothing is displayed in the Ajax Debug Windows. Is 
there a way to track what is happening ?

Pierre-Yves

Igor Vaynberg a écrit :
 a tab is by istelf a panel, set the ajax target to the panel itself. and 
 please do continue this on the list so that others can also benefit from 
 the discussion.
 
 -Igor
 
 
 On 8/10/06, *Pierre-Yves Saumont* [EMAIL PROTECTED] mailto:[EMAIL 
 PROTECTED] 
 wrote:
 
 Attaching the markup container to the table tag instead of the tbody
 works in both Firefox and IE. Now, what I need it to use the ListView as
 a component of a tab in a tabbed panel. The tabbed panel is using ajax
 to switch tabs.
 
 The tabbed panel works fine. The ListView now works fine too as a
 standalone example.
 
 But when I put the ListView in the tab, it don't work anymore. I tried
 to put it in the first tab (the one which is displayed by default, not
 using ajax) but it don't work neither.
 
 Should I continue searching or is this impossible ? Should I use the
 whole tab as a target ? Or is it possible to use the same markup
 container attached to the table html tag ?
 
 Pierre-Yves
 
 Igor Vaynberg a écrit :
   you cannot update listview directly because
   a) listview itself has no markup - it lets the children use its
 markup
   b) you cannot update tr/tbody/etc tags via outerhtml which is
 what we do
   and when you try you get the very helpful runtime error
  
   you have to create a markupcontainer around the listview that is
   preferrably attached to the table tag and update that instead.
  
  
   -Igor
  
  
   On 8/10/06, * Pierre-Yves Saumont* [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL 
 PROTECTED]
   wrote:
  
   I eventually could not reproduce the problem in a test case.
 However, I
   have been able (??) to produce another problem of the same
 kind, ie
   something that does not work the same in IE6 and Firefox. In
 fact, it
   works fine in FireFox and produces an error in IE6. The
 example is a
   ListView that is updated through Ajax. No problem in Firefox.
 In IE6,
   the Ajax Debug Windows displays :
  
   ERROR: error while processing response: [object Error].Erreur
   d'exécution inconnue
 INFO: invoking failure handler...
  
   (The part which is in french means unknown runtime error)
  
   Do you want me to send the test case ? If you do, can you
 tell me what
   to send exactly ? A self contained working archive of the
 quickstart
   project is about 3Mb. Is that OK ?
  
   Pierre-Yves
  
   Johan Compagner a écrit :
 do you have a simple test case in a quickstart project?


 On 8/10/06, *Pierre-Yves Saumont*  [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
   mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL 
 PROTECTED]
 mailto:[EMAIL PROTECTED]
 wrote:

 Hello,

 After spending the night testing, it appears that
 there are two
 different problems :

 1) The Ajax handler - onSubmit(AjaxRequestTarget
 target, Form
   form) - is
 not called and Wicket default to onSubmit() if is is
 present.
   I can't
 see why Ajax does not work for this form, since it
 works for
   all the
 other cases I have tried. I have tried the Ajax form
 example
   with no
 problem. I have implemented an Ajax  tabbed panel that
 work
   fine. The
 only thing I can see is that the Ajax form is inside a tab
   from the
 tabbed panel. Could this be a problem ? (If I put the
 Ajax form
 example,
 which work as standalone, inside a tab, it does not
 work either,
 defaulting to normal submit)

 2) I setup a ListView exactly as Igor indicated using
 this
 construction :

  IModel listModel=new LoadableDetachableModel() {
  protected Object load() {
  return DataObjectsFactory.getMyObjectList();
 }};

 For testing, I set the getMyObjectList() to add an
 object to
   the list