myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Johnny Sutherland <jonathan.sutherl...@basf-it-services.com>
Subject Re: Possible bug in the columns tag with the convertDateTime tag
Date Fri, 01 Jun 2007 08:45:59 GMT

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.


&lt;t:dataTable id=&quot;edbcd&quot; var=&quot;data&quot;
preserveDataModel=&quot;false&quot; 

value=&quot;#{masterDataController.sortableList.dataModel}&quot;

sortColumn=&quot;#{masterDataController.sortableList.sort}&quot;

sortAscending=&quot;#{masterDataController.sortableList.ascending}&quot;

preserveSort=&quot;false&quot; renderedIfEmpty=&quot;false&quot;&gt; 
 &lt;t:columns var=&quot;columnInfo&quot;

  value=&quot;#{masterDataController.sortableList.columnInfos}&quot;&gt;

 &lt;h:inputText value=&quot;#{masterDataController}&quot;&gt;

  &lt;f:convertDateTime timeZone=&quot;#{columnInfo.timeZone}&quot;
pattern=&quot;#{columnInfo.pattern}&quot; 
  /&gt; (These values are not accessed)

  &lt;/h:inputText&gt;

 &lt;h:outputText value=&quot;#{columnInfo.timeZone}&quot; /&gt; 
  (These values will be displayed)

  &lt;h:outputText value=&quot;#{columnInfo.pattern}&quot; /&gt; 
  (These values will be displayed)

  &lt;/t:columns&gt;

  &lt;/t:dataTable&gt;





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.

Mime
View raw message