1 Reply Latest reply on Jun 17, 2008 7:41 PM by Dick Starr

    rich:menuItem works differently with Seam 2.0.2.SP1

    Dick Starr Newbie

      I generated a starter app with Seam 2.0.1.GA seam-gen. I used rich:menuItem within my toolBar. I see my browser page replaced when I click on a toolBar menuItem; after upgrading to Seam 2.0.2.SP1 nothing happens when I click those same menuItem links. I can, however, right click the link and open a new tab or new web page to successfully go to that link.


      What do I need to change to make the toolBar links work like before (replace my existing web page)?


      To provide a simple test case I generated a starter app with Seam 2.0.2.SP1 seam-gen with a single rich:menuItem link, and it fails as described above. Here is the toolBar:



      <rich:toolBar
          xmlns="http://www.w3.org/1999/xhtml"
          xmlns:ui="http://java.sun.com/jsf/facelets"
          xmlns:h="http://java.sun.com/jsf/html"
          xmlns:f="http://java.sun.com/jsf/core"
          xmlns:s="http://jboss.com/products/seam/taglib"
          xmlns:rich="http://richfaces.org/rich">
          <rich:toolBarGroup>
              <h:outputText value="#{projectName}:"/>
              <s:link view="/home.xhtml" value="Home"/>
              
          <h:form>      
            <rich:dropDownMenu value="Links...">
              
              <rich:menuItem>          
                <h:outputLink value="http://www.medibadge.com">
                  <h:outputText value="medibadge"/>
                </h:outputLink>
              </rich:menuItem>
            
            </rich:dropDownMenu>      
          </h:form>
              
          </rich:toolBarGroup>
          
          <!-- @newMenuItem@ -->
          <rich:toolBarGroup location="right">
              <h:outputText value="Welcome, #{identity.username}!" rendered="#{identity.loggedIn}"/>
              <s:link view="/login.xhtml" value="Login" rendered="#{not identity.loggedIn}"/>
              <s:link view="/home.xhtml" action="#{identity.logout}" value="Logout" rendered="#{identity.loggedIn}"/>
          </rich:toolBarGroup>
      </rich:toolBar>



      I am using jboss-4.2.2.GA.


      Thanks in advance,


      Dick Starr