3 Replies Latest reply on Nov 6, 2007 12:41 PM by Rosi Petri

    get javax.el.ELException exception with a4j:support

    Rosi Petri Newbie

      Hi

      I have tried so many solutions in web but nothing works! So I don't know what I can do now. This is my environment:

      myfaces 1.1.5
      richfaces 3.0.1
      ajax4jsf 1.1.1
      tomahawk-facelets 1.1.6
      jsf-facelets

      Here is the exception I got when I load my xhtml pages:

      05.11.2007 15:28:17 com.sun.facelets.FaceletViewHandler handleRenderException
      SCHWERWIEGEND: Error Rendering View[/wopiMain.xhtml]
      javax.el.ELException: /wopiPersonen.xhtml: Bean: ui.web.beans.PersonBean, property: copyVTtoVN
       at com.sun.facelets.compiler.UIText.encodeBegin(UIText.java:51)
       at org.apache.myfaces.shared_impl.renderkit.RendererUtils.renderChild(RendererUtils.java:412)
       at org.apache.myfaces.shared_impl.renderkit.RendererUtils.renderChildren(RendererUtils.java:400)
       at org.apache.myfaces.shared_impl.renderkit.RendererUtils.renderChild(RendererUtils.java:417)
       at org.apache.myfaces.shared_impl.renderkit.html.HtmlGridRendererBase.renderChildren(HtmlGridRendererBase.java:229)
       at org.apache.myfaces.shared_impl.renderkit.html.HtmlGridRendererBase.encodeEnd(HtmlGridRendererBase.java:101)
       at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:539)
       at com.sun.facelets.FaceletViewHandler.encodeRecursive(FaceletViewHandler.java:565)
       at com.sun.facelets.FaceletViewHandler.encodeRecursive(FaceletViewHandler.java:562)
      
      


      Here is my xhtml part:

       <t:inputText
       id="nameinput"
       tabindex="1"
       value="#{wopiBean.angebot.Person.nachname.stringValue}"
       title="#{msg.wopi_person_name_hilfe}">
       <a4j:support
       id="namea4j"
       event="onchange"
       reRender="nameinput,vn_nameinput,messagesout"
       actionListener="#{wopiBean.personbean.copyVTtoVN}"
       eventsQueue="person" />
       </t:inputText>
      


      So, perhaps here is someone who had the same problems.

      thanks

        • 1. Re: get javax.el.ELException exception with a4j:support
          Ilya Shaikovsky Master

          seems like you configured something wrong, Show us web.xml. And one more.. are you configured facelets in your faces-config?

          • 2. Re: get javax.el.ELException exception with a4j:support
            Rosi Petri Newbie

            Here are the files but I did change so much.. so I don't know if its all needed..

            I removed the config of facelets in faces-config file and placed it into web.xml as it is described as a solution for my problem.

            faces-config:

            <?xml version="1.0" encoding="UTF-8"?>
            <!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN" "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
            
            <faces-config>
            
             <application>
             <locale-config>
             <default-locale>de</default-locale>
             </locale-config>
             </application>
            
            </faces-config>
            
            
            


            web xml:

            <?xml version="1.0" encoding="UTF-8"?>
            <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.4"
             xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
             <servlet>
             <servlet-name>Faces Servlet</servlet-name>
             <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
             <load-on-startup>0</load-on-startup>
             </servlet>
            
             <!-- JSF -->
             <servlet-mapping>
             <servlet-name>Faces Servlet</servlet-name>
             <url-pattern>*.faces</url-pattern>
             </servlet-mapping>
             <servlet-mapping>
             <servlet-name>Faces Servlet</servlet-name>
             <url-pattern>*.jsf</url-pattern>
             </servlet-mapping>
            
             <context-param>
             <param-name>org.apache.myfaces.PRETTY_HTML</param-name>
             <param-value>false</param-value>
             </context-param>
             <context-param>
             <param-name>org.apache.myfaces.ALLOW_JAVASCRIPT</param-name>
             <param-value>true</param-value>
             </context-param>
             <context-param>
             <param-name>org.apache.myfaces.DETECT_JAVASCRIPT</param-name>
             <param-value>false</param-value>
             </context-param>
             <context-param>
             <param-name>org.apache.myfaces.AUTO_SCROLL</param-name>
             <param-value>true</param-value>
             </context-param>
             <context-param>
             <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
             <param-value>.xhtml</param-value>
             </context-param>
             <!-- UI performance tweaking -->
             <context-param>
             <param-name>org.apache.myfaces.ADD_RESOURCE_CLASS</param-name>
             <param-value>org.apache.myfaces.component.html.util.StreamingAddResource</param-value>
             </context-param>
             <context-param>
             <param-name>org.apache.myfaces.COMPRESS_STATE_IN_SESSION</param-name>
             <param-value>false</param-value>
             </context-param>
             <context-param>
             <param-name>org.apache.myfaces.SERIALIZE_STATE_IN_SESSION</param-name>
             <param-value>false</param-value>
             </context-param>
             <context-param>
             <param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>
             <param-value>com.sun.facelets.FaceletViewHandler</param-value>
             </context-param>
             <context-param>
             <param-name>facelets.VIEW_MAPPINGS</param-name>
             <param-value>*.xhtml</param-value>
             </context-param>
            
             <!-- Special Debug Output for Development -->
             <context-param>
             <param-name>facelets.DEVELOPMENT</param-name>
             <param-value>true</param-value>
             </context-param>
            
             <context-param>
             <param-name>facelets.BUFFER_SIZE</param-name>
             <param-value>8192</param-value>
             </context-param>
            
             <filter>
             <filter-name>MyFacesExtensionsFilter</filter-name>
             <filter-class>
             org.apache.myfaces.webapp.filter.ExtensionsFilter
             </filter-class>
             <init-param>
             <param-name>maxFileSize</param-name>
             <param-value>20m</param-value>
             </init-param>
             <init-param>
             <param-name>uploadThresholdSize</param-name>
             <param-value>100k</param-value>
             </init-param>
             <init-param>
             <param-name>uploadRepositoryPath</param-name>
             <param-value>/temp</param-value>
             </init-param>
             </filter>
             <filter>
             <display-name>Ajax4jsf Filter</display-name>
             <filter-name>ajax4jsf</filter-name>
             <filter-class>org.ajax4jsf.Filter</filter-class>
             <init-param>
             <param-name>forceparser</param-name>
             <param-value>false</param-value>
             </init-param>
             </filter>
            
             <filter-mapping>
             <filter-name>ajax4jsf</filter-name>
             <servlet-name>Faces Servlet</servlet-name>
             <dispatcher>REQUEST</dispatcher>
             <dispatcher>FORWARD</dispatcher>
             <!-- tjaensch: Why this?
             <dispatcher>INCLUDE</dispatcher>
             -->
             </filter-mapping>
             <!-- extension mapping for adding <script/>, <link/>, and other resource tags to JSF-pages -->
             <filter-mapping>
             <filter-name>MyFacesExtensionsFilter</filter-name>
             <!-- servlet-name must match the name of your javax.faces.webapp.FacesServlet entry -->
             <servlet-name>Faces Servlet</servlet-name>
             </filter-mapping>
            
            
             <filter-mapping>
             <filter-name>MyFacesExtensionsFilter</filter-name>
             <url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
             </filter-mapping>
            
            </web-app>
            
            
            


            • 3. Re: get javax.el.ELException exception with a4j:support
              Rosi Petri Newbie

              I solved it:

              I removed richfaces 3.0.1 and ajax4jsf 1.1.1 jar libs from my project and added

              richfaces-api-3.1.0.jar
              richfaces-impl-3.1.0.jar
              richfaces-ui-3.1.0.jar

              then there are no more errors.

              Thanks for every effort.
              rosi