Navigation DataCollecttionRenderer um Ausgabe des langen Datumsformat ergänzt (wie in c.a.domain.DomainObjectXMLRenderer)
git-svn-id: https://svn.libreccm.org/ccm/trunk@1805 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
9b3eb396bc
commit
ff506516c6
|
|
@ -105,7 +105,8 @@ public class DataCollectionRenderer extends LockableImpl {
|
|||
|
||||
/**
|
||||
* Sets the context of the traversal adapter used the render the objects
|
||||
* if {@link #m_specializeObjects} is set to <code>true</code>
|
||||
* if {@link #m_specializeObjects} is set to
|
||||
* <code>true</code>
|
||||
*
|
||||
* @param context The adapter context.
|
||||
*/
|
||||
|
|
@ -125,6 +126,7 @@ public class DataCollectionRenderer extends LockableImpl {
|
|||
/**
|
||||
* @param objects
|
||||
* @param pageNumber current page, starting from 1
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public Element generateXML(DataCollection objects,
|
||||
|
|
@ -300,12 +302,13 @@ public class DataCollectionRenderer extends LockableImpl {
|
|||
// Quasimodo: BEGIN
|
||||
// Add attributes for date and time
|
||||
Locale negLocale = com.arsdigita.globalization.GlobalizationHelper.getNegotiatedLocale();
|
||||
DateFormat dateFormatter = DateFormat.getDateInstance(
|
||||
DateFormat.MEDIUM, negLocale);
|
||||
DateFormat timeFormatter = DateFormat.getTimeInstance(
|
||||
DateFormat.SHORT, negLocale);
|
||||
DateFormat dateFormatter = DateFormat.getDateInstance(DateFormat.MEDIUM, negLocale);
|
||||
DateFormat longDateFormatter = DateFormat.getDateInstance(DateFormat.LONG, negLocale);
|
||||
DateFormat timeFormatter = DateFormat.getTimeInstance(DateFormat.SHORT, negLocale);
|
||||
attribute.addAttribute("date", dateFormatter.format(date));
|
||||
attribute.addAttribute("longDate", longDateFormatter.format(date));
|
||||
attribute.addAttribute("time", timeFormatter.format(date));
|
||||
attribute.addAttribute("monthName", calDate.getDisplayName(Calendar.MONTH, Calendar.LONG, negLocale));
|
||||
// Quasimodo: END
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue