1 Reply Latest reply on Sep 20, 2008 3:19 AM by Ravi Sathish

    Property (a4j actionListener method) not found on type arb.brb.crb.LoginAction_$$_javassist_1

    Ravi Sathish Newbie

      Seam, JSF and EJB3 newbie
      Setup: Seam 2.0.2 SP1, Tomcat 6.0.x, XP SP3


      Goal: Trying to implement a4j actionListener for a selectOne menu
      I have 2 comboBoxes; some select combinations will make visible a a4j outPanel



      /login.xhtml declarations looks like this




      xmlns="http://www.w3.org/1999/xhtml"
            xmlns:s="http://jboss.com/products/seam/taglib"
            xmlns:h="http://java.sun.com/jsf/html"
            xmlns:f="http://java.sun.com/jsf/core"
                xmlns:a="http://richfaces.org/a4j"
                xmlns:ui="http://java.sun.com/jsf/facelets"




      a4j code looks like this




      SRB AuthenticationScheme       *
                                                <h:selectOneMenu id="authSchemeMenu" value="#{loginBean.authenticationScheme}" required = "true">
                                                      <!-- RAVI changing on 09/18/2008 -->
                                                      <a:support event="onchange"  reRender="gssFieldsRegion" renderRegionOnly="true" actionListener="#{login.authorizationFieldsSetUp}"/>
                                                      <s:selectItems value="#{loginBean.availableAuthenticationSchemes}" var="auth" label="#{auth}" />
                                                                </h:selectOneMenu>
                                                                          
                                              SRB DataTransferScheme  *
                                                  <h:selectOneMenu id="dataTransferCombobox" value="#{loginBean.dataTransferScheme}" required = "true">
                                                      <!-- RAVI changing on 09/18/2008 -->
                                                      <a:support event="onchange"  reRender="gssFieldsRegion" renderRegionOnly="true"/>
                                                      <s:selectItems value="#{loginBean.availableDataTransferSchemes}" var="dataTransfer" label="#{dataTransfer}" />
                                                  </h:selectOneMenu>



      Login Interface Looks like this:


      @Local
      public interface Login
      {
          void authorizationFieldsSetUp();
          String login();
      }




      Login Action Looks like this:


      @Name("login")
      @Scope(SESSION)
      public class LoginAction implements Login
      {
         
         @In @Out
         private LoginBean loginBean;
      
      ....
      
      public void authorizationFieldsSetUp()
         {
             log.debug("ENTER: authorizationFieldsSetUp()");
             if(loginBean != null)
             {
                 String authenticationScheme =  loginBean.getAuthenticationScheme();
      




      Finally Exception Trace


      :


      exception
      javax.servlet.ServletException: /login.xhtml: Property 'authorizationFieldsSetUp' not found on type arb.brb.crb.LoginAction_$$_javassist_1
              javax.faces.webapp.FacesServlet.service(FacesServlet.java:256)
              org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
              org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
              org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      root cause
      javax.el.ELException: /login.xhtml: Property 'authorizationFieldsSetUp' not found on type nirvana.srb.webAdmin.LoginAction_$$_javassist_2
              com.sun.facelets.compiler.AttributeInstruction.write(AttributeInstruction.java:53)
              com.sun.facelets.compiler.UIInstructions.encodeBegin(UIInstructions.java:39)