6 Replies Latest reply on Feb 11, 2011 11:10 AM by Marcos Simón

    MenuItem with RichFaces 4

    Marcos Simón Newbie

      Hi,

       

      I'm starting with RichFaces and  I have chosen 4.0.0 version, but I didn't know other versions previously.

      I need to use a toolbar and I have wached this code example http://livedemo.exadel.com/richfaces-demo/richfaces/dropDownMenu.jsf, that I suppose it´s works fine for 3.3.3 version but not for 4.0.0.M5 (the last version as far I know)

       

       

      I had been looking for in others threads into this forum like http://community.jboss.org/thread/160574 or http://community.jboss.org/message/585013, but I don't found the solution.

       

      And I´ve changed toolbar instead of toolBar and other small changes but it don't' work and I don't know why. It don't return errors, but the label doesn´t appear (I can see the box selected without text), and if I click then it doesn't work.

      ...

      <rich:toolbar>

                <rich:dropDownMenu>

                          <f:facet name="label">

                                    <h:panelGroup>

                                              <h:outputText value="Menu 1"/>

                                    </h:panelGroup>

                          </f:facet>

                          <rich:menuItem submitMode="ajax" value="Menu 1.1"

                                    action="#{prbean.nombre}" />

                          <rich:menuItem submitMode="ajax" value="Menu 1.2"

                                    action="#{prbean.nombre}" />

                          <rich:menuGroup value="Menu 1.3">

                                    <rich:menuItem submitMode="ajax" value="Menu 1.3.1" 

                                              action="#{prbean.nombre}" />

                                    <rich:menuItem submitMode="ajax" value="Menu 1.4.1"

                                              action="#{prbean.nombre}" />

                          </rich:menuGroup>

                          <rich:menuSeparator/>

                          <rich:menuItem submitMode="ajax" value="Menu 1.5"

                                    action="#{prbean.metodo}" />

                </rich:dropDownMenu>

      </rich:toolbar>

      ...

       

      So, I will be very grateful if somebody helps me.

      thans in advance.

       

      Marcos

       

      prbean.metodo is never called.