reflect changed dateformat on server
This commit is contained in:
parent
d129456e05
commit
d72bca4516
@ -3,10 +3,11 @@ package de.hsadmin.web;
|
|||||||
import java.text.DateFormat;
|
import java.text.DateFormat;
|
||||||
import java.text.ParseException;
|
import java.text.ParseException;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
import java.util.Locale;
|
||||||
|
|
||||||
public class DateProperty extends AbstractProperty {
|
public class DateProperty extends AbstractProperty {
|
||||||
|
|
||||||
public static final DateFormat serverDf = DateFormat.getDateInstance(DateFormat.SHORT);
|
public static final DateFormat serverDf = DateFormat.getDateInstance(DateFormat.SHORT, Locale.GERMAN);
|
||||||
|
|
||||||
final private Date property;
|
final private Date property;
|
||||||
|
|
||||||
|
@ -3,6 +3,7 @@ package de.hsadmin.web.vaadin;
|
|||||||
import java.text.DateFormat;
|
import java.text.DateFormat;
|
||||||
import java.text.ParseException;
|
import java.text.ParseException;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
import java.util.Locale;
|
||||||
|
|
||||||
import com.vaadin.data.Property.ConversionException;
|
import com.vaadin.data.Property.ConversionException;
|
||||||
import com.vaadin.data.Property.ReadOnlyException;
|
import com.vaadin.data.Property.ReadOnlyException;
|
||||||
@ -19,7 +20,7 @@ import de.hsadmin.web.config.PropertyFieldFactory;
|
|||||||
|
|
||||||
public class DatePropertyFieldFactory implements PropertyFieldFactory {
|
public class DatePropertyFieldFactory implements PropertyFieldFactory {
|
||||||
|
|
||||||
public static final DateFormat serverDf = DateFormat.getDateInstance(DateFormat.SHORT);
|
public static final DateFormat serverDf = DateFormat.getDateInstance(DateFormat.SHORT, Locale.GERMAN);
|
||||||
|
|
||||||
private boolean readOnly = false;
|
private boolean readOnly = false;
|
||||||
private boolean writeOnce = false;
|
private boolean writeOnce = false;
|
||||||
|
@ -7,6 +7,7 @@ import java.util.Calendar;
|
|||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.Locale;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import com.vaadin.data.Property;
|
import com.vaadin.data.Property;
|
||||||
@ -37,7 +38,7 @@ import de.hsadmin.web.config.PropertyTableColumn;
|
|||||||
public class TableComponentFactory implements ComponentFactory, Serializable {
|
public class TableComponentFactory implements ComponentFactory, Serializable {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
private static final DateFormat serverDateFormat = DateFormat.getDateInstance(DateFormat.SHORT);
|
private static final DateFormat serverDateFormat = DateFormat.getDateInstance(DateFormat.SHORT, Locale.GERMAN);
|
||||||
|
|
||||||
private Module module;
|
private Module module;
|
||||||
private Table table;
|
private Table table;
|
||||||
|
Loading…
Reference in New Issue
Block a user