Page 1 of 1

pu: menu collapsed [solved]

Posted: 24 Apr 2018, 21:57
by fredwilliam
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!

Re: pu: menu collapsed

Posted: 25 Apr 2018, 09:23
by mert.sincan
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" />

Re: pu: menu collapsed

Posted: 25 Apr 2018, 17:50
by fredwilliam
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?

Re: pu: menu collapsed

Posted: 26 Apr 2018, 05:22
by fredwilliam
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?

Re: pu: menu collapsed

Posted: 30 Apr 2018, 14:33
by fredwilliam
Hi, my friends, is there no way to do what I did in the video?

Re: pu: menu collapsed

Posted: 04 May 2018, 17:44
by fredwilliam
Anyone with the same problem

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

Re: pu: menu collapsed

Posted: 04 May 2018, 17:45
by fredwilliam
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()"

Re: pu: menu collapsed [solved]

Posted: 07 May 2018, 07:40
by mert.sincan
Thanks a lot for the update!

Best Regards,