You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Lan Boon Ping <bo...@gmail.com> on 2008/02/01 10:26:33 UTC

Re: [WicketStuff-Scriptaculous] DragNDrop problem in IE6/IE7.

Hi Nino,

I was busy yesterday, sorry for being late to reply you.

My colleague (Edward Yakop) found out the cause root and have a
solution for it. The reason why this is only occured in IE is because
wicket-ajax.js uses Element.removeChild and Element.addChild to
replace component during ajax callback.

So, the solution is to add an AjaxRequestTarget.IListener which hook
into Ajax Response cycle and do something in onBeforeRespond() method.

In onBeforeRespond, we will loop up droppable components and invoke

AjaxRequestTarget.prependJavascript( "Droppables.remove('" + markupId
+ "');"); );

to remove them from Javascript Droppables object and update it

 AjaxRequestTarget.add( droppableComponentToBeUpdated );

lastly we invoke this script to add the droppable javascript back to
droppable components.

 AjaxRequestTarget.appendJavascript( onDropJavaScript );

FYI, we don't have any patches for wicketstuff-scriptaculous, because
we are using customized version which hosted in OPS4J. Sorry for any
inconvenient.

Anyway, thanks for your offers.

Regards
Boon Ping.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: [WicketStuff-Scriptaculous] DragNDrop problem in IE6/IE7.

Posted by Lan Boon Ping <bo...@gmail.com>.
Hi Nino,

Good suggestion, I just checked the
site(http://wicketstuff.org/jira/secure/Dashboard.jspa) but couldn't
find wicketstuff-scriptaculous. I guess it is ok, because Ryan is
already aware of it.

Regards
Boon Ping.

On Feb 1, 2008 5:43 PM, Nino Saturnino Martinez Vazquez Wael
<ni...@jayway.dk> wrote:
> Ok, maybe Ryan will pickup on this.. As im not that familiar with
> scriptaculouls.. Not sure if jira's setup for this project, but if it
> is. You could just create a issue and paste a link from nabble?
>
>
> regards Nino
>
> Lan Boon Ping wrote:
>
> > Forgot to mention that Edward will update the customized version in OPS4J soon.
> >
> > Regards
> > Boon Ping.
> >
> > On Feb 1, 2008 5:26 PM, Lan Boon Ping <bo...@gmail.com> wrote:
> >
> >> Hi Nino,
> >>
> >> I was busy yesterday, sorry for being late to reply you.
> >>
> >> My colleague (Edward Yakop) found out the cause root and have a
> >> solution for it. The reason why this is only occured in IE is because
> >> wicket-ajax.js uses Element.removeChild and Element.addChild to
> >> replace component during ajax callback.
> >>
> >> So, the solution is to add an AjaxRequestTarget.IListener which hook
> >> into Ajax Response cycle and do something in onBeforeRespond() method.
> >>
> >> In onBeforeRespond, we will loop up droppable components and invoke
> >>
> >> AjaxRequestTarget.prependJavascript( "Droppables.remove('" + markupId
> >> + "');"); );
> >>
> >> to remove them from Javascript Droppables object and update it
> >>
> >>  AjaxRequestTarget.add( droppableComponentToBeUpdated );
> >>
> >> lastly we invoke this script to add the droppable javascript back to
> >> droppable components.
> >>
> >>  AjaxRequestTarget.appendJavascript( onDropJavaScript );
> >>
> >> FYI, we don't have any patches for wicketstuff-scriptaculous, because
> >> we are using customized version which hosted in OPS4J. Sorry for any
> >> inconvenient.
> >>
> >> Anyway, thanks for your offers.
> >>
> >> Regards
> >> Boon Ping.
> >>
> >>
> >
>
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
> >
> >
>
> --
> Nino Martinez Wael
> Java Specialist @ Jayway DK
> http://www.jayway.dk
> +45 2936 7684
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: [WicketStuff-Scriptaculous] DragNDrop problem in IE6/IE7.

Posted by Nino Saturnino Martinez Vazquez Wael <ni...@jayway.dk>.
Ok, maybe Ryan will pickup on this.. As im not that familiar with 
scriptaculouls.. Not sure if jira's setup for this project, but if it 
is. You could just create a issue and paste a link from nabble?


regards Nino

Lan Boon Ping wrote:
> Forgot to mention that Edward will update the customized version in OPS4J soon.
>
> Regards
> Boon Ping.
>
> On Feb 1, 2008 5:26 PM, Lan Boon Ping <bo...@gmail.com> wrote:
>   
>> Hi Nino,
>>
>> I was busy yesterday, sorry for being late to reply you.
>>
>> My colleague (Edward Yakop) found out the cause root and have a
>> solution for it. The reason why this is only occured in IE is because
>> wicket-ajax.js uses Element.removeChild and Element.addChild to
>> replace component during ajax callback.
>>
>> So, the solution is to add an AjaxRequestTarget.IListener which hook
>> into Ajax Response cycle and do something in onBeforeRespond() method.
>>
>> In onBeforeRespond, we will loop up droppable components and invoke
>>
>> AjaxRequestTarget.prependJavascript( "Droppables.remove('" + markupId
>> + "');"); );
>>
>> to remove them from Javascript Droppables object and update it
>>
>>  AjaxRequestTarget.add( droppableComponentToBeUpdated );
>>
>> lastly we invoke this script to add the droppable javascript back to
>> droppable components.
>>
>>  AjaxRequestTarget.appendJavascript( onDropJavaScript );
>>
>> FYI, we don't have any patches for wicketstuff-scriptaculous, because
>> we are using customized version which hosted in OPS4J. Sorry for any
>> inconvenient.
>>
>> Anyway, thanks for your offers.
>>
>> Regards
>> Boon Ping.
>>
>>     
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
>   

-- 
Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: [WicketStuff-Scriptaculous] DragNDrop problem in IE6/IE7.

Posted by Lan Boon Ping <bo...@gmail.com>.
Forgot to mention that Edward will update the customized version in OPS4J soon.

Regards
Boon Ping.

On Feb 1, 2008 5:26 PM, Lan Boon Ping <bo...@gmail.com> wrote:
> Hi Nino,
>
> I was busy yesterday, sorry for being late to reply you.
>
> My colleague (Edward Yakop) found out the cause root and have a
> solution for it. The reason why this is only occured in IE is because
> wicket-ajax.js uses Element.removeChild and Element.addChild to
> replace component during ajax callback.
>
> So, the solution is to add an AjaxRequestTarget.IListener which hook
> into Ajax Response cycle and do something in onBeforeRespond() method.
>
> In onBeforeRespond, we will loop up droppable components and invoke
>
> AjaxRequestTarget.prependJavascript( "Droppables.remove('" + markupId
> + "');"); );
>
> to remove them from Javascript Droppables object and update it
>
>  AjaxRequestTarget.add( droppableComponentToBeUpdated );
>
> lastly we invoke this script to add the droppable javascript back to
> droppable components.
>
>  AjaxRequestTarget.appendJavascript( onDropJavaScript );
>
> FYI, we don't have any patches for wicketstuff-scriptaculous, because
> we are using customized version which hosted in OPS4J. Sorry for any
> inconvenient.
>
> Anyway, thanks for your offers.
>
> Regards
> Boon Ping.
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: [WicketStuff-Scriptaculous] DragNDrop problem in IE6/IE7.

Posted by Edward Yakop <ed...@gmail.com>.
Committed at
https://scm.ops4j.org/repos/ops4j/laboratory/users/efy/wicket-contrib-scriptaculous

The examples can be found at
https://scm.ops4j.org/repos/ops4j/laboratory/users/efy/wicket-contrib-scriptaculous-examples.

Regards,
Edward Yakop

Note: The wicket dependency version is now set to 1.3.1

On Feb 1, 2008 11:59 PM, Edward Yakop <ed...@gmail.com> wrote:
> On Feb 1, 2008 11:47 PM, Ryan Sonnek <ry...@gmail.com> wrote:
> > On Feb 1, 2008 3:26 AM, Lan Boon Ping <bo...@gmail.com> wrote:
> > > My colleague (Edward Yakop) found out the cause root and have a
> > > solution for it. The reason why this is only occured in IE is because
> > > wicket-ajax.js uses Element.removeChild and Element.addChild to
> > > replace component during ajax callback.
> >
> > Is this an issue with all wicket ajax requests on IE, or just with
> > scriptaculous projects?
> I believe this is a combination.
> Scriptaculous cached the element when "Droppables.add" and "new
> Draggable"  is invoked and
> Wicket ajax behavior handling AjaxRequestTarget#addComponent( ), where
> it remove the old element and add
> the new element during ajax response.
>
> Regards,
> Edward Yakop
> Note: OPS4j server is just backed up, so I haven't have time to update
> the code yet.
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: [WicketStuff-Scriptaculous] DragNDrop problem in IE6/IE7.

Posted by Edward Yakop <ed...@gmail.com>.
On Feb 1, 2008 11:47 PM, Ryan Sonnek <ry...@gmail.com> wrote:
> On Feb 1, 2008 3:26 AM, Lan Boon Ping <bo...@gmail.com> wrote:
> > My colleague (Edward Yakop) found out the cause root and have a
> > solution for it. The reason why this is only occured in IE is because
> > wicket-ajax.js uses Element.removeChild and Element.addChild to
> > replace component during ajax callback.
>
> Is this an issue with all wicket ajax requests on IE, or just with
> scriptaculous projects?
I believe this is a combination.
Scriptaculous cached the element when "Droppables.add" and "new
Draggable"  is invoked and
Wicket ajax behavior handling AjaxRequestTarget#addComponent( ), where
it remove the old element and add
the new element during ajax response.

Regards,
Edward Yakop
Note: OPS4j server is just backed up, so I haven't have time to update
the code yet.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: [WicketStuff-Scriptaculous] DragNDrop problem in IE6/IE7.

Posted by Ryan Sonnek <ry...@gmail.com>.
On Feb 1, 2008 3:26 AM, Lan Boon Ping <bo...@gmail.com> wrote:
> My colleague (Edward Yakop) found out the cause root and have a
> solution for it. The reason why this is only occured in IE is because
> wicket-ajax.js uses Element.removeChild and Element.addChild to
> replace component during ajax callback.

Is this an issue with all wicket ajax requests on IE, or just with
scriptaculous projects?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org