Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 71917 invoked from network); 1 Jun 2007 09:48:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Jun 2007 09:48:23 -0000 Received: (qmail 40989 invoked by uid 500); 1 Jun 2007 08:46:26 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 40922 invoked by uid 500); 1 Jun 2007 08:46:26 -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 40909 invoked by uid 99); 1 Jun 2007 08:46:26 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Jun 2007 01:46:26 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Jun 2007 01:46:20 -0700 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1Hu2lj-0003at-OE for dev@myfaces.apache.org; Fri, 01 Jun 2007 01:45:59 -0700 Message-ID: <10909069.post@talk.nabble.com> Date: Fri, 1 Jun 2007 01:45:59 -0700 (PDT) From: Johnny Sutherland To: dev@myfaces.apache.org Subject: Re: Possible bug in the columns tag with the convertDateTime tag In-Reply-To: <8f985b960705310638w6e06405bx3851f683419be7b7@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_11379_19732899.1180687559744" X-Nabble-From: jonathan.sutherland@basf-it-services.com References: <10890218.post@talk.nabble.com> <8f985b960705310638w6e06405bx3851f683419be7b7@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_11379_19732899.1180687559744 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit You are correct. That was a typing error from me when writing the bug. I have entered the correct code below - unfortuntale the problem is still the same. We havce also discovered that the problem - the getter is not called - exists with all the tags from the JSF Core taglib. The timeZone and pattern values are not being read from the columnInfo object when the tag is within a columns tag in a dataTable. The columnInfo is set by the columns tag but the getter is not called. However, if we access the values via an outputText tag e.g. (These values are displayed) (These values are displayed) the getters are accessed and the values displayed. <t:dataTable id="edbcd" var="data" preserveDataModel="false" value="#{masterDataController.sortableList.dataModel}" sortColumn="#{masterDataController.sortableList.sort}" sortAscending="#{masterDataController.sortableList.ascending}" preserveSort="false" renderedIfEmpty="false"> <t:columns var="columnInfo" value="#{masterDataController.sortableList.columnInfos}"> <h:inputText value="#{masterDataController}"> <f:convertDateTime timeZone="#{columnInfo.timeZone}" pattern="#{columnInfo.pattern}" /> (These values are not accessed) </h:inputText> <h:outputText value="#{columnInfo.timeZone}" /> (These values will be displayed) <h:outputText value="#{columnInfo.pattern}" /> (These values will be displayed) </t:columns> </t:dataTable> Mike Kienenberger wrote: > > What you posted isn't valid: > > You have: > <-- should be '>' not '/>' > > > > I could see how that might cause this tag to be ignored, provided it > was parsed at all. > > On 5/31/07, Johnny Sutherland wrote: >> The timeZone and pattern values are not being read from the columnInfo >> object when the tag is within a columns tag in a dataTable. >> >> The columnInfo is set by the columns tag but the getter is not called. >> However, if we access the values via an outputText tag e.g. (These values >> are displayed) (These values are displayed) >> >> the getters are accessed and the values displayed. >> >> Here is a sample of the code. >> >> headerClass="standardTableHeader" >> footerClass="standardText" >> rowClasses="standardTable_Row1, standardTable_Row2" var="data" >> preserveDataModel="false" >> value="#{masterDataController.sortableList.dataModel}" >> rows="10" >> sortColumn="#{masterDataController.sortableList.sort}" >> sortAscending="#{masterDataController.sortableList.ascending}" >> preserveSort="false" renderedIfEmpty="false"> >> >> >> value="#{masterDataController.sortableList.columnInfos}" >> styleClass="#{masterDataController.sortableList.columnStyleClass}"> >> >> >> >> styleClass="tableHeader" immediate="false" >> action="#{masterDataController.sortableList.sort}"> >> >> >> >> >> >> >> >> value="#{masterDataController.sortableList.columnValue}" >> rendered="#{!masterDataController.sortableList.dataModel.selected}" >> /> >> >> pattern="#{columnInfo.pattern}" /> (These values are not accessed) >> >> >> >> (These values will be >> displayed) >> >> (These values will be >> displayed) >> >> >> ________________________________ >> View this message in context: Possible bug in the columns tag with the >> convertDateTime tag >> Sent from the My Faces - Dev mailing list archive at Nabble.com. >> > > -- View this message in context: http://www.nabble.com/Possible-bug-in-the-columns-tag-with-the-convertDateTime-tag-tf3845423.html#a10909069 Sent from the My Faces - Dev mailing list archive at Nabble.com. ------=_Part_11379_19732899.1180687559744 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit You are correct. That was a typing error from me when writing the bug. I have entered the correct code below - unfortuntale the problem is still the same. We havce also discovered that the problem - the getter is not called - exists with all the tags from the JSF Core taglib.

The timeZone and pattern values are not being read from the columnInfo object when the tag is within a columns tag in a dataTable.

The columnInfo is set by the columns tag but the getter is not called. However, if we access the values via an outputText tag e.g. (These values are displayed) (These values are displayed) the getters are accessed and the values displayed.

<t:dataTable id="edbcd" var="data" preserveDataModel="false"
value="#{masterDataController.sortableList.dataModel}"
sortColumn="#{masterDataController.sortableList.sort}"
sortAscending="#{masterDataController.sortableList.ascending}"
preserveSort="false" renderedIfEmpty="false">

<t:columns var="columnInfo"
value="#{masterDataController.sortableList.columnInfos}">

<h:inputText value="#{masterDataController}">
<f:convertDateTime timeZone="#{columnInfo.timeZone}" pattern="#{columnInfo.pattern}" /> (These values are not accessed)
</h:inputText>

<h:outputText value="#{columnInfo.timeZone}" /> (These values will be displayed)
<h:outputText value="#{columnInfo.pattern}" /> (These values will be displayed)
</t:columns>
</t:dataTable>

Mike Kienenberger wrote:
What you posted isn't valid: You have: <-- should be '>' not '/>' I could see how that might cause this tag to be ignored, provided it was parsed at all. On 5/31/07, Johnny Sutherland wrote: > The timeZone and pattern values are not being read from the columnInfo > object when the tag is within a columns tag in a dataTable. > > The columnInfo is set by the columns tag but the getter is not called. > However, if we access the values via an outputText tag e.g. (These values > are displayed) (These values are displayed) > > the getters are accessed and the values displayed. > > Here is a sample of the code. > > headerClass="standardTableHeader" > footerClass="standardText" > rowClasses="standardTable_Row1, standardTable_Row2" var="data" > preserveDataModel="false" > value="#{masterDataController.sortableList.dataModel}" > rows="10" > sortColumn="#{masterDataController.sortableList.sort}" > sortAscending="#{masterDataController.sortableList.ascending}" > preserveSort="false" renderedIfEmpty="false"> > > > value="#{masterDataController.sortableList.columnInfos}" > styleClass="#{masterDataController.sortableList.columnStyleClass}"> > > > > styleClass="tableHeader" immediate="false" > action="#{masterDataController.sortableList.sort}"> > > > > > > > > value="#{masterDataController.sortableList.columnValue}" > rendered="#{!masterDataController.sortableList.dataModel.selected}" > /> > > pattern="#{columnInfo.pattern}" /> (These values are not accessed) > > > > (These values will be > displayed) > > (These values will be > displayed) > > > ________________________________ > View this message in context: Possible bug in the columns tag with the > convertDateTime tag > Sent from the My Faces - Dev mailing list archive at Nabble.com. >


View this message in context: Re: Possible bug in the columns tag with the convertDateTime tag
Sent from the My Faces - Dev mailing list archive at Nabble.com.
------=_Part_11379_19732899.1180687559744--