ContextMenu update problem! (2.0.1 FINAL)

UI Components for JSF
Post Reply
arnold
Posts: 24
Joined: 20 Apr 2010, 08:58

20 Apr 2010, 09:07

Hi Guys,

I have a <p:datatable> which has a <p:contextmenu> registered with it. But whenever I "update" the DataTable (using the "update" attribute of an <p:commandbutton>), the ContextMenu gets unregistered and no more shows when I right click on DataTable! And I'm using the 2.0.1 final version.

I will appreciate any fix or workaround for this. Let me know if you need to code sample to reproduce this problem.

Best Regards,

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

22 Apr 2010, 15:00

Yes, please submit the code so we can have a look.

User avatar
Oleg
Expert Member
Posts: 3805
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

22 Apr 2010, 16:34

arnold wrote:Hi Guys,

I have a <p:datatable> which has a <p:contextmenu> registered with it. But whenever I "update" the DataTable (using the "update" attribute of an <p:commandbutton>), the ContextMenu gets unregistered and no more shows when I right click on DataTable! And I'm using the 2.0.1 final version.

I will appreciate any fix or workaround for this. Let me know if you need to code sample to reproduce this problem.

Best Regards,
Hi,

You will not get problems if you update both - data table AND context menu at the same time. Place both components in a h:panelGroup one after another and update this panel group.
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin

arnold
Posts: 24
Joined: 20 Apr 2010, 08:58

23 Apr 2010, 07:52

Oleg wrote:Hi,

You will not get problems if you update both - data table AND context menu at the same time. Place both components in a h:panelGroup one after another and update this panel group.
I've already tested this. While it partially fixes the problem, there is bug which makes this solution completely useless.

Yes, when you put the table AND the contextmenu inside a panelgroup and update that group, the contextmenu doesn't get unregistered anymore which is good. But after the update, the items in context menu do not get focused and are not selectable/clickable.

Thank you,

User avatar
Oleg
Expert Member
Posts: 3805
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

23 Apr 2010, 09:46

arnold wrote: Yes, when you put the table AND the contextmenu inside a panelgroup and update that group, the contextmenu doesn't get unregistered anymore which is good. But after the update, the items in context menu do not get focused and are not selectable/clickable.
Thank you,
Hello Arnold,

Yes, I have the same problem with menubar. All menuitems are not focusable more after partial update. I think, this is an YUI issue, not PrimeFaces. There is a ticket in issue tracker.
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 44 guests