3 Replies Latest reply on Oct 2, 2007 10:24 PM by samdoyle

    What the heck!!!!!!!!!!?????

    samdoyle

      I'm really starting to lose faith in Seam as I go beyond the simple tutorials and examples.

      javax.el.PropertyNotFoundException: /notificationAdmin.xhtml @50,99
      value="#{notificationManager.agencyIncidentTypes}": The
      class 'org.javassist.tmp.java.lang.Object_$$_javassist_1' does not have
      the property 'agencyIncidentTypes'.
      


      And clearly notificationManager does!!

      @Stateful
      @Name("notificationManager")
      @Scope(ScopeType.CONVERSATION)
      @Restrict("#{s:hasRole('ultra-user')}")
      public class NotificationManagerBean
       implements NotificationManagerLocal {
      
       @DataModel
       private List<Agency> agencies;
      
       @EJB
       private AgencyFacadeLocal agencyFacade;
      
       @Out(scope=ScopeType.CONVERSATION)
       private List<IncidentType> agencyIncidentTypes =
       new ArrayList<IncidentType>();
      
       /** Creates a new instance of NotificationManagerBean */
       public NotificationManagerBean() {
       }
      
       @Begin(join=true) // Start the conversation.
       @Factory("agencies") // for #{agencies} as done now
       public void factoryAgencies()
       {
       this.agencies =
       agencyFacade.findAll();
       }
      
       public void getAgencyIncidentTypes( Agency selectedAgency )
       {
       this.agencyIncidentTypes = selectedAgency.getAgencyIncidentTypes();
       }
      
       // Ends the conversation via cancel operation.
       @End
       public void cancel() {}
      
       // Ends the conversation via the apply operation.
       @End
       public void apply() {}
      
       @Remove
       public void destroy() {}
      
      }
      


      Here is the 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.ajax4jsf.org/rich"
       xmlns:a4j="https://ajax4jsf.dev.java.net/ajax"
       xmlns:c="http://java.sun.com/jstl/core"
       template="layout/template3col.xhtml">
      
       <h:messages globalOnly="true" styleClass="message"/>
      
       <ui:param name="activeTab" value="NotificationAdmin"/>
      
      
       <ui:define name="leftsidebar">
       <rich:panel>
       <h:form>
       <rich:dataTable id="agencies"
       var="agency" value="#{agencies}">
      
       <f:facet name="header">
       <rich:columnGroup>
       <rich:column>
       <h:outputText value="Agency Name" />
       </rich:column>
       </rich:columnGroup>
       </f:facet>
      
       <rich:column>
       <a4j:commandLink type="submit"
       value="#{agency.agencyName}"
       reRender="incidenttypes"
       action="#{notificationManager.getAgencyIncidentTypes(agency)}"/>
       <!-- s:link action="#{notificationManager.getAgencyIncidentTypes(agency)}" value="#{agency.agencyName}"/ -->
       <!-- h:outputText value="#{agency.agencyName}" / -->
       </rich:column>
      
       </rich:dataTable>
       </h:form>
       </rich:panel>
       </ui:define>
      
       <ui:define name="content">
       <rich:panel>
       <h:form>
       <rich:dataTable id="incidenttypes"
       var="incidentType" value="#{notificationManager.agencyIncidentTypes}">
      
       <f:facet name="header">
       <rich:columnGroup>
       <rich:column>
       <h:outputText value="Incident Type" />
       </rich:column>
       </rich:columnGroup>
       </f:facet>
      
       <rich:column>
       <h:outputText value="#{incidentType.description}" />
       </rich:column>
      
       </rich:dataTable>
       </h:form>
       </rich:panel>
       </ui:define>
      
       <ui:define name="rightsidebar">
       </ui:define>
      
      </ui:composition>
      


      I'm really starting to lose faith in Seam.