[opencms-dev] OpenCmsDate - problems reusing taglib tags
Ruben Malchow
ruben at disk0.de
Mon Oct 26 04:39:14 CET 2009
hello list.
i am running into a somewhat strange problem. ocms is 7.0.5.
i have a field in a schema that is a date. i also have a template that
displays this date as part of the headline of an article. to format
this, i have a little jsp tag that takes a pattern and a long value and
formats tries to format the value according to the pattern. in my
template, this tag is surrounded by a jstl try/catch thing (so if it
doesn't work, the result is just an empty string).
now what happens is this: if i call the template with a cotent xml which
doesn't have the date set yet, it displays as expected, so instead of
the date, there is an empty string. BUT: it also breaks the editor.
meaning that when i go back to set the date, the datetime widget is
gone. until i restart the tomcat.
any ideas? i have no idea where to start looking ... my tag doesn't even
use any ocms classes, it just instantiates a SimpleDateFormat.
.rm
More information about the opencms-dev
mailing list