wicketstuff yui context menu clashes with YUI menu

View: New views
4 Messages — Rating Filter:   Alert me  

wicketstuff yui context menu clashes with YUI menu

by schapes :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I have a menu at the top of my page that was generated using YUI.

I then have a datatable that is refreshed using ajax.  Each row has an image
that has a

(org.wicketstuff.yui.markup.html.menu2.contextMenu )  attached to it.

My problem is that the top menu is not working when using the right click
context menu on the same page.  The yui menu items are not selectable
anymore.

The context menu is working fine just now I can't navigate to anyplace else.

        I tried using the DOJO context menu but can't find an example of how to get
the menu items to do anything.

I'm getting so frustrated.  Any suggestions??

Btw....this is an internal domain specific web application.

Thanks

Karen


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


Re: wicketstuff yui context menu clashes with YUI menu

by Doug Leeper :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

RE: wicketstuff yui context menu clashes with YUI menu

by schapes :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>
>


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


RE: wicketstuff yui context menu clashes with YUI menu

by schapes :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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:Karen.Schaper@...]
> Sent: Monday, July 07, 2008 12:48 PM
> To: users@...
> 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: users-unsubscribe@...
> > For additional commands, e-mail: users-help@...
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>
>


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

LightInTheBox - Buy quality products at wholesale price!