p:contextMenu wrongly positioned when nested inside p:layout

UI Components for JSF
Post Reply
garethwebbley
Posts: 23
Joined: 06 Mar 2011, 22:35

06 Mar 2011, 22:54

I am using a p:contextMenu with a p:dataTable inside a p:layout. When displayed the contextMenu appears below the data table rather than at the point of the click. I have removed the p:layout and the menu appears exactly where expected so I do think this is related to nesting the menu inside a layout. I have tried this with both 2.2.1 and 3.0-prime-1 versions of primefaces and the same result is seen with both.

I think the problem may be that the point to show the menu is being calculated relative to the top of the page but the layout means that it should be relative to the layoutUnit it is placed in.

I am using Mojarra 2.1.0-b11 and Tomcat 6.0.26.

pfUser
Posts: 15
Joined: 24 Jan 2011, 18:31

07 Mar 2011, 20:14

I've got the exact same problem and I need to somehow fix urgently! I hope someone will be able to help

palace
Posts: 25
Joined: 02 Jun 2010, 10:30
Location: Stockholm
Contact:

07 Mar 2011, 21:42

I have exactly the same problem but inside a tabView.

Does anybody know if there's a workaround or if the problem is going to be fixed?
Primefaces 3.0.M3 with JSF 2.1.2 on Tomcat 7

pfUser
Posts: 15
Joined: 24 Jan 2011, 18:31

08 Mar 2011, 20:26

Anyone, please? I really need to fix this :?

usamagdy
Posts: 22
Joined: 13 Mar 2011, 08:19
Contact:

20 Mar 2011, 10:56

i have the same issue
Certified Sun Java programmer 6
Certified IBM DB2 Associate
Certified IBM Associate Developer
Certified IBM Application Developer.
Certified IBM System Administrator:

garethwebbley
Posts: 23
Joined: 06 Mar 2011, 22:35

18 Apr 2011, 22:58

I have tried this with the new 3.0.M1 version and it's still a problem. Any ideas how to get around the problem?

Thanks

garethwebbley
Posts: 23
Joined: 06 Mar 2011, 22:35

19 Apr 2011, 15:36

If you can point me in the right direction I am quite happy to see if I can provide a fix for this myself but I've tried to debug it and can't seem to work it out.

Gatech
Posts: 12
Joined: 04 Jun 2011, 21:42

04 Jun 2011, 21:46

Yes, PLEASE, fix this bug! :(

I'm trying this into a Dialog (with a panelgrid inside), and it makes the form expand like 500*500px and in the corner shows the context menu :(

Gatech
Posts: 12
Joined: 04 Jun 2011, 21:42

19 Jun 2011, 19:37

Hellooo?. Is support here?

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

20 Jun 2011, 01:21

Yes, see here, the second header

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 12 guests