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,
ContextMenu update problem! (2.0.1 FINAL)
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
Yes, please submit the code so we can have a look.
Hi,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,
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
I've already tested this. While it partially fixes the problem, there is bug which makes this solution completely useless.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.
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,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,
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
-
- Information
-
Who is online
Users browsing this forum: No registered users and 44 guests