badge in MenuItem

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
tooot
Posts: 42
Joined: 30 Sep 2012, 02:06
Location: Saudi Arabia
Contact:

19 Sep 2018, 16:15

Hi,

How can add <f:attribute name="badge" value="8" /> to <p:menuitem

Is there any way ?
PrimeFaces 5.3 | JBoss 7 AS | FireFox|

huseyinT
Posts: 123
Joined: 27 Mar 2016, 13:05

24 Sep 2018, 13:01


tooot
Posts: 42
Joined: 30 Sep 2012, 02:06
Location: Saudi Arabia
Contact:

26 Sep 2018, 07:20

Thank you for reply , But actually I'm talking about UI not server side coding .

Code: Select all

<p:menuitem 
								
								value="Waiting" icon="fa fa-fw fa-list-alt"
								outcome="/cp/beneficiary/benefWFComittee" >
								<f:attribute name="acpProductParam" value="1252"/>
								</p:menuitem>
for code above , there is nothing display for value 1252.
PrimeFaces 5.3 | JBoss 7 AS | FireFox|

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

27 Sep 2018, 09:51

Added this feature for next version. Exp;

Code: Select all

...
                      <p:submenu id="om_customization" label="Menu Modes" icon="fa fa-fw fa-bars">
                            <f:attribute name="badge" value="8" />
                            <p:menuitem id="custom3" value="Static Menu" icon="fa fa-fw fa-bars" actionListener="#{guestPreferences.setMenuLayout('static')}" ajax="false">
                                <f:attribute name="badge" value="4" />
                            </p:menuitem>
                            <p:menuitem id="custom4" value="Overlay Menu" icon="fa fa-fw fa-bars" actionListener="#{guestPreferences.setMenuLayout('overlay')}" ajax="false"/>
                            <p:menuitem id="custom5" value="Horizontal Menu" icon="fa fa-fw fa-bars" actionListener="#{guestPreferences.setMenuLayout('horizontal')}" ajax="false"/>
                        </p:submenu>
 ...
Best Regards,

tooot
Posts: 42
Joined: 30 Sep 2012, 02:06
Location: Saudi Arabia
Contact:

07 Oct 2018, 16:18

Thank you very much
PrimeFaces 5.3 | JBoss 7 AS | FireFox|

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

08 Oct 2018, 10:26

You're welcome!

Post Reply

Return to “Poseidon - PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 7 guests