pu: menu collapsed [solved]

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
fredwilliam
Posts: 16
Joined: 13 Dec 2015, 09:28

24 Apr 2018, 21:57

my menu is set to overlay, I have in it a p: menuitem this way:

<p: menuitem value = "test" process = "@ this" action = "# {myBean.action ()}" update = "me" />

I would like to click on this p: menuitem the menu comes back to be collected!
I would like to clicking this p: menuitem the menu turns to be collected!
I would like to clicking this p: menuitem the menu turns to be collapsed!

Sorry for my english, please help me!
Last edited by fredwilliam on 04 May 2018, 17:46, edited 1 time in total.

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

25 Apr 2018, 09:23

Could you please add a unique id to p:menuitems to use the stateful feature of pu:menu items?

<p: menuitem id="test_id" value = "test" process = "@ this" action = "# {myBean.action ()}" update = "me" />

fredwilliam
Posts: 16
Joined: 13 Dec 2015, 09:28

25 Apr 2018, 17:50

aragorn wrote:
25 Apr 2018, 09:23
Could you please add a unique id to p:menuitems to use the stateful feature of pu:menu items?

<p: menuitem id="test_id" value = "test" process = "@ this" action = "# {myBean.action ()}" update = "me" />
Dear, Aragorn, I did as you said. But it did not work, maybe because of my bad English, I explained it wrong! so I made a video, showing what I wanted to happen!

https://youtu.be/iRqq8PU79r8

In the video you can see that by clicking on Dashboar the menu hides, the more clicking on the Test the same does not happen, plus the action and normally executed in the Bean!

How do you hide the menu when you click on a menu that does not point to a page?

fredwilliam
Posts: 16
Joined: 13 Dec 2015, 09:28

26 Apr 2018, 05:22

Dear, Aragorn, I did as you said. But it did not work, maybe because of my bad English, I explained it wrong! so I made a video, showing what I wanted to happen!

https://youtu.be/iRqq8PU79r8

In the video you can see that by clicking on Dashboar the menu hides, the more clicking on the Test the same does not happen, plus the action and normally executed in the Bean!

How do you hide the menu when you click on a menu that does not point to a page?

fredwilliam
Posts: 16
Joined: 13 Dec 2015, 09:28

30 Apr 2018, 14:33

Hi, my friends, is there no way to do what I did in the video?

fredwilliam
Posts: 16
Joined: 13 Dec 2015, 09:28

04 May 2018, 17:44

Anyone with the same problem

oncomplete="PF('me').closeOverlayMenu()"

fredwilliam
Posts: 16
Joined: 13 Dec 2015, 09:28

04 May 2018, 17:45

aragorn wrote:
25 Apr 2018, 09:23
Could you please add a unique id to p:menuitems to use the stateful feature of pu:menu items?

<p: menuitem id="test_id" value = "test" process = "@ this" action = "# {myBean.action ()}" update = "me" />
oncomplete="PF('me').closeOverlayMenu()"

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

07 May 2018, 07:40

Thanks a lot for the update!

Best Regards,

Post Reply

Return to “Ultima - PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 2 guests