Can I refer to the dataTable's "VAR" attribute, address in my case, inside the rendered attribute. I don't understand why should it be related to whether I am using a List or a ListDataModel.
-----Original Message----- From: Heath Borders [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 08, 2005 11:52 AM To: MyFaces Discussion Subject: Re: rendered attribute I don't have much experience working with actual data models. We always just had the getters bind to a List and let the datatable take care of creating the model. On Tue, 8 Mar 2005 11:04:23 -0500, Srikanth Madarapu <[EMAIL PROTECTED]> wrote: > My addressModel is a ListDataModel. > > > -----Original Message----- > From: Heath Borders [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 08, 2005 10:01 AM > To: MyFaces Discussion > Subject: Re: rendered attribute > > Does your addressesModel property bind to a List? > > On Tue, 8 Mar 2005 09:10:54 -0500, Srikanth Madarapu > <[EMAIL PROTECTED]> wrote: > > Can anybody please answer this ? > > > > -----Original Message----- > > From: Srikanth Madarapu > > Sent: Monday, March 07, 2005 2:36 PM > > To: My Faces Discussion (E-mail) > > Subject: rendered attribute > > > > There is a problem when I am using the dataTable variable for the rendered > > attribute. I am getting the following error. > > > > Mar 7, 2005 2:26:59 PM net.sourceforge.myfaces.el.VariableResolverImpl > > resolveVariable > > SEVERE: Variable 'address' could not be resolved. > > > > The var "address" is being used in the rendered attribute. The array > > otherPhones is guaranteed to have non-null entries. The attribute phoneType > > could be null. But irrespective of whether it is null or not I am getting > > the above error. Functionally every thing works fine, I just want to get > > rid of these error messages. > > > > My dataTable looks like below > > > > <h:dataTable id="tblAddresses" > > > > value="#{manageProfileFace.addressHelper.addressesModel}" > > var="address"> > > <h:column> > > <h:panelGrid columns="2" id="addrColumn"> > > <h:outputText value="Telephone #:" /> > > <seniorfaces:outputText > > value="#{address.phoneNumber}" /> > > <h:outputText value="Fax #:" /> > > <seniorfaces:outputText > > value="#{address.faxNumber}" /> > > <h:outputText > > value="#{address.otherPhones[0].phoneType}:" rendered="#{!empty > > address.otherPhones[0].phoneType}"/> > > <seniorfaces:outputText > > value="#{address.otherPhones[0].phoneNumber}" rendered="#{!empty > > address.otherPhones[0].phoneType}" /> > > <h:outputText > > value="#{address.otherPhones[1].phoneType}:" rendered="#{!empty > > address.otherPhones[1].phoneType}" /> > > <seniorfaces:outputText > > value="#{address.otherPhones[1].phoneNumber}" rendered="#{!empty > > address.otherPhones[1].phoneType}" /> > > <h:outputText > > value="#{address.otherPhones[2].phoneType}:" rendered="#{!empty > > address.otherPhones[2].phoneType}" /> > > <seniorfaces:outputText > > value="#{address.otherPhones[2].phoneNumber}" rendered="#{!empty > > address.otherPhones[2].phoneType}" /> > > <h:outputText > > value="#{address.otherPhones[3].phoneType}:" rendered="#{!empty > > address.otherPhones[3].phoneType}" /> > > <seniorfaces:outputText > > value="#{address.otherPhones[3].phoneNumber}" rendered="#{!empty > > address.otherPhones[3].phoneType}" /> > > <h:outputText value="Email 1:" > > rendered="#{!empty address.emails[0]}" /> > > <seniorfaces:outputText > > value="#{address.emails[0]}" rendered="#{!empty address.emails[0]}"/> > > <h:outputText value="Email 2:" > > rendered="#{!empty address.emails[1]}"/> > > <seniorfaces:outputText > > value="#{address.emails[1]}" rendered="#{!empty address.emails[1]}"/> > > </h:panelGrid> > > </h:column> > > </h:dataTable> > > > > TIA > > -Srikanth Madarapu > > > > > > -- > -Heath Borders-Wing > [EMAIL PROTECTED] > -- -Heath Borders-Wing [EMAIL PROTECTED]

