1 Reply Latest reply on May 30, 2008 7:31 AM by Shervin Asgari

    toolbar style and login style changed after upgrading to 3.2

    Shervin Asgari Master

      Hello.

      I had a seam-gen application that generated the view for me.
      But after updating to new richfaces version, the login css and menu is broken.

      Here is the menu.xhtml

      <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"/>
       </rich:toolBarGroup>
      
       <s:link view="/PersonList.xhtml"
       value="Person List"
       propagation="none"/>
       <s:link view="/UserList.xhtml"
       value="User List"
       propagation="none"/>
       <s:link view="/ProeveList.xhtml"
       value="Proeve List"
       propagation="none"/>
       <s:link view="/FylkeList.xhtml"
       value="Fylke List"
       propagation="none"/>
       <s:link view="/KommuneList.xhtml"
       value="Kommune List"
       propagation="none"/>
       <s:link view="/BevillingList.xhtml"
       value="Bevilling List"
       propagation="none"/>
       <s:link view="/PoststedList.xhtml"
       value="Poststed List"
       propagation="none"/>
       <s:link view="/SaksbehandlerList.xhtml"
       value="Saksbehandler List"
       propagation="none"/>
      
      
       <!-- @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>
      


      Here is my login.xhtml

      <!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <ui:composition xmlns="http://www.w3.org/1999/xhtml"
       xmlns:s="http://jboss.com/products/seam/taglib"
       xmlns:ui="http://java.sun.com/jsf/facelets"
       xmlns:f="http://java.sun.com/jsf/core"
       xmlns:h="http://java.sun.com/jsf/html"
       xmlns:rich="http://richfaces.org/rich"
       template="layout/template.xhtml">
      
      <ui:define name="body">
      
       <h:messages styleClass="message"/>
      
       <h:form id="login">
      
       <rich:panel>
       <f:facet name="header">Login</f:facet>
      
       <p>Please login here</p>
      
       <div class="dialog">
       <h:panelGrid columns="2" rowClasses="prop" columnClasses="name,value">
       <h:outputLabel for="username">Username</h:outputLabel>
       <h:inputText id="username"
       value="#{identity.username}"/>
       <h:outputLabel for="password">Password</h:outputLabel>
       <h:inputSecret id="password"
       value="#{identity.password}"/>
       </h:panelGrid>
       </div>
      
       <p>
       <i>Note - </i> Please ask the administrator to give you a login/password if you do not have any.
       </p>
      
       </rich:panel>
      
       <div class="actionButtons">
       <h:commandButton value="Login" action="#{identity.login}"/>
       </div>
      
       </h:form>
      
       </ui:define>
      </ui:composition>
      


      Anybody know why this is?
      I have googled, and found some issues with JSF. So I upgraded the JSF 1.2.08 and facelets 1.1.14 but that didnt help