Author: dan.j.allen
Date: 2010-06-17 10:24:11 -0400 (Thu, 17 Jun 2010)
New Revision: 13215
Modified:
examples/trunk/booking-simplified/src/main/java/org/jboss/seam/examples/booking/reference/CalendarReferenceProducer.java
Log:
add locale back in
Modified:
examples/trunk/booking-simplified/src/main/java/org/jboss/seam/examples/booking/reference/CalendarReferenceProducer.java
===================================================================
---
examples/trunk/booking-simplified/src/main/java/org/jboss/seam/examples/booking/reference/CalendarReferenceProducer.java 2010-06-17
14:10:52 UTC (rev 13214)
+++
examples/trunk/booking-simplified/src/main/java/org/jboss/seam/examples/booking/reference/CalendarReferenceProducer.java 2010-06-17
14:24:11 UTC (rev 13215)
@@ -26,6 +26,7 @@
import java.util.ArrayList;
import java.util.Calendar;
import java.util.List;
+import java.util.Locale;
import javax.enterprise.context.ConversationScoped;
import javax.inject.Named;
@@ -42,11 +43,11 @@
@Produces
@Named
@ConversationScoped
- public List<Month> getMonths()
+ public List<Month> getMonths(Locale locale)
{
List<Month> months = new ArrayList<Month>(12);
- DateFormat longNameFormat = new SimpleDateFormat("MMMM");
- DateFormat shortNameFormat = new SimpleDateFormat("MMM");
+ DateFormat longNameFormat = new SimpleDateFormat("MMMM", locale);
+ DateFormat shortNameFormat = new SimpleDateFormat("MMM", locale);
Calendar cal = Calendar.getInstance();
for (int m = 0; m < 12; m++)
{
Show replies by date