Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 42721 invoked from network); 24 Oct 2007 14:33:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Oct 2007 14:33:39 -0000 Received: (qmail 24807 invoked by uid 500); 24 Oct 2007 14:29:43 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 24775 invoked by uid 500); 24 Oct 2007 14:29:42 -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 24764 invoked by uid 99); 24 Oct 2007 14:29:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Oct 2007 07:29:42 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [65.202.163.73] (HELO deputy.nyc.office.hcmny.com) (65.202.163.73) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Oct 2007 14:29:44 +0000 Received: from ex1.nyc.hcmny.com (ex1.nyc.hcmny.com [65.202.162.75]) by deputy.nyc.office.hcmny.com (8.12.11.20060308/8.12.3) with ESMTP id l9OETNJb021527 for ; Wed, 24 Oct 2007 10:29:23 -0400 Received: from ex4.nyc.hcmny.com ([65.202.162.228]) by ex1.nyc.hcmny.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 24 Oct 2007 10:29:23 -0400 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.5 Subject: RE: not coming up Date: Wed, 24 Oct 2007 10:29:23 -0400 Message-ID: <77EC9B8186F582498CC11AF2F24FDEE602135AAC@ex4.nyc.hcmny.com> In-Reply-To: <8f985b960710240720g178b6d13r244ccd2d1738255@mail.gmail.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: not coming up Thread-Index: AcgWSRry2QQGELDNTWSbFKsjQ5tgawAADpqg From: "Palat, Anil" To: "MyFaces Discussion" X-OriginalArrivalTime: 24 Oct 2007 14:29:23.0834 (UTC) FILETIME=[460765A0:01C8164A] X-Virus-Checked: Checked by ClamAV on apache.org =20 Since my application has limited database access, I thought not to bring any ORM like hibernate instead use bit of JDBC.=20 Also we are using javax.faces.component.UIData & its getRowData() method to map the table row between UI & managedbean I don't know to which JIRA I should report this. Kindly help=20 -----Original Message----- From: Mike Kienenberger [mailto:mkienenb@gmail.com]=20 Sent: Wednesday, October 24, 2007 10:20 AM To: MyFaces Discussion Subject: Re: not coming up If it worked in Sun JSF RI and doesn't work in MyFaces (of the same version -- 1.1 vs 1.1 and 1.2 vs 1.2, not 1.1 vs 1.2), please open a JIRA issue. It should work in both places. I don't know how many people really use ResultSets directly with UIData components. I know that I never do this as I always work with an ORM rather than JDBC. So it's possible that the ResultSet model code hasn't been as well tested as other models. On 10/24/07, Palat, Anil wrote: > Thanks Mike, I changed the model from ResultSet to a custom java bean. > It works. > I was expecting the code which worked in Sun JSF RI to work in My > faces+tomahawk. I still don't know why > > I had to make some code changes to incorporate my custom bean. I think > ResultSet maaping doesnot work with tomahawk > > -----Original Message----- > From: Mike Kienenberger [mailto:mkienenb@gmail.com] > Sent: Tuesday, October 23, 2007 6:01 PM > To: MyFaces Discussion > Subject: Re: not coming up > > I've never used a ResultSet as a backing model, so I'm not sure how it > should behave. > > Looking at the source for javax.faces.model.ResultSetDataModel, it=20 > looks like each row data object is a Map, so #{mapper} would be of=20 > type Map, and #{mapper.managerName}" would be the same as fetching the > key for 'managerName' from the map. Furthermore, it looks like the > keys are the column names of the database tables. Are you sure you > have a "managerName" database column name? > > Also, the test you did before doesn't prove that there's anything in=20 > the ResultSet, only that the ResultSet exists. > > Maybe you can try putting a breakpoint or debugging statement in your > selectMappingBean.getMappings() method to test if there's at least one > row in the ResultSet. > > Also, I'm not sure what facet name=3D"one" is supposed to do, but I'm=20 > pretty sure that t:column doesn't recognize "one" as a valid facet. > You probably want "header" instead. > > > On 10/23/07, Palat, Anil wrote: > > The getter method is definitely getting called. I tried what Mike=20 > > had > > > suggested > > > > > > > value=3D"#{selectMappingBean.mappings}"/> > > > > & Iam getting > > > > Tomahawk table oracle.jdbc.driver.ScrollableResultSet@197d20c > > > > > > > > -----Original Message----- > > From: Andrew Robinson [mailto:andrew.rw.robinson@gmail.com] > > Sent: Tuesday, October 23, 2007 5:16 PM > > To: MyFaces Discussion > > Subject: Re: not coming up > > > > is the getter method being called for the data table model? > > > > if so, which phases is it being called for? > > > > anything interesting in the log file? > > > > have you completely removed all RI jar files from both your web=20 > > application WAR and from the container (if applicable)? > > > > are there any other JSF jars in the class path? (like an old=20 > > myfaces-all.jar for example) > > > > On 10/23/07, Palat, Anil wrote: > > > Thanks Sushama & Mike > > > I think it's a different issue & nothing to do with managed bean=20 > > > or incoming data list . > > > The reason being the same code works fine with JSF RI in the same=20 > > > environment. Also its just a part of an existing application,=20 > > > hence the managed beans are well established. > > > > > > To give you some more info, Iam using Tomahawk 1.1.6 > > > > > > Any thoughts? > > > > > > -----Original Message----- > > > From: Mike Kienenberger [mailto:mkienenb@gmail.com] > > > Sent: Tuesday, October 23, 2007 4:23 PM > > > To: MyFaces Discussion > > > Subject: Re: not coming up > > > > > > Are you sure that #{selectMappingBean.mappings} is non-empty at=20 > > > this > > > > point? > > > > > > Try > > > > > > > > value=3D"#{selectMappingBean.mappings}"/> > > > > > > [...] > > > > > > > > > On 10/23/07, Palat, Anil wrote: > > > > > > > > > > > > Hi, > > > > > > > > Iam working with tomcat 5.0.28, Myfaces 1.1.5 & JDK1.4.2_14 > > > > > > > > When I run the following JSP Iam not getting the datatable=20 > > > > displayed > > > > > > though the text "Tomahawk table" is displayed. Please let me=20 > > > > know whether Iam missing anything. > > > > Is it due to any version incompatibilities? > > > > > > > > <%@taglib uri=3D"http://java.sun.com/jsf/core" prefix=3D"f"%>=20 > > > > <%@taglib uri=3D"http://java.sun.com/jsf/html" prefix=3D"h"%> = <%@=20 > > > > taglib uri=3D"http://myfaces.apache.org/tomahawk" > > > > prefix=3D"t"%> > > > > > > > > > > > > > > > > > > value=3D"#{selectMappingBean.mappings}"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > thanks > > > > > >