From: Alistair Y. <ali...@sm...> - 2006-03-23 11:08:40
|
It's just too complicated for me Matthew, plus I don't want anything to do with Facility! My Modules is not a facility so it shouldn't subclass it. We're still being hoodwinked by the template processor. I want to call any class, not just Facility. Look into my eyes, not around the eyes, into them.... there is no Facility :) If My Modules is useful for someone, they would add the <plugin ... / > tag to their template and get the functionality. If they hadn't installed the plugin, they'd get an error message. Can't see anything wrong with that. I think we're keeping our templates in our cvs rather than sf. We just need a hook into Facility to display our stuff. Of course, if a template can call any class we wouldn't need the hook. I think we're only having this conversation coz Facility rules the roost in bod. It should be deposed, now! Alistair On 23 Mar 2006, at 10:37, Matthew Buckett wrote: > Alistair Young wrote: >> Bodders, I've been delurked, damn, to ask opinions. >> >> We have a requirement for My Modules, which is specific to us so >> we don't >> want to pollute Facility. However, a template must call facility >> to get it >> to write stuff to the screen. > > How about using the existing Bodington facility for doing this that is > used for the Recycle building? So you: > > Subclass Facility - Create > public class UhiFacility extends Facility .... adding the Uhi > specific > functionality. > > For the changes to the template create a new template style > /tomcatadd/webapps/bodington/templates/style_1/ and copy and change > any > templates that need to be different for the UHI code. > > Edit the bodington-defaults and replace references to Facility with > UhiFacility. > > Change the database so that the style of the root resource is 1 so > that > templates are first loaded from the UHI template folder (style_1). > > The only problem that I can see at the moment is that for Facility > subclasses they still extend the standard facility so things like > questionnaire facility wouldn't have the extra UHI functionality. > > -- > -- Matthew Buckett, VLE Developer > -- Learning Technologies Group, Oxford University Computing Services > -- Tel: +44 (0)1865 283660 http://www.oucs.ox.ac.uk/ltg/ > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting > language > that extends applications into web and mobile media. Attend the > live webcast > and join the prime developer group breaking into this new coding > territory! > http://sel.as-us.falkag.net/sel? > cmd=lnk&kid=110944&bid=241720&dat=121642 > _______________________________________________ > Bodington-developers mailing list > Bod...@li... > https://lists.sourceforge.net/lists/listinfo/bodington-developers |