Aktivitäten

März 8
Dave Kliczbor kommentierte LPS-58702.
Februar 27
Dave Kliczbor kommentierte LPS-59538.
07:42 Bumping up this issue, as it's really annoying for german users (i.e. germans are _always_ unsure about the order of day and month if the date is displayed with slashes). As far as I tested, the whole fix consists of four lines (the last for loop in this code here): {code:java|title=portal-web/docroot/html/taglib/ui/input_date/page.jsp (tag 7.0.2-ga3)} // existing code, starting at line 51 DateFormat shortDateFormat = DateFormat.getDateInstance(DateFormat.SHORT, locale); SimpleDateFormat shortDateFormatSimpleDateFormat = (SimpleDateFormat)shortDateFormat; String shortDateFormatSimpleDateFormatPattern = shortDateFormatSimpleDateFormat.toPattern(); if (shortDateFormatSimpleDateFormatPattern.indexOf("y") == 0) { mask = _MASK_YMD; simpleDateFormatPattern = _SIMPLE_DATE_FORMAT_PATTERN_YMD; } else if (shortDateFormatSimpleDateFormatPattern.indexOf("d") == 0) { mask = _MASK_DMY; simpleDateFormatPattern = _SIMPLE_DATE_FORMAT_PATTERN_DMY; } // the only thing new is this for loop: for( char c : ".- ".toCharArray() ) { if( shortDateFormatSimpleDateFormatPattern.indexOf(c) >= 0 ) { String replacement = String.valueOf(c); mask = mask.replaceAll("/", replacement); simpleDateFormatPattern = simpleDateFormatPattern.replaceAll("/", replacement); } } {code} The added lines simply replace the slashes of mask and simpleDateFormatPattern with a dot/dash/space if that character occurs in shortDateFormatSimpleDateFormatPattern. At least some of the Liferay 7.0 CE GA3 backend code accepts this date pattern as part of a form (as far as I tested). According to [https://en.wikipedia.org/wiki/Date_format_by_country], to support all other date formats over the world, this last for loop would be sufficient. Only thing to consider is whether all the backend code works with this. It _should_ use the input fields dayParam, monthParam and yearParam or interpret the field according to the locale, but as we know, this ain't always the case... at least it works with the input field referenced in the reproduction steps (see original post).
Juni 13
Milen Tilev und Dave Kliczbor sind nun Freunde.
04:05
Februar 16
Dave Kliczbor hat auf die Nachricht von Dave Kliczbor im Forum geantwortet, in Liferay.com.
Dave Kliczbor hat eine neue Nachricht im Forum erstellt, Display full article in another Asset Publisher on the same page?, in Liferay.com.
Oktober 27
Bilal Zaheer hat auf die Nachricht von Dave Kliczbor im Forum geantwortet, in Liferay.com.
Oktober 13
David H Nebinger hat auf die Nachricht von Dave Kliczbor im Forum geantwortet, in Liferay.com.
Dave Kliczbor hat auf die Nachricht von David H Nebinger im Forum geantwortet, in Liferay.com.
Oktober 9
David H Nebinger hat auf die Nachricht von Dave Kliczbor im Forum geantwortet, in Liferay.com.
Dave Kliczbor hat auf die Nachricht von David H Nebinger im Forum geantwortet, in Liferay.com.
Die Aktivitäten von Dave Kliczbor abonnieren. (Öffnet neues Fenster)