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
It works as expected if I replace RichFaces 3.1.4.GA (included with Seam 2.0.2.SP1) with RichFaces 3.2.1.GA. Seam 2.0.1.GA used RichFaces 3.1.3.GA.