5 Replies Latest reply on Aug 30, 2011 6:32 PM by teroxik

    Property Not Readable on type java.lang.Integer

    parisetflorian

      Hello the community!


      First time I need your advices as I'm driving crazy with this issue.

       

      Here is the stack-trace I get:

       

      javax.el.PropertyNotFoundException: Property 'idInstanceCours' not readable on type java.lang.Integer

                at javax.el.BeanELResolver$BeanProperty.read(BeanELResolver.java:259)

                at javax.el.BeanELResolver$BeanProperty.access$000(BeanELResolver.java:209)

                at javax.el.BeanELResolver.getValue(BeanELResolver.java:60)

                at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)

                at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:72)

                at org.jboss.el.parser.AstPropertySuffix.getValue(AstPropertySuffix.java:53)

                at org.jboss.el.parser.AstValue.getValue(AstValue.java:67)

                at org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)

                at org.jboss.seam.core.Expressions$1.getValue(Expressions.java:112)

                at org.jboss.seam.navigation.Param.getStringValueFromModel(Param.java:137)

                at org.jboss.seam.navigation.Pages.updateStringValuesInPageContextUsingModel(Pages.java:901)

                at org.jboss.seam.jsf.SeamStateManager.saveView(SeamStateManager.java:86)

                at org.ajax4jsf.application.AjaxStateManager.saveSerializedView(AjaxStateManager.java:429)

                at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:615)

                at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)

                at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:196)

                at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:109)

                at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)

                at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)

                at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

                at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)

                at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)

                at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)

                at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)

                at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)

                at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)

                at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)

                at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)

                at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)

                at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:177)

                at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:267)

                at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:380)

                at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:507)

                at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)

                at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)

                at org.jboss.seam.web.HotDeployFilter.doFilter(HotDeployFilter.java:53)

                at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)

                at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

                at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)

                at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

                at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)

                at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)

                at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

                at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

                at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)

                at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)

                at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)

                at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)

                at java.lang.Thread.run(Thread.java:680)

       

      From what I understand something is trying to call the method getIdInstanceCours() on an Integer Object which obviously doesn't exist since it is a method of the InstanceCours object.

       

      I found here that it could be cause by having :

       

      @Name("regionHome")

      class RegionHome extends EntityHome<Region> {

       

      Instead of

       

      @Name("regionHome")

      public class RegionHome extends EntityHome<Region> {

       

      Which is not the issue here...

      I also made a search on the whole project about for "getIdInstanceCours()" to see if any would have been called on an Integer object.

      I tried many things to be honest.

       

       

      Can you tell me what would you need to help me sort this problem out? I've never asked any question like this previously and tried to solve my issues myself.

       

      Many Thanks!
      Florian

        • 1. Re: Property Not Readable on type java.lang.Integer
          teroxik

          Hi Florian,

          could you tell me, when you get this error. When deploying the application, or on a site. If it is on site, post the code of the site. Do you have the interface of Home component?

          • 2. Re: Property Not Readable on type java.lang.Integer
            parisetflorian

            Hi Michael,

             

            I get the error when trying to access the page (the application is deployed and running fine). I have a Home component.

             

            Here is the code of Raport.xhtml which trigger the error:

             

            <?xml version="1.0" encoding="utf-8"?>

            <!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:a="http://richfaces.org/a4j"

              xmlns:rich="http://richfaces.org/rich"

              template="layout/templateEmpty.xhtml">

             

              <ui:define name="body">

             

              <br/>

                                <h1>#{rapportHome.titre}</h1>

             

             

              <s:div id="etudiantResults" style="clear: both;">

              <h:outputText value="Il n'y a pas d'Žtudiant."

              rendered="#{empty etudiantList.etudiantLists}" />

              <h:panelGrid columns="2" style="width:100%" columnClasses="valigntop">

              <rich:dataTable value="#{etudiantList.listeEtudiantsFirstHalf}"

              var="_etudiant" rendered="#{not empty etudiantList.listeEtudiants}"

              rowClasses="rvgRowOne,rvgRowTwo" id="etudiantDatatable">

              <rich:column width="50">

              <f:facet name="header">Photo</f:facet>

              <s:span rendered="#{_etudiant.compte.statuCarte == 'n' or _etudiant.compte.statuCarte == 'c'}">

              <img src="TOKEEP/photosLibrary/#{_etudiant.compte.email}.jpg" height="65" width="50"/>

                                                                        </s:span>

              <s:span rendered="#{!(_etudiant.compte.statuCarte == 'n' or _etudiant.compte.statuCarte == 'c')}">

              <img src="img/unknown.png" height="65" width="50"/>

                                                                        </s:span>

              </rich:column>

             

              <rich:column sortBy="#{_etudiant.compte.prenom}" sortOrder="ASCENDING">

              <f:facet name="header">Nom</f:facet>

              <h:outputText style="#{_etudiant.preInscrit ? 'color:red' : 'color:green'}"

              value="#{_etudiant.compte.prenom} #{_etudiant.compte.nom}" />

              </rich:column>

             

              <rich:column>

                                                                                  <f:facet name="header">Num. tŽlŽphone</f:facet>

              <h:outputText value="#{_etudiant.compte.numeroTelephone}" />

              </rich:column>

             

              </rich:dataTable>

             

              <rich:dataTable value="#{etudiantList.listeEtudiantsSecHalf}"

              var="_etudiant" rendered="#{not empty etudiantList.listeEtudiants}"

              rowClasses="rvgRowOne,rvgRowTwo" id="etudiantDatatable">

              <rich:column width="50">

              <f:facet name="header">Photo</f:facet>

              <s:span rendered="#{_etudiant.compte.statuCarte == 'n' or _etudiant.compte.statuCarte == 'c'}">

              <img src="TOKEEP/photosLibrary/#{_etudiant.compte.email}.jpg" height="65" width="50"/>

                                                                        </s:span>

              <s:span rendered="#{!(_etudiant.compte.statuCarte == 'n' or _etudiant.compte.statuCarte == 'c')}">

              <img src="img/unknown.png" height="65" width="50"/>

                                                                        </s:span>

              </rich:column>

             

              <rich:column sortBy="#{_etudiant.compte.prenom}" sortOrder="ASCENDING">

              <f:facet name="header">Nom</f:facet>

             

              <h:outputText style="#{_etudiant.preInscrit ? 'color:red' : 'color:green'}"

              value="#{_etudiant.compte.prenom} #{_etudiant.compte.nom}" />

              </rich:column>

             

              <rich:column>

                                                                                  <f:facet name="header">Num. tŽlŽphone</f:facet>

              <h:outputText value="#{_etudiant.compte.numeroTelephone}" />

              </rich:column>

             

              </rich:dataTable>

              </h:panelGrid>

                                          <br/>

              <s:span rendered="#{rapportHome.cours != null or rapportHome.instanceCours != null}">

                                                    <p style="color: red">Ambulance : 144     |     Pompier : 118     |     Police : 117</p>

              <p><h:outputText value="#{rapportHome.responsableRegion.prenom} #{rapportHome.responsableRegion.nom} (Resp. Reg) : #{rapportHome.responsableRegion.numeroTelephone} "

              rendered="#{rapportHome.responsableRegion !=null}"  /></p>

              <p><h:outputText  value="#{rapportHome.responsableFaculte.prenom} #{rapportHome.responsableFaculte.prenom} (Resp. Fac) : #{rapportHome.responsableFaculte.numeroTelephone}"

              rendered="#{rapportHome.responsableFaculte !=null}" /></p> 

              <p><h:outputText value="#{rapportHome.professeur.prenom} #{rapportHome.professeur.nom} (Prof) : #{rapportHome.professeur.numeroTelephone}"

              rendered="#{rapportHome.professeur !=null}"/></p> 

             

              </s:span>

              </s:div>

             

              </ui:define>

             

            </ui:composition>

             

             

             

             

            Here is the code of Rapport.page.xml:

             

            <?xml version="1.0" encoding="UTF-8"?>

            <page xmlns="http://jboss.com/products/seam/pages" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

              xsi:schemaLocation="http://jboss.com/products/seam/pages http://jboss.com/products/seam/pages-2.1.xsd"

              no-conversation-view-id="/GestionCours.xhtml" login-required="true">

                  

              <action execute="#{rapportHome.wire}" />

             

              <param name="idInstanceCours" value="#{rapportHome.idInstanceCours}" />

              <param name="idCours" value="#{rapportHome.idCours}" />

             

             

            </page>

             


             

             

            Here is the code of RapportHome.java:

             

            package guigoo.action;

             

             

            import java.io.Serializable;

             

             

            import guigoo.model.Compte;

            import guigoo.model.Cours;

            import guigoo.model.InstanceCours;

             

             

            import javax.persistence.EntityManager;

             

             

            import org.jboss.seam.ScopeType;

            import org.jboss.seam.annotations.In;

            import org.jboss.seam.annotations.Name;

            import org.jboss.seam.annotations.Scope;

             

             

            @Name("rapportHome")

            @Scope(ScopeType.CONVERSATION)

            public class RapportHome implements Serializable{

                      @In          EntityManager entityManager;

             

                      private static final long serialVersionUID = 1L;

             

                      private Integer idCours;

                      private Integer idInstanceCours;

             

                      private Cours cours;

                      private InstanceCours instanceCours;

             

                      private Compte professeur;

                      private Compte responsableFaculte;

                      private Compte responsableRegion;

             

             

             

                      public void wire() {

                                if(instanceCours == null && idInstanceCours!=null) {

                                          instanceCours = entityManager.find(InstanceCours.class, idInstanceCours);

                                          cours = instanceCours.getCours();

             

                                          if(instanceCours.getProfesseur()!=null)

                                                    professeur=instanceCours.getProfesseur().getCompte();

             

                                          initiateContacts();

             

             

                                }

                                else if(cours == null && idCours!=null) {

                                          cours = entityManager.find(Cours.class, idCours);

             

                                          initiateContacts();

                                }

                      }

             

                      public void initiateContacts(){

                                if(cours.getSession().getLocalisation().getRegion().getResponsableRegion()!=null)

                                          responsableRegion =  cours.getSession().getLocalisation().getRegion().getResponsableRegion().getCompte();

                                if(cours.getSession().getLocalisation().getResponsableFaculte()!=null)

                                          responsableFaculte = cours.getSession().getLocalisation().getResponsableFaculte().getCompte();

                      }

             

             

             

             

                      public Integer geIdInstanceCours() {

                                return idInstanceCours;

                      }

             

             

                      public void setIdInstanceCours(Integer idInstanceCours) {

                                this.idInstanceCours = idInstanceCours;

                      }

             

             

                      public InstanceCours getInstanceCours() {

                                return instanceCours;

                      }

             

                      public Integer geIdCours() {

                                return idCours;

                      }

             

             

                      public void setIdCours(Integer idCours) {

                                this.idCours = idCours;

                      }

             

             

                      public Cours getCours() {

                                return cours;

                      }

             

                      public Compte getResponsableRegion(){

                                return responsableRegion;

                      }

             

                      public Compte getResponsableFaculte(){

                                if(getResponsableRegion()!=null && getResponsableRegion().equals(responsableFaculte))

                                          return null;

                                return responsableFaculte;

                      }

             

             

                      public Compte getProfesseur(){

                                if(getResponsableFaculte()!=null && getResponsableFaculte().equals(professeur))

                                          return null;

                                return professeur;

                      }

             

                      public String getTitre(){

                                String titre = "Liste des étudiants";

                                if(instanceCours!=null)

                                          titre += " : Groupe" + instanceCours.getTitreInstance();

                                if(cours!=null)

                                          titre += " - " + cours.getLibelle();

                                return titre;

                      }

            }

             

             

             

            Thank you for your reply. Just tell me if you need anything else.

            Florian

            • 3. Re: Property Not Readable on type java.lang.Integer
              teroxik

              parisetflorian wrote:

               

              Hi Michael,

               

              I get the error when trying to access the page (the application is deployed and running fine). I have a Home component.

               

              Here is the code of Raport.xhtml which trigger the error:

               

              <?xml version="1.0" encoding="utf-8"?>

              <!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:a="http://richfaces.org/a4j"

                xmlns:rich="http://richfaces.org/rich"

                template="layout/templateEmpty.xhtml">

               

                <ui:define name="body">

               

                <br/>

                                  <h1>#{rapportHome.titre}</h1>

               

               

                <s:div id="etudiantResults" style="clear: both;">

                <h:outputText value="Il n'y a pas d'Žtudiant."

                rendered="#{empty etudiantList.etudiantLists}" />

                <h:panelGrid columns="2" style="width:100%" columnClasses="valigntop">

                <rich:dataTable value="#{etudiantList.listeEtudiantsFirstHalf}"

                var="_etudiant" rendered="#{not empty etudiantList.listeEtudiants}"

                rowClasses="rvgRowOne,rvgRowTwo" id="etudiantDatatable">

                <rich:column width="50">

                <f:facet name="header">Photo</f:facet>

                <s:span rendered="#{_etudiant.compte.statuCarte == 'n' or _etudiant.compte.statuCarte == 'c'}">

                <img src="TOKEEP/photosLibrary/#{_etudiant.compte.email}.jpg" height="65" width="50"/>

                                                                          </s:span>

                <s:span rendered="#{!(_etudiant.compte.statuCarte == 'n' or _etudiant.compte.statuCarte == 'c')}">

                <img src="img/unknown.png" height="65" width="50"/>

                                                                          </s:span>

                </rich:column>

               

                <rich:column sortBy="#{_etudiant.compte.prenom}" sortOrder="ASCENDING">

                <f:facet name="header">Nom</f:facet>

                <h:outputText style="#{_etudiant.preInscrit ? 'color:red' : 'color:green'}"

                value="#{_etudiant.compte.prenom} #{_etudiant.compte.nom}" />

                </rich:column>

               

                <rich:column>

                                                                                    <f:facet name="header">Num. tŽlŽphone</f:facet>

                <h:outputText value="#{_etudiant.compte.numeroTelephone}" />

                </rich:column>

               

                </rich:dataTable>

               

                <rich:dataTable value="#{etudiantList.listeEtudiantsSecHalf}"

                var="_etudiant" rendered="#{not empty etudiantList.listeEtudiants}"

                rowClasses="rvgRowOne,rvgRowTwo" id="etudiantDatatable">

                <rich:column width="50">

                <f:facet name="header">Photo</f:facet>

                <s:span rendered="#{_etudiant.compte.statuCarte == 'n' or _etudiant.compte.statuCarte == 'c'}">

                <img src="TOKEEP/photosLibrary/#{_etudiant.compte.email}.jpg" height="65" width="50"/>

                                                                          </s:span>

                <s:span rendered="#{!(_etudiant.compte.statuCarte == 'n' or _etudiant.compte.statuCarte == 'c')}">

                <img src="img/unknown.png" height="65" width="50"/>

                                                                          </s:span>

                </rich:column>

               

                <rich:column sortBy="#{_etudiant.compte.prenom}" sortOrder="ASCENDING">

                <f:facet name="header">Nom</f:facet>

               

                <h:outputText style="#{_etudiant.preInscrit ? 'color:red' : 'color:green'}"

                value="#{_etudiant.compte.prenom} #{_etudiant.compte.nom}" />

                </rich:column>

               

                <rich:column>

                                                                                    <f:facet name="header">Num. tŽlŽphone</f:facet>

                <h:outputText value="#{_etudiant.compte.numeroTelephone}" />

                </rich:column>

               

                </rich:dataTable>

                </h:panelGrid>

                                            <br/>

                <s:span rendered="#{rapportHome.cours != null or rapportHome.instanceCours != null}">

                                                      <p style="color: red">Ambulance : 144     |     Pompier : 118     |     Police : 117</p>

                <p><h:outputText value="#{rapportHome.responsableRegion.prenom} #{rapportHome.responsableRegion.nom} (Resp. Reg) : #{rapportHome.responsableRegion.numeroTelephone} "

                rendered="#{rapportHome.responsableRegion !=null}"  /></p>

                <p><h:outputText  value="#{rapportHome.responsableFaculte.prenom} #{rapportHome.responsableFaculte.prenom} (Resp. Fac) : #{rapportHome.responsableFaculte.numeroTelephone}"

                rendered="#{rapportHome.responsableFaculte !=null}" /></p> 

                <p><h:outputText value="#{rapportHome.professeur.prenom} #{rapportHome.professeur.nom} (Prof) : #{rapportHome.professeur.numeroTelephone}"

                rendered="#{rapportHome.professeur !=null}"/></p> 

               

                </s:span>

                </s:div>

               

                </ui:define>

               

              </ui:composition>

               

               

               

               

              Here is the code of Rapport.page.xml:

               

              <?xml version="1.0" encoding="UTF-8"?>

              <page xmlns="http://jboss.com/products/seam/pages" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

                xsi:schemaLocation="http://jboss.com/products/seam/pages http://jboss.com/products/seam/pages-2.1.xsd"

                no-conversation-view-id="/GestionCours.xhtml" login-required="true">

                    

                <action execute="#{rapportHome.wire}" />

               

                <param name="idInstanceCours" value="#{rapportHome.idInstanceCours}" />

                <param name="idCours" value="#{rapportHome.idCours}" />

               

               

              </page>

               


               

               

              Here is the code of RapportHome.java:

               

              package guigoo.action;

               

               

              import java.io.Serializable;

               

               

              import guigoo.model.Compte;

              import guigoo.model.Cours;

              import guigoo.model.InstanceCours;

               

               

              import javax.persistence.EntityManager;

               

               

              import org.jboss.seam.ScopeType;

              import org.jboss.seam.annotations.In;

              import org.jboss.seam.annotations.Name;

              import org.jboss.seam.annotations.Scope;

               

               

              @Name("rapportHome")

              @Scope(ScopeType.CONVERSATION)

              public class RapportHome implements Serializable{

                        @In          EntityManager entityManager;

               

                        private static final long serialVersionUID = 1L;

               

                        private Integer idCours;

                        private Integer idInstanceCours;

               

                        private Cours cours;

                        private InstanceCours instanceCours;

               

                        private Compte professeur;

                        private Compte responsableFaculte;

                        private Compte responsableRegion;

               

               

               

                        public void wire() {

                                  if(instanceCours == null && idInstanceCours!=null) {

                                            instanceCours = entityManager.find(InstanceCours.class, idInstanceCours);

                                            cours = instanceCours.getCours();

               

                                            if(instanceCours.getProfesseur()!=null)

                                                      professeur=instanceCours.getProfesseur().getCompte();

               

                                            initiateContacts();

               

               

                                  }

                                  else if(cours == null && idCours!=null) {

                                            cours = entityManager.find(Cours.class, idCours);

               

                                            initiateContacts();

                                  }

                        }

               

                        public void initiateContacts(){

                                  if(cours.getSession().getLocalisation().getRegion().getResponsableRegion()!=null)

                                            responsableRegion =  cours.getSession().getLocalisation().getRegion().getResponsableRegion().getCompte();

                                  if(cours.getSession().getLocalisation().getResponsableFaculte()!=null)

                                            responsableFaculte = cours.getSession().getLocalisation().getResponsableFaculte().getCompte();

                        }

               

               

               

               

                        public Integer geIdInstanceCours() {

                                  return idInstanceCours;

                        }

               

               

                        public void setIdInstanceCours(Integer idInstanceCours) {

                                  this.idInstanceCours = idInstanceCours;

                        }

               

               

                        public InstanceCours getInstanceCours() {

                                  return instanceCours;

                        }

               

                        public Integer geIdCours() {

                                  return idCours;

                        }

               

               

                        public void setIdCours(Integer idCours) {

                                  this.idCours = idCours;

                        }

               

               

                        public Cours getCours() {

                                  return cours;

                        }

               

                        public Compte getResponsableRegion(){

                                  return responsableRegion;

                        }

               

                        public Compte getResponsableFaculte(){

                                  if(getResponsableRegion()!=null && getResponsableRegion().equals(responsableFaculte))

                                            return null;

                                  return responsableFaculte;

                        }

               

               

                        public Compte getProfesseur(){

                                  if(getResponsableFaculte()!=null && getResponsableFaculte().equals(professeur))

                                            return null;

                                  return professeur;

                        }

               

                        public String getTitre(){

                                  String titre = "Liste des étudiants";

                                  if(instanceCours!=null)

                                            titre += " : Groupe" + instanceCours.getTitreInstance();

                                  if(cours!=null)

                                            titre += " - " + cours.getLibelle();

                                  return titre;

                        }

              }

               

               

               

              Thank you for your reply. Just tell me if you need anything else.

              Florian

               

                    There is a typo in getter -

                       public Integer geIdInstanceCours() {

                                  return idInstanceCours;

                        }

               

                    Do you see it, you miss the "t" in get...

              • 4. Re: Property Not Readable on type java.lang.Integer
                parisetflorian

                Then I need to pay you a beer!

                It's been 4 days that I was looking the problem... I feel stupid ^^

                 

                Could you tell me what it was saying property not readable on type Integer and not RapportHome?

                 

                Once again, thank you so much!

                • 5. Re: Property Not Readable on type java.lang.Integer
                  teroxik

                  No problem. I think that the not readable type depends on the type of the property.   - not readable on type java.lang.Integer, means that, it cant read the integer value form the bean. It is not trying to read the value from an integer object. Exceptions in Seam are little bit mysterious sometimes.