I want to build a Weekday select menu. Weekdays are initialized to first weekday of year 1970.
The converter converts the value to a date. But I want to display the full text weekday using java date pattern "EEEE".
<h:selectOneMenu id="day" label="#{msg.day_u}" required="true" value="#{date}">
<f:convertDateTime pattern="dd/mm/yyyy"/>
<f:selectItem itemValue="05/01/1970" itemLabel="display Monday using pattern"/>
<!-- other weekdays -->
</h:selectOneMenu>
This is not working. Right now I am using a custom EL function to retrieve a localized weekday in the label attribute.
Is there a way to use it with a date pattern?
DateFormatSymbols
. – BalusC