SID-00758: RenderFormPlugin breaks ActionTrackerPlugin
| Status: |
Unanswered |
TWiki version: |
4.3.1 |
Perl version: |
5.8.2 |
| Category: |
CategoryPlugins |
Server OS: |
AIX 5.3 |
Last update: |
15 years ago |
Hello. I love
RenderFormPlugin. But now that I have installed it, it breaks the JSCalendar on the edit pane of Action Tracker. For example, when you hit the "edit" button to modify an entry, you get a edit page which is largely controlled by template actionform.tmpl. On this page there is a form field using the JSCalendar, and you can select it, and get the calendar, but when you select a date, it does not populate the field. I believe the problem arises because an extra reference to the JSCalendar css gets appended at the bottom of the page, confusing the browser. It appears to be tacked on after where the content from actionform.tmpl does its work, so I'm not sure how it's getting populated. Any help?
--
AaronLWalker - 2010-02-18
Discussion and Answer
Here is the line which gets added which
I believe is causing the problem:
<style type='text/css' media='all'>@import url('/twiki/pub/TWiki/JSCalendarContrib/calendar-blue.css');.calendar {z-index:2000;}</style><script type='text/javascript' src='/twiki/pub/TWiki/JSCalendarContrib/calendar.js'></script><script type='text/javascript' src='/twiki/pub/TWiki/JSCalendarContrib/lang/calendar-en.js'></script><script type='text/javascript' src='/twiki/pub/TWiki/JSCalendarContrib/calendar-setup.js'></script><script type='text/javascript' src='/twiki/pub/TWiki/JSCalendarContrib/twiki.js'></script>
--
AaronLWalker - 2010-02-18
ActionTrackerPlugin version says 16787 (12 Dec 2008)
RenderFormPlugin version says V1.003 (13 Feb 2009)
--
AaronLWalker - 2010-02-18
I ended up fixing this problem by commenting out any calls to the addHEAD subroutine in
JSCalendarContrib, which, of course, is not the best way to do this
This included:
lib/TWiki/Form/Date.pm
lib/TWiki/Contrib/JSCalendarContrib.pm
lib/TWiki/Plugins/RenderFormPlugin.pm
lib/TWiki/Plugins/ActionTrackerPlugin.pm
lib/TWiki/Plugins/FormPlugin.pm
I'll try to look at the line in
RenderFormPlugin which is causing me the problems. It is labeled as "workaround for date fields", so, yes, it doesn't play well with others.
--
AaronLWalker - 2010-02-18
Closing this question after more than 30 days of inactivity. Feel free to reopen if needed. Consider engaging one of the
TWiki consultants if you need timely help. We invite you to
get involved with the community, it is more likely you get community support if you support the open source project!
--
PeterThoeny - 2010-04-05
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.