4 Replies Latest reply on Apr 2, 2011 8:13 PM by sparcipc

    add menuItem directly on toolbar

    sparcipc

      Hi,

       

      I'm trying to add menuItem directly on toolbar and configure the menuItem to look like other dropDownMenu on the same toolbar. It's unusual but required by the client.

       

      I'm using richfaces 4.0 Final.

       

      Thanks in advance.

       

       

              <rich:toolbar height="26px" itemSeparator="square">

                          <rich:menuItem  label="Home"

                              submitMode="client"

                          onclick="document.location.href='main.xhtml'" >

                          </rich:menuItem>

       

                  <rich:dropDownMenu showEvent="click" mode="ajax">

                      <f:facet name="label">

                          <h:panelGrid cellpadding="0" cellspacing="0" columns="2"

                              style="vertical-align:middle">

                              <h:outputText value="Resources" />

                          </h:panelGrid>

                      </f:facet>

                      <rich:menuItem submitMode="client"

                          onclick="document.location.href='https://community.jboss.com''">

                              <h:outputText value="JBOSS Home" />

                      </rich:menuItem>

                  </rich:dropDownMenu>

              </rich:toolbar>