1 Reply Latest reply on Mar 10, 2008 1:36 PM by Ilya Shaikovsky

    rich:menuItem with s:link not working with 3.1.4.GA

    Patrick Madden Newbie

      Hi,

      Just yesterday I grabbed the 3.1.4.GA jars and dropped them into my seam application.

      I have a toolbar with some drop down menu's that function with the prior 3.1.3.GA but not 3.1.4.GA. When I use the mode ajax to make calls to a backing bean it works. However when I just try to have a menuitem that switches a page it stops working. I'm sure I'm doing something wrong but not quite sure what it is.

      For example this doesn't work anymore:

      <rich:menuItem submitMode="none">
       <s:link view="/enterpriseGridView.xhtml" value="Enterprise Grid"/>
      </rich:menuItem>
      


      I've tried switching the mode to server and ajax as well but it doesn't seem to matter.

      This does work:

      <rich:menuItem submitMode="ajax">
       <h:commandLink value="Blue Sky" >
       <a4j:actionparam name="skin" value="blueSky" assignTo="#{com.clooster.web.ejb.session.skinBean.skin}"/>
       </h:commandLink>
      </rich:menuItem>
      


      Here is the complete menu:

       <rich:dropDownMenu id="configureMenu">
       <f:facet name="label">
       <h:panelGrid cellpadding="0" cellspacing="0" columns="2" style="vertical-align:middle">
       <h:outputText value="Configure" styleClass=".dr-table-cell .rich-table-cell" style="font-weight:bold"/>
       <h:graphicImage value="/img/down.gif"/>
       </h:panelGrid>
       </f:facet>
       <rich:menuItem submitMode="none">
       <s:link view="/enterpriseGridView.xhtml" value="Enterprise Grid"/>
       </rich:menuItem>
       <rich:menuItem submitMode="none">
       <s:link view="/headlines.xhtml" value="#{messages['searchForm.menu.configure.headlines']}"/>
       </rich:menuItem>
       <rich:menuItem submitMode="none">
       <s:link view="/serverSearchEngines.xhtml" value="#{messages['searchForm.menu.configure.engines']}"/>
       </rich:menuItem>
       <rich:menuItem submitMode="none">
       <s:link view="/myAccount.xhtml" value="#{messages['registerUser.myAccount']}"/>
       </rich:menuItem>
       <rich:menuGroup value="Skin">
       <rich:menuItem submitMode="ajax">
       <h:commandLink value="Blue Sky" >
       <a4j:actionparam name="skin" value="blueSky" assignTo="#{com.clooster.web.ejb.session.skinBean.skin}"/>
       </h:commandLink>
       </rich:menuItem>
       <rich:menuItem submitMode="ajax">
       <h:commandLink value="Classic" >
       <a4j:actionparam name="skin" value="classic" assignTo="#{com.clooster.web.ejb.session.skinBean.skin}"/>
       </h:commandLink>
       </rich:menuItem>
       <rich:menuItem submitMode="ajax">
       <h:commandLink value="Deep Marine" >
       <a4j:actionparam name="skin" value="deepMarine" assignTo="#{com.clooster.web.ejb.session.skinBean.skin}"/>
       </h:commandLink>
       </rich:menuItem>
       <rich:menuItem submitMode="ajax">
       <h:commandLink value="Emerald Town" >
       <a4j:actionparam name="skin" value="emeraldTown" assignTo="#{com.clooster.web.ejb.session.skinBean.skin}"/>
       </h:commandLink>
       </rich:menuItem>
       <rich:menuItem submitMode="ajax">
       <h:commandLink value="Ruby" >
       <a4j:actionparam name="skin" value="ruby" assignTo="#{com.clooster.web.ejb.session.skinBean.skin}"/>
       </h:commandLink>
       </rich:menuItem>
       <rich:menuItem submitMode="ajax">
       <h:commandLink value="Sakura" >
       <a4j:actionparam name="skin" value="japanCherry" assignTo="#{com.clooster.web.ejb.session.skinBean.skin}"/>
       </h:commandLink>
       </rich:menuItem>
       <rich:menuItem submitMode="ajax">
       <h:commandLink value="Wine" >
       <a4j:actionparam name="skin" value="wine" assignTo="#{com.clooster.web.ejb.session.skinBean.skin}"/>
       </h:commandLink>
       </rich:menuItem>
       </rich:menuGroup>
      </rich:dropDownMenu>
      
      


      Anyone have any ideas?