Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 44779 invoked from network); 26 Mar 2007 20:23:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Mar 2007 20:23:53 -0000 Received: (qmail 52488 invoked by uid 500); 26 Mar 2007 20:23:55 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 52428 invoked by uid 500); 26 Mar 2007 20:23:55 -0000 Mailing-List: contact users-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Discussion" Delivered-To: mailing list users@myfaces.apache.org Received: (qmail 52385 invoked by uid 99); 26 Mar 2007 20:23:54 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Mar 2007 13:23:54 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [198.240.128.80] (HELO ln-bas07.csfb.com) (198.240.128.80) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Mar 2007 13:23:44 -0700 Received: from slon11p30740.csfb.cs-group.com (slon11p30740.csfb.mail [166.12.210.47]) by ln-bas07.csfb.com (Postfix) with ESMTP id D1D463737 for ; Mon, 26 Mar 2007 21:23:14 +0100 (BST) Received: from [166.12.100.15] by slon11p30740.csfb.cs-group.com with ESMTP (P30740L (Email Firewall v6.3.1)); Mon, 26 Mar 2007 21:23:09 +0100 X-Server-Uuid: 4EAC7D12-E00D-46D7-91F2-2C1B0FAC6618 Received: by slon11p31502.csfb.cs-group.com with Internet Mail Service ( 5.5.2653.19) id ; Mon, 26 Mar 2007 21:23:09 +0100 Message-ID: <92F4F49152E28B45B80BD95EB6F1F5390184D95F@enyc11p32003.corpny.csfb.com> From: "Leyzerzon, Simeon" To: "'MyFaces Discussion'" Subject: RE: javax.faces.el.PropertyNotFoundException: Base is null Date: Mon, 26 Mar 2007 21:23:00 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) X-WSS-ID: 6A16F4270KC773611-01-03 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Simon, Shawn, thanks for the pointers. I'm sure that facilityTable.facilities is not null as I can see the values on the screen, it's only when I click on the command link to edit when this exception gets thrown. Here is the sequence of the events: --facilityTab.jsp: In facilityTable.java: public String viewFacility() { setSelectedRowIndex(Integer.parseInt((String)getParameter("selectedRowIndex"))); setFacility((Facility)(facilities.get(this.getSelectedRowIndex()))); setShowDetailView(true); return "OK"; } Then, based on the setShowDetailView, the following needs to be invoked in layout.jsp page: Regarding forceId attribute, I'll try removing it and see if it still behaves the same. Could you please give any more ideas on what could be wrong? Thank you in advance. Simeon -----Original Message----- From: Simon Kitching [mailto:simon.kitching@rhe.co.nz] Sent: Monday, March 26, 2007 4:15 PM To: MyFaces Discussion Subject: Re: javax.faces.el.PropertyNotFoundException: Base is null Are you sure that expression "#{facilityTable.facilities}" doesn't return a collection that contains the value NULL? Everything else looks ok to me at first glance - though forceId really really sucks, and should be avoided if at all possible as it totally breaks "encapsulation" of pages. Leyzerzon, Simeon wrote: > I'm getting the following exception when clicking on paginator or > command link in facilityTab.jsp: > javax.faces.el.PropertyNotFoundException: Base is null: .facility at > org.apache.myfaces.el.ValueBindingImpl.resolveToBaseAndProperty(ValueB > indingImpl.java:477) > at > org.apache.myfaces.el.ValueBindingImpl.getType(ValueBindingImpl.java:1 > 75) > at > org.apache.myfaces.shared_tomahawk.renderkit._SharedRendererUtils.find > UIOutputConverter(_SharedRendererUtils.java:58) > at > org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.findUIOutpu > tConverter(RendererUtils.java:333) > at > org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.getConverte > dUIOutputValue(RendererUtils.java:627) > at > org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTextRendererBase > .getConvertedValue(HtmlTextRendererBase.java:191) > at javax.faces.component.UIInput.getConvertedValue(UIInput.java:402) > at > javax.faces.component.UIInput.validate(UIInput.java:356) at > javax.faces.component.UIInput.processValidators(UIInput.java:190) > > > Here is the structure of my pages: > > --layout.jsp > > > > > > <%-- search results tabset --%> > > > > flush="false"/> > > > ~~~~~~~~~~~~~~~ > > > --searchResults.jsp > > > > > flush="false"/> > > > > ~~~~~~~~~~~~ > > --facilityTab.jsp > > > > var="facility" > id="facilityData" > cellpadding="0" cellspacing="0" width="100%" > border="0" > preserveDataModel="false" > forceId="true" > rows="6" > rowClasses="even,odd,even,odd,even,odd" > rowIndexVar="rowIndex" > sortColumn ="#{facilityTable.sort}" > sortAscending ="#{facilityTable.ascending}" > > > > > > alt="Current Selection" > rendered="#{rowIndex==facilityTable.selectedRowIndex && > facilityTable.facility!=null}"> > > > > > > > > > action="#{facilityTable.viewFacility}" > > border="0" alt="Click here to edit the record" /> > value="#{rowIndex}"/> > > > > > > > columnName="name" arrow="true" id="s1"> > value="Name" id="h2"/> > > > > value="#{facility.firstName}" id="p1"/> > >    > value="#{facility.lastName}" id="p2"/> > > > > > > > arrow="true" id="s2" > > > > > value="#{facility.primaryResidentAddress.addressOne}" id="a1" size="35" > maxlength="100" /> > >    > value="#{facility.primaryResidentAddress.city}" size="10" maxlength="20" > id="a2"/> > >    > value="#{facility.primaryResidentAddress.state}" size="2" maxlength="2" > id="a3"/> > >    > value="#{facility.primaryResidentAddress.zipCode}" size="5" > maxlength="10" id="a4"/> > > > > > > > > > cellspacing="0" border="0" width="80" > > for="facilityData" > fastStep="10" > pageCountVar="pageCount" > pageIndexVar="pageIndex" > paginator="true" > paginatorMaxPages="9" > paginatorTableClass="paginator" > paginatorActiveColumnStyle="font-weight:bold;" > > > > > url="../../img/FirstPage.gif" style="margin-top:4pt;"/> > > > url="../../img/LastPage.gif" style="margin-top:4pt;"/> > > > url="../../img/PreviousItem.gif" style="margin-top:4pt;"/> > > > url="../../img/NextItem.gif" style="margin-top:4pt;"/> > > > > > > > > Could someone please help. Is this a valid structure to have a data > scroller or a command link inside a tab in a tabset. > > Thank you, > Simeon > > ====================================================================== > ======== Please access the attached hyperlink for an important > electronic communications disclaimer: > > http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html > ====================================================================== > ======== > ============================================================================== Please access the attached hyperlink for an important electronic communications disclaimer: http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html ==============================================================================