3 Replies Latest reply on Apr 6, 2011 8:14 AM by Victor Augusto Zago Menegusso

    logical expression in  rendered error

    Victor Augusto Zago Menegusso Newbie

      Hello everybody, I'm having the following problem when I use a logical expression in rendered, does not work, does the following error:

       

      2011-04-05 09:58:38,554 SEVERE [facelets.viewhandler] (http-localhost%2F127.0.0.1-8080-4) Error Rendering View[/pages/welcome.xhtml]
      com.sun.facelets.FaceletException: Error Parsing /pages/welcome.xhtml: Error Traced[line: 562] The entity name must immediately follow the '&' in the entity reference.
      
      
      
      

       

      xhtml

      <h:commandLink action="#{Controlador.botaoSelecionaOcorrenciaape_09_38_56_630}" rendered="#{Controlador.atividadeSolicitada == 'ape_09_38_56_630' && ape_09_38_56_630.n_Ocorrencias > 0 }" >
           <h:graphicImage url="/imagens/seleciona0.png" style="border:0px;"/>
      </h:commandLink>
      
      

       

      web.xml

       

      <?xml version="1.0" encoding="UTF-8"?>
      <web-app xmlns="http://java.sun.com/xml/ns/javaee" 
                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                version="2.5"
                xsi:schemaLocation="http://java.sun.com/xml/ns/javaee   
                            http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">   
         <context-param>
              <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
              <param-value>.xhtml</param-value>
          </context-param>
                <context-param>
                          <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
                          <param-value>server</param-value>
                </context-param>
                <context-param>
                          <param-name>javax.portlet.faces.renderPolicy</param-name>
                          <param-value>NEVER_DELEGATE</param-value>
                </context-param>
                <context-param>
                          <param-name>org.richfaces.SKIN</param-name>
                          <param-value>blueSky</param-value>
                </context-param>
                <context-param>
                          <param-name>org.richfaces.CONTROL_SKINNING</param-name>
                          <param-value>enable</param-value>
                </context-param>
                    <context-param>
              <param-name>org.ajax4jsf.handleViewExpiredOnClient</param-name>
              <param-value>true</param-value>
          </context-param>
                <filter>
                          <display-name>RichFaces Filter</display-name> 
                          <filter-name>richfaces</filter-name> 
                          <filter-class>org.ajax4jsf.Filter</filter-class> 
                          <init-param>  
                                    <param-name>createTempFiles</param-name>  
                                    <param-value>false</param-value>  
                          </init-param>  
                          <init-param>  
                                    <param-name>maxRequestSize</param-name>  
                                    <param-value>550000</param-value> 
                          </init-param> 
                </filter>
                <filter-mapping> 
                          <filter-name>richfaces</filter-name> 
                          <servlet-name>Faces Servlet</servlet-name>
                          <dispatcher>REQUEST</dispatcher>
                          <dispatcher>FORWARD</dispatcher>
                          <dispatcher>INCLUDE</dispatcher>
                </filter-mapping>
                <listener>
                          <listener-class>com.sun.faces.config.ConfigureListener</listener-class>
                </listener>
                <servlet>
                          <servlet-name>Faces Servlet</servlet-name>
                          <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
                          <load-on-startup>1</load-on-startup>
                </servlet>
                <servlet-mapping>
                          <servlet-name>Faces Servlet</servlet-name>
                          <url-pattern>/faces/*</url-pattern>
                </servlet-mapping>
      </web-app>
      
      
      I'm using
      richfaces 3.3.3
      
      JSF 1.2
      
      Facelets
      
      
      
      Thanks