Hi

Am having a problem in displaying the date of curent locale in jsf tags. I think by default the locale EN_US is taken. But i want it to be currentLocale.
Please guide me if I am wrong. And also please help me in getting the current date according to the locale.
The following is jsp page where i want to display the date in table.

<t:dataTable id="targetActualTable" border="1"
                        styleClass="sortable"
                        headerClass="targetActualTable_Header"
                        rowClasses="targetActualTable_Row1"
                 & nbsp;      columnClasses="targetActualTable_Column"
                        var="target"
                        value="#{data.ta}"
                        cellpadding="0"
                        cellspacing="0"
                        align="center" >            
            <t:column>
                <f:facet name="header">
                    <h:outputText value="Date" />
                </f:facet>
                <h:outputText value="#{target.date}" >
                <f:convertDateTime type="date" pattern="MM/dd/yyyy " />
                </h:outputText>
            </t:column>
</t:dataTable>

Would appreciate any help.

TIA
Nikita


Yahoo! Autos. Looking for a sweet ride? Get pricing, reviews, & more on new and used cars.

Reply via email to