Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 42853 invoked from network); 23 Jun 2010 14:21:12 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 23 Jun 2010 14:21:12 -0000 Received: (qmail 80502 invoked by uid 500); 23 Jun 2010 14:21:12 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 80447 invoked by uid 500); 23 Jun 2010 14:21:11 -0000 Mailing-List: contact dev-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Development" Delivered-To: mailing list dev@myfaces.apache.org Received: (qmail 80435 invoked by uid 99); 23 Jun 2010 14:21:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Jun 2010 14:21:11 +0000 X-ASF-Spam-Status: No, hits=-1649.1 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Jun 2010 14:21:10 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o5NEKoo7001606 for ; Wed, 23 Jun 2010 14:20:50 GMT Message-ID: <10743447.15771277302850117.JavaMail.jira@thor> Date: Wed, 23 Jun 2010 10:20:50 -0400 (EDT) From: "ricotero cordoes (JIRA)" To: dev@myfaces.apache.org Subject: [jira] Commented: (TRINIDAD-1028) ChildPropertyTreeModel (javax.el.PropertyNotFoundException) In-Reply-To: <940518896.1206626244401.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/TRINIDAD-1028?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12881702#action_12881702 ] ricotero cordoes commented on TRINIDAD-1028: -------------------------------------------- friend this working fine to me(sorry for the bad english). I tink you need make a class call Person with the method getkids. I am 2 classes, Person and Test, with a method getModel and a "TreeModel model; " attribute. Remember this in Person public String toString() { return this.getName(); } god luck > ChildPropertyTreeModel (javax.el.PropertyNotFoundException) > ----------------------------------------------------------- > > Key: TRINIDAD-1028 > URL: https://issues.apache.org/jira/browse/TRINIDAD-1028 > Project: MyFaces Trinidad > Issue Type: Bug > Affects Versions: 1.2.7-core > Environment: Trinidad-1.2.7 and JSF1.2_08 > Reporter: Jesper Pedersen > > When using the example from the JavaDoc in ChildPropertyTreeModel > Person john = new Person("John Smith"); > Person kim = new Person("Kim Smith"); > Person tom = new Person("Tom Smith"); > Person ira = new Person("Ira Wickrememsinghe"); > Person mallika = new Person("Mallika Wickremesinghe"); > > john.getKids().add(kim); > john.getKids().add(tom); > ira.getKids().add(mallika); > > // create the list of root nodes: > List people = new ArrayList(); > people.add(john); > people.add(ira); > > TreeModel model = new ChildPropertyTreeModel(people, "kids"); > I get the following: > 14:41:59,577 ERROR [STDERR] Mar 27, 2008 2:41:59 PM com.sun.facelets.FaceletViewHandler handleRenderException > SEVERE: Error Rendering View[/main.xhtml] > javax.el.PropertyNotFoundException: Property 'kids' not readable on type java.util.List > 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.apache.myfaces.trinidad.model.SortableModel.__resolveProperty(SortableModel.java:462) > at org.apache.myfaces.trinidad.model.ChildPropertyTreeModel.getChildData(ChildPropertyTreeModel.java:343) > at org.apache.myfaces.trinidad.model.ChildPropertyTreeModel.isContainer(ChildPropertyTreeModel.java:218) > at org.apache.myfaces.trinidad.component.UIXHierarchy.isContainer(UIXHierarchy.java:117) > at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.TreeRenderer._getExpandValue(TreeRenderer.java:929) > at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.TreeRenderer._renderNode(TreeRenderer.java:687) > at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.TreeRenderer._renderContent(TreeRenderer.java:190) > at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.TreeRenderer.encodeAll(TreeRenderer.java:136) > at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:224) > at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:763) > at org.apache.myfaces.trinidad.component.UIXCollection.encodeEnd(UIXCollection.java:527) > at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:304) > at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.PanelGroupLayoutRenderer.encodeChild(PanelGroupLayoutRenderer.java:188) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.