I didn't have an unique id(s) for the Column data.
 
 
Internet communications are not secure and therefore NOTiFY
does not accept legal responsibility for the contents of this message.
Although NOTiFY operates anti-virus programmes, it does not
accept responsibility for any damage whatsoever that is caused by
viruses being passed.  Any views or opinions presented are solely those
of the author and do not necessarily represent those of NOTiFY. 
Replies to this email may be monitored by NOTiFY for operational or
business reasons.
 
 
----- Original Message -----
Sent: Sunday, April 03, 2005 9:15 PM
Subject: [Norton AntiSpam] Re: dataTable

Thanks for pointing that out.
 
Have corrected it and still get just one column of data. Even tho' I have two listed.
 
<body>
    <f:view>
        <h:panelGroup id="body">
            <h:form id="facilityDetailForm">
                <h:panelGrid columns="2" >
                    <h:dataTable id="facilityDetailTable"
                                  value="#{facilityDetailDataModelBean.facilityDetailList}"
                                  var="facilityDetailList"
                                  columnClasses="ListCenter, ListCenter" >
       
                        <h:column>
                            <f:facet name="header">
                                <h:outputText id="days" value="Start Date">
                                </h:outputText>
                            </f:facet>
 
                            <h:outputText id="endDate" value="#{facilityDetailList.startDate}">
                                <f:convertDateTime pattern="dd-MM-yyyy" />
                            </h:outputText>
                        </h:column>
                  
                        <h:column>
                            <f:facet name="header">
                                <h:outputText id="days" value="End Date">
                                </h:outputText>
                            </f:facet>
 
                            <h:outputText id="endDate" value="#{facilityDetailList.endDate}">
                                <f:convertDateTime pattern="dd-MM-yyyy" />
                            </h:outputText>
                        </h:column>
       
                    </h:dataTable>
                  </h:panelGrid>
            </h:form>
        </h:panelGroup>
    </f:view>
</body>
Start Date End Date
03-04-2005
03-04-2005
03-04-2005
03-04-2005
03-04-2005
03-04-2005
03-04-2005
03-04-2005
03-04-2005
03-04-2005
03-04-2005
03-04-2005
03-04-2005
03-04-2005
03-04-2005
03-04-2005
03-04-2005
03-04-2005
03-04-2005
03-04-2005
03-04-2005
03-04-2005
03-04-2005
03-04-2005
03-04-2005
03-04-2005
03-04-2005
03-04-2005
03-04-2005
03-04-2005
03-04-2005
Internet communications are not secure and therefore NOTiFY
does not accept legal responsibility for the contents of this message.
Although NOTiFY operates anti-virus programmes, it does not
accept responsibility for any damage whatsoever that is caused by
viruses being passed.  Any views or opinions presented are solely those
of the author and do not necessarily represent those of NOTiFY. 
Replies to this email may be monitored by NOTiFY for operational or
business reasons.
 
 
----- Original Message -----
From: "Thomas Spiegl" <[EMAIL PROTECTED]>
To: "MyFaces Development" <[email protected]>; "Roger Lee, NOTiFY" <[EMAIL PROTECTED]>
Sent: Sunday, April 03, 2005 9:07 PM
Subject: Re: dataTable

> your converter patterns seems to be invalid.
>
> try this: <f:convertDateTime pattern="MM-dd-yyyy" />
>
> thomas
>
> On Apr 3, 2005 8:18 PM, Roger Lee, NOTiFY <
[EMAIL PROTECTED]> wrote:
>> 
>> I create an ArrayList comprising of 31 Value Objects.
>>  
>> I attempting to display all 31 using the DataTable component using the
>> following my JSP. To test I am only trying to display two columns;
>>  
>> Number of Days & Startdate. No matter what I do I get the two headers, but
>> only one column of data  "number of days".
>>  
>> <body>
>>     <f:view>
>>         <h:panelGroup id="body">
>>             <h:form id="facilityDetailForm">
>>                 <h:panelGrid columns="2" >
>>                     <h:dataTable id="facilityDetailTable"
>>                                 
>> value="#{facilityDetailDataModelBean.facilityDetailList}"
>>                                   var="facilityDetailList"
>>                                 
>> columnClasses="ListCenter, ListCenter" >
>>        
>>                         <h:column>
>>                             <f:facet name="header">
>>                                 <h:outputText id="days" value="Days">
>>                                 </h:outputText>
>>                             </f:facet>
>>        
>>                             <h:outputText id="endDate"
>> value="#{facilityDetailList.days}">
>>                             </h:outputText>
>>                         </h:column>
>>                  
>>                         <h:column>
>>                             <f:facet name="header">
>>                                 <h:outputText id="days" value="Start Date">
>>                                 </h:outputText>
>>                             </f:facet>
>>        
>>                             <h:outputText id="endDate"
>> value="#{facilityDetailList.startDate}">
>>                                 <f:convertDateTime pattern="MM-DDD-YYYY" />
>>                             </h:outputText>
>>                         </h:column>
>>        
>>                     </h:dataTable>
>>                   </h:panelGrid>
>>             </h:form>
>>         </h:panelGroup>
>>     </f:view>
>> </body>
>>  
>>  
>> Any suggestions?
>>  
>> Thanks,
>>
>> Roger Lee
>>  
>> Internet communications are not secure and therefore NOTiFY
>> does not accept legal responsibility for the contents of this message.
>> Although NOTiFY operates anti-virus programmes, it does not
>> accept responsibility for any damage whatsoever that is caused by
>> viruses being passed.  Any views or opinions presented are solely those
>> of the author and do not necessarily represent those of NOTiFY. 
>> Replies to this email may be monitored by NOTiFY for operational or
>> business reasons.
>>  
>>
>

Reply via email to