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
>      >      >     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=lnk&kid=120709&bid=263057&dat=121642
>     <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642>
>      >    
>     <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>     
> <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642>>
>      >      >
>      >    
>     <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>     <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642>
>      >     <
>     http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>     
> <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642>>>
>      >      >      > _______________________________________________
>      >      >      > Wicket-user mailing list
>      >      >      > Wicket-user@lists.sourceforge.net
>     <mailto:Wicket-user@lists.sourceforge.net>
>      >     <mailto:Wicket-user@lists.sourceforge.net
>     <mailto:Wicket-user@lists.sourceforge.net>>
>      >      >     <mailto: Wicket-user@lists.sourceforge.net
>     <mailto:Wicket-user@lists.sourceforge.net>
>      >     <mailto: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=lnk&kid=120709&bid=263057&dat=121642
>     <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642>
>      >    
>     <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>     
> <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642>>
>      >      >
>      >    
>     <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>     <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642>
>      >     <
>     http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>     
> <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642>>>
>      >      >     _______________________________________________
>      >      >     Wicket-user mailing list
>      >      >     Wicket-user@lists.sourceforge.net
>     <mailto:Wicket-user@lists.sourceforge.net>
>      >     <mailto:Wicket-user@lists.sourceforge.net
>     <mailto:Wicket-user@lists.sourceforge.net>>
>      >      >     <mailto: Wicket-user@lists.sourceforge.net
>     <mailto:Wicket-user@lists.sourceforge.net>
>      >     <mailto: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
>     <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 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
>     <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642>
>      >    
>     <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>     
> <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642>>
>      >     _______________________________________________
>      >     Wicket-user mailing list
>      >     Wicket-user@lists.sourceforge.net
>     <mailto:Wicket-user@lists.sourceforge.net>
>      >     <mailto: 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>
>      >     <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