The setter is public void setHithere(String hithere) Sorry for the red herring... I had reposted the original post before changing that code.
Still doesn't instantiate the bean. John -----Original Message----- From: Dennis Byrne [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 01, 2006 5:04 PM To: MyFaces Discussion Subject: Re: AW: Managed beans not being instantiated - No resolution? Cyclic managed bean references only apply to the name of the bean, not the type. You are correct about the setter though. Dennis Byrne >-----Original Message----- >From: Jörg Liegler [mailto:[EMAIL PROTECTED] >Sent: Wednesday, February 1, 2006 07:54 PM >To: ''MyFaces Discussion'' >Subject: AW: Managed beans not being instantiated - No resolution? > >For a starting point, I think that setHithere() must be >setHithere(String) for java beans convention. >Furthermore - I think I have read that cyclic dependencies are not >allowed - the way you have used both com.jak.EMP.QuarantineBean in >faces-config. >Sorry, i am myself a newbie, but that's what i would be looking for. > >Cheers Jörg > >-----Ursprüngliche Nachricht----- >Von: John [mailto:[EMAIL PROTECTED] >Gesendet: Donnerstag, 2. Februar 2006 01:21 >An: MyFaces Discussion >Betreff: RE: Managed beans not being instantiated - No resolution? > >---JSP PAGE - WORKS FINE ACCEPT BEAN DATA--- AT THIS POINT ONLY >testdata should work---- > ><[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> >uri="http://www.atanion.com/tobago/component" prefix="t"%> <[EMAIL PROTECTED] ><mailto:[EMAIL PROTECTED]> uri="http://java.sun.com/jsf/core" >prefix="f"%> ><[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> tagdir="/WEB-INF/tags/layout" >prefix="layout"%> ><layout:main> > <jsp:body> > <t:panel> > <f:facet name="layout"> > <t:gridLayout rows="2*;3*"/> > </f:facet> > <t:out value="#{quarantine.hithere}"> </t:out> > <t:box label="Box" height="400px"> > <f:facet name="layout"> > <t:gridLayout/> > </f:facet> > <t:sheet > value="#{quarantine.testData}" > id="sheet" > columns="3*;1*;3*;3*;3*" > var="quar" > state="1" > showRowRange="left" > showPageRange="right" > showDirectLinks="center" > pagingLength="7" > directLinkCount="5"> > <t:column label="From" id="name" sortable="true"> > <t:out value="#{quar.sender}" id="t_sender"/> > </t:column> > <t:column label="To" id="number" sortable="false" >align="center"> > <t:out value="#{quar.recipient}" id="t_recipient"/> > </t:column> > <t:column label="Subject" sortable="true"> > <t:out value="#{quar.subject}" id="t_subject"/> > </t:column> > <t:column label="Matched" sortable="true"> > <t:out value="#{quar.matchtext}" id="t_matchtext"/> > </t:column> > <t:column label="Filtered" sortable="true" align="right"> > <t:out value="#{quar.filteredby}" id="t_filteredby"/> > </t:column> > </t:sheet> > </t:box> > </t:panel> > </jsp:body> ></layout:main> > >--- MANAGED BEAN ---- THIS IS JUST A SIMPLE TEST BEAN --- package >com.jak.EMP; > >public class QuarantineBean { > private boolean initialized; > private String[] testData; > private String hithere; > > public QuarantineBean() { > } > > public void setInitialized(boolean initialized) { > this.initialized = initialized; > } > > public void setTestData(String[] testData) { > this.testData = testData; > } > > public boolean isInitialized() { > return initialized; > } > > public String[] getTestData() { > System.out.println("called getTestData"); > return testData; > } > public String getHithere() { > return "Hello out there"; > } > public void setHithere() { > this.hithere = "Hello out there 1"; > > } >} > >---- FACES-CONFIG--- I KNOW Managed Property not necessary --- <?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 xmlns="http://java.sun.com/JSF/Configuration"> > <application> > <locale-config> > <default-locale>en</default-locale> > </locale-config> > </application> > <managed-bean> > <managed-bean-name>quarantine</managed-bean-name> > <managed-bean-class>com.jak.EMP.QuarantineBean</managed-bean-class> > <managed-bean-scope>session</managed-bean-scope> > <managed-property> > <property-name>hithere</property-name> > <property-class>com.jak.EMP.QuarantineBean</property-class> > <value>defaultValue</value> > </managed-property> > </managed-bean> ></faces-config> > > > _____ > >From: Grant Smith [mailto:[EMAIL PROTECTED] >Sent: Tuesday, January 24, 2006 4:57 PM >To: MyFaces Discussion >Subject: Re: Managed beans not being instantiated John, > >Show us the page source, as well as your web.xml and faces config. At >least then we have a starting point :) On 1/24/06, Dennis Byrne < >[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> >> wrote: >Make sure you don't have two managed beans with the same name. The >second one will be configured over the first. Both MyFaces and the RI >do this :( > >Dennis Byrne > >>-----Original Message----- >>From: John [mailto:[EMAIL PROTECTED] >>Sent: Tuesday, January 24, 2006 07:26 PM >>To: [email protected] >>Subject: Managed beans not being instantiated >> >>I'm having incredible difficulty getting a managed bean to be >>instantiated. >> >>-- I've gone to a very simple JavaBean for testing. >> >>-- The managed bean XML is in faces-config.xml >> >>-- I'm using Tobago >> >>-- I'm using Tomcat 5.9 embedded within our application. >> >>The beans constructor never gets called, although the JSF page >>displays fine (except of course the beans values aren't displayed). >> >>No errors. >> >> >>I'm stumped. >> >>John >> > > > > > >-- >Grant Smith >

