jacquard 1.12.0 by The Web Engineering Factory and Toolworks

uk.co.weft.event
Class DiaryMonth

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended byuk.co.weft.maybeupload.MaybeUploadServlet
              extended byuk.co.weft.htform.Servlet
                  extended byuk.co.weft.htform.WithExceptionHandlerServlet
                      extended byuk.co.weft.htform.Page
                          extended byuk.co.weft.htform.Form
                              extended byuk.co.weft.htform.AuthenticatedForm
                                  extended byuk.co.weft.event.DiaryMonth
All Implemented Interfaces:
DocumentGenerator, ResourceConsumer, java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class DiaryMonth
extends AuthenticatedForm

A simple servlet form giving a month view on the events. Essentially it's just a wrapper round a EventsDiaryPseudoWidget, which does all the clever stuff. This is an example of old-style Jacquard, using htform.

This class (and consequently all servlets which are subclasses of this class) know about the following configuration parameters, in addition to those handled by AuthenticatedForm:

day_action
The base URL to follow when a date is selected. The string '?day=' and a ANSI SQL format date will be appended to it
actor_menu
If set to 'true', show a menu of available actors, and, if one is selected, show events for just that actor
category_menu
If set to 'true', show a menu of available categories, and, if one is selected, show events for just that category
location_menu
If set to 'true', show a menu of available locations, and, if one is selected, show events for just that location

Version:
$Revision: 1.10.4.1 $ This revision: $Author: simon $
  $Log: DiaryMonth.java,v $
  Revision 1.10.4.1  2005/12/23 10:48:33  simon
  Brute force tidy up after CVS server crash: this time it should work.

  Revision 1.10  2004/05/07 15:03:54  simon
  More work on the configurer and it is oh-so-nearly working
  The payload is fetched and unpacked; the substitutions are
  made, and the delivery war is created. I'm falling at the last
  hurdle, though - it does not get delivered!

  Revision 1.9  2003/08/20 09:38:35  simon
  Code cleanup with eclipse; mostly removal of exccessive includes

  Revision 1.8  2001/01/30 11:43:49  simon
  hanged init to take Context as argume.

  Revision 1.7  2000/06/29 11:03:49  simon
  New widgets to allow (configurable) location and category searches.

  Revision 1.6  2000/06/27 19:14:52  simon
  Cosmetic changes: made events count configurable.

  Revision 1.5  2000/05/12 10:29:12  simon
  Changes primarily to allow events with null start and finish times.

  Revision 1.4  2000/05/09 17:45:03  simon
  Now possible to store events for several different people, and view either
  all or just one; in the process the AUTHOR table has become ACTOR

  Revision 1.3  2000/05/04 10:50:13  simon
  Switch to IBM Java2 compiler; Jacquard 1 Release Candidate 2

  Revision 1.2  2000/03/24 10:20:45  simon
  event now more or less working.

  Revision 1.1  2000/02/20 23:10:07  simon
  Beginning of event system: working month-to-view page, nothing else
  working yet.

  
 
Author:
Simon Brooke (simon@jasmine.org.uk)
See Also:
EventsDiaryPseudoWidget, Serialized Form

Field Summary
 
Fields inherited from class uk.co.weft.htform.AuthenticatedForm
allowLogout, ALLOWLOGOUTCONFIGTOKEN, AUTHENTICATEDUSERMAGICTOKEN, authenticator, AUTHENTICATORCLASSMAGICTOKEN, authentificationWidgets, logoutPrompt, LOGOUTPROMPTCONFIGTOKEN, logoutWidget, onLogoutRedirect
 
Fields inherited from class uk.co.weft.htform.Form
action, actionExecutedToken, ACTIONEXECUTEDTOKEN, auxiliaries, contextMenuMagicToken, CONTEXTMENUMAGICTOKEN, cssHelp, CSSHELP, cssPrompt, CSSPROMPT, defaultScriptBase, mandatoryPrompt, MIN_WIDGETS, onloadFunctionToken, ONLOADFUNCTIONTOKEN, optionalPrompt, selectedWidgetSetMagicToken, SELECTEDWIDGETSETMAGICTOKEN, showHeadline, submitMethod, SUBMITMETHODCONFIGTOKEN, SUBMITMETHODGET, SUBMITMETHODPOST, validationWhingeToken, VALIDATIONWHINGETOKEN, whingeHeader, widgets, widgetSets
 
Fields inherited from class uk.co.weft.htform.Page
DOCTYPECONFIGTOKEN, dynamicFootInclude, dynamicHeadInclude, footInclude, footIncludeURL, headInclude, headIncludeURL, imageUrlBase, layout, printStylesheet, PRINTSTYLESHEETCONFIGTOKEN, stylesheet, STYLESHEETCONFIGTOKEN, title, titleMagicToken, TITLEMAGICTOKEN
 
Fields inherited from class uk.co.weft.htform.WithExceptionHandlerServlet
EXCEPTIONHANDLERCLASSCONFIGTOKEN
 
Fields inherited from class uk.co.weft.htform.Servlet
calendar, conf, contentType, CONTENTTYPECONFIGTOKEN, cookieDomain, cookiePath, COOKIESCONFIGTOKEN, cookieTTL, dbPassword, dbUrl, dbUsername, debug, DEBUGCONFIGTOKEN, driverName, embedded, here, identity, localeMagicToken, LOCALEMAGICTOKEN, outputStreamMagicToken, OUTPUTSTREAMMAGICTOKEN, parsePathInfo, PATHINFOMAGICTOKEN, ready, redirectMagicToken, REDIRECTMAGICTOKEN, requestMagicToken, REQUESTMAGICTOKEN, resourceBundleName, responseMagicToken, RESPONSEMAGICTOKEN, servletMagicToken, SERVLETMAGICTOKEN, sessionMagicToken, SESSIONMAGICTOKEN, USEHTTPSCONFIGTOKEN, zone
 
Fields inherited from class uk.co.weft.maybeupload.MaybeUploadServlet
allowOverwrite, maxUpload, saveUploadedFilesToDisk, silentlyRename, uploadDir, uploadDirPath, uploadDirURL
 
Fields inherited from interface uk.co.weft.htform.ResourceConsumer
RESOURCEBUNDLEMAGICTOKEN
 
Constructor Summary
DiaryMonth()
           
 
Method Summary
 void init(Context config)
          As usual, a form init method just sets up the widgets for the form.
 
Methods inherited from class uk.co.weft.htform.AuthenticatedForm
login, logout
 
Methods inherited from class uk.co.weft.htform.Form
addAuxiliary, addWidget, defaultActionHandler, doBody, doHead, doHeadBodySep, fixupMagicValues, generate, getLayout, getNextActionURL, getSelectedWidgetSet, getTitle, getTransformURL, getWidgetSetByName, handleAction, hasWidgets, makeReady, postForm, postProcess, preForm, preProcess, selectNextWidgetSet, setContextMenuQuery
 
Methods inherited from class uk.co.weft.htform.Page
doFoot, doFoot, generateContent, getFootInclude, getFootIncludeURL, getFootIncludeURL, getHeadInclude, getHeadIncludeURL, getHeadIncludeURL, getStylesheet, getStylesheets, getTables, getTitle, outputRedirectBlock, readStringFromURL
 
Methods inherited from class uk.co.weft.htform.WithExceptionHandlerServlet
whinge, whinge, whinge
 
Methods inherited from class uk.co.weft.htform.Servlet
addCookie, addCookie, coerceCookiesToContext, coerceToContext, coerceToContext, coerceToContext, coerceToContext, coerceToUrl, createContext, doGet, doPost, getCalendar, getContentType, getDebug, getLocale, getOutputStream, getResource, getResourceString, getServletInfo, grs, grs, handleCookies, handleRedirect, init, setCookieValues, storeOnSession
 
Methods inherited from class uk.co.weft.maybeupload.MaybeUploadServlet
doDelete, doHead, doOptions, doPut, doTrace, getUploadDir, getUploadURL, service
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface uk.co.weft.domutil.DocumentGenerator
destroy
 

Constructor Detail

DiaryMonth

public DiaryMonth()
Method Detail

init

public void init(Context config)
          throws InitialisationException
As usual, a form init method just sets up the widgets for the form. In the case of the DiaryMonth form, it's just an EventsDiaryPseudoWidget and an ActionWidget

Specified by:
init in interface DocumentGenerator
Overrides:
init in class AuthenticatedForm
Throws:
InitialisationException

jacquard 1.12.0 by The Web Engineering Factory and Toolworks