Re: wicketstuff yui context menu clashes with YUI menu

2008-07-07 Thread Doug Leeper

Karen,

I am the original author of the menu2 package.

What I believe is happening (as I haven't looked at this in awhile) is that
YUI menu that is created originally is losing the 'reference' of the item
that had the context menu associated with it.  This happens because you are
using Ajax to refresh data view and not the menu too.

I believe to fix you will need to add the menu component that contains the
YuiContextMenuBehavior to the AjaxTarget.

If this doesn't work, please post some example code or send me a quick start
to reproduce so I can take a look.

- Doug
-- 
View this message in context: 
http://www.nabble.com/wicketstuff-yui-context-menu-clashes-with-YUI-menu-tp18305922p18320478.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]



RE: wicketstuff yui context menu clashes with YUI menu

2008-07-07 Thread Karen Schaper
Hi,

I looked at this further and the problem seems to be  because the YUI menu
was not being created with the wicketstuff YUI classes but directory using
the YUI javascript library with javascript files being added into the html
clashing with the javascript files that are being added by using the
YuiContextMenu.

I changed the menu to be created using the java classes and now there is not
a problem.   The Yui menu is not clashing with my context menu below.

Thanks
Karen


 Karen,

 I am the original author of the menu2 package.

 What I believe is happening (as I haven't looked at this in
 awhile) is that
 YUI menu that is created originally is losing the 'reference' of the item
 that had the context menu associated with it.  This happens
 because you are
 using Ajax to refresh data view and not the menu too.

 I believe to fix you will need to add the menu component that contains the
 YuiContextMenuBehavior to the AjaxTarget.

 If this doesn't work, please post some example code or send me a
 quick start
 to reproduce so I can take a look.

 - Doug
 --
 View this message in context:
 http://www.nabble.com/wicketstuff-yui-context-menu-clashes-with-YU
 I-menu-tp18305922p18320478.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]



RE: wicketstuff yui context menu clashes with YUI menu

2008-07-07 Thread Karen Schaper
Although this seems strange sense the Yui libary I am using is 2.4.1 and the
wicketStuff yui looks like it is also 2.4.1.

Is it because some javascript files are added twice?

 -Original Message-
 From: Karen Schaper [mailto:[EMAIL PROTECTED]
 Sent: Monday, July 07, 2008 12:48 PM
 To: users@wicket.apache.org
 Subject: RE: wicketstuff yui context menu clashes with YUI menu


 Hi,

 I looked at this further and the problem seems to be  because the YUI menu
 was not being created with the wicketstuff YUI classes but directory using
 the YUI javascript library with javascript files being added into the html
 clashing with the javascript files that are being added by using the
 YuiContextMenu.

 I changed the menu to be created using the java classes and now
 there is not
 a problem.   The Yui menu is not clashing with my context menu below.

 Thanks
 Karen


  Karen,
 
  I am the original author of the menu2 package.
 
  What I believe is happening (as I haven't looked at this in
  awhile) is that
  YUI menu that is created originally is losing the 'reference'
 of the item
  that had the context menu associated with it.  This happens
  because you are
  using Ajax to refresh data view and not the menu too.
 
  I believe to fix you will need to add the menu component that
 contains the
  YuiContextMenuBehavior to the AjaxTarget.
 
  If this doesn't work, please post some example code or send me a
  quick start
  to reproduce so I can take a look.
 
  - Doug
  --
  View this message in context:
  http://www.nabble.com/wicketstuff-yui-context-menu-clashes-with-YU
  I-menu-tp18305922p18320478.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]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]