From: Gautam J. <ga...@us...> - 2005-09-16 14:03:41
|
Update of /cvsroot/jaffa/JaffaCore/source/java/org/jaffa/presentation/portlet/widgets/taglib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18999/source/java/org/jaffa/presentation/portlet/widgets/taglib Modified Files: CalendarTag.java Log Message: Modified the CalendarTag to pass the locale-specific layout to the NewCal function. This will enable the CalendarTag to support non-date fields (a criteria field for example). The datetimePicker.js then uses the passed value to apply the appropriate format. Index: CalendarTag.java =================================================================== RCS file: /cvsroot/jaffa/JaffaCore/source/java/org/jaffa/presentation/portlet/widgets/taglib/CalendarTag.java,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** CalendarTag.java 17 Jul 2005 12:55:44 -0000 1.8 --- CalendarTag.java 16 Sep 2005 14:03:33 -0000 1.9 *************** *** 66,69 **** --- 66,70 ---- import org.apache.log4j.Logger; import org.jaffa.datatypes.Parser; + import org.jaffa.metadata.DateOnlyFieldMetaData; import org.jaffa.presentation.portlet.StartComponentAction; import org.jaffa.presentation.portlet.widgets.model.SimpleWidgetModel; *************** *** 301,308 **** StringBuffer buf = new StringBuffer("<a"); buf.append(" class='Calendar'") ! .append(" href=\"javascript:NewCal(") ! .append("'") .append(getIdPrefix()) ! .append("')\"> </a>"); return buf.toString(); } --- 302,310 ---- StringBuffer buf = new StringBuffer("<a"); buf.append(" class='Calendar'") ! .append(" href='javascript:NewCal(\"") .append(getIdPrefix()) ! .append("\", \"") ! .append(DateOnlyFieldMetaData.getDateOnlyFormat()) ! .append("\")'> </a>"); return buf.toString(); } |