contextmenu inside p:layout is work ,but downwards of show position.
primefaces ver 2.2
netbeans6.9.1
contextmenu inside p:layout work is not fine(primefaces 2.2)
I just discovered this as well but inside p:tabView.
If you have a tab containing some component and the context menu attached to it then the contextMenu shows up but is not correctly attached (pops up somewhere underneath closer to the middle of the page).
If I remove the tabView then it works OK and the menu pops up in the correct place.
I'm using PrimeFaces-2.2 on Mojarra-2.0.4.
P.S: is there a workaround? Can we create an issue for this in the tracker?
If you have a tab containing some component and the context menu attached to it then the contextMenu shows up but is not correctly attached (pops up somewhere underneath closer to the middle of the page).
If I remove the tabView then it works OK and the menu pops up in the correct place.
I'm using PrimeFaces-2.2 on Mojarra-2.0.4.
P.S: is there a workaround? Can we create an issue for this in the tracker?
Primefaces 3.0.M3 with JSF 2.1.2 on Tomcat 7
i have the same problem
Certified Sun Java programmer 6
Certified IBM DB2 Associate
Certified IBM Associate Developer
Certified IBM Application Developer.
Certified IBM System Administrator:
Certified IBM DB2 Associate
Certified IBM Associate Developer
Certified IBM Application Developer.
Certified IBM System Administrator:
- maple_shaft
- Posts: 58
- Joined: 10 Mar 2011, 19:49
Does this occur on all browsers?
Perhaps you can identify the dom element in a javascript, and then change the absolute position of the context menu?
This shouldn't be too hard to do with the built in jQuery library.
Perhaps you can identify the dom element in a javascript, and then change the absolute position of the context menu?
This shouldn't be too hard to do with the built in jQuery library.
First Primefaces Application: PrimeFaces 2.2.1, Mojarra 2.0.4, Tomcat 7.08 - JBoss 6
Second Primefaces Application: Primefaces 3.0 FINAL (<-- AWESOME!), Mojarra 2.1.2, Spring 3 with Spring Security and Spring EL Resolver, Tomcat 6
Second Primefaces Application: Primefaces 3.0 FINAL (<-- AWESOME!), Mojarra 2.1.2, Spring 3 with Spring Security and Spring EL Resolver, Tomcat 6
-
- Posts: 13
- Joined: 29 Mar 2011, 15:43
I had similar problems when using the contextMenu component inside a p:dialog. The contextMenu's position gets shifted vertically and horizontally in respect to the dialog's position; if I move the dialog to the top left corner, the context menu appears in the right place. This seems to be a bug in YUI 2.x and it doesn't seem like they will fix that: http://yuilibrary.com/projects/yui3/ticket/1913394; the issue was closed because it will be addressed in YUI 3.
So here's my work around, hopefully it works for more people: instead of placing the contextMenu inside my p:dialog, I put it outside. That way it gets rendered in the correct place because its parent is actually the whole form. In addition, I needed to change the contextMenu's zindex attribute. Otherwise it wouldn't get displayed as it was underneath the p:dialog.
Anyway, I hope that helps someone. Cheers.
So here's my work around, hopefully it works for more people: instead of placing the contextMenu inside my p:dialog, I put it outside. That way it gets rendered in the correct place because its parent is actually the whole form. In addition, I needed to change the contextMenu's zindex attribute. Otherwise it wouldn't get displayed as it was underneath the p:dialog.
Anyway, I hope that helps someone. Cheers.
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
Try locating contextmenu as a direct child of body element.
Hi,
I'm having same issue described in my post "layoutUnit header affects context menu position" http://primefaces.prime.com.tr/forum/vi ... 915#p36915
As per Cagatay's suggestion, one workaround may be putting the contextMenu directly under body. However when we have a p:layout (full page), it looks like not feasible. It's because the contextMenu "for" component is within one of the p:layoutUnit, and is not always available in the view, as we change content in p:layoutUnit.
As of now, it's not possible to use p:layout and p:contextMenu together. I didn't have such issue when I was using older version 2.2M1. Since menu components are recently rewritten in 3.0, is there any plan to make contextMenu work within any containing component, like layoutUnit, tabs, accordionPanel etc?, or provide some workaround?
Thanks,
Oz
I'm having same issue described in my post "layoutUnit header affects context menu position" http://primefaces.prime.com.tr/forum/vi ... 915#p36915
As per Cagatay's suggestion, one workaround may be putting the contextMenu directly under body. However when we have a p:layout (full page), it looks like not feasible. It's because the contextMenu "for" component is within one of the p:layoutUnit, and is not always available in the view, as we change content in p:layoutUnit.
As of now, it's not possible to use p:layout and p:contextMenu together. I didn't have such issue when I was using older version 2.2M1. Since menu components are recently rewritten in 3.0, is there any plan to make contextMenu work within any containing component, like layoutUnit, tabs, accordionPanel etc?, or provide some workaround?
Thanks,
Oz
PrimeFaces 2.2.1/3.0M1, JSF2.0, Netbean 6.9.1 GlassFishes 3
Hi,
In fact we do not use p:layout and we still get same problem with 960 grid system.
It works fine when in a simple form, but since my page basically part of overall layout, whole context menu is completely off.
Our page layout consists of top menu, side menu, breadcrumbs and in the center is the main view,
Then p:context menu in main view is just fooled by whole architecture of the page.
Primefaces use probably absolute positioning though it should(?) use coordinates relative to the form element
I know it's not an easy one with mouse positioning, but any tip how to fix it?
milan
In fact we do not use p:layout and we still get same problem with 960 grid system.
It works fine when in a simple form, but since my page basically part of overall layout, whole context menu is completely off.
Our page layout consists of top menu, side menu, breadcrumbs and in the center is the main view,
Then p:context menu in main view is just fooled by whole architecture of the page.
Primefaces use probably absolute positioning though it should(?) use coordinates relative to the form element
I know it's not an easy one with mouse positioning, but any tip how to fix it?
milan
GF: 3.1.1
PrimeFaces: 3.0.1
JSF:2.0
PrimeFaces: 3.0.1
JSF:2.0
-
- Information
-
Who is online
Users browsing this forum: No registered users and 55 guests