|
jacquard 1.12.0 by The Web Engineering Factory and Toolworks | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
uk.co.weft.maybeupload.MaybeUploadServlet
uk.co.weft.htform.Servlet
uk.co.weft.htform.WithExceptionHandlerServlet
uk.co.weft.htform.Page
uk.co.weft.htform.Form
uk.co.weft.htform.AuthenticatedForm
uk.co.weft.htform.List
An HTML page which is principally a dababase listing.
This class (and consequently all servlets which are subclasses of this class) know about the following configuration parameters, in addition to those handled by Page:
uk.co.weft.htform.ResultFormatter
can_search the search string will (at
present) be added to the end in the form [where|and]
link_field ~ 'search_string', so don't use a
'group by' or 'order by' clause andcan_search.
link_field, q.v., for backwards compatibility
search_token and whose value is the search string entered by
the user. Optional. Defaults to false.
Page,
Serialized Form| Field Summary | |
protected java.lang.String |
action
the action (URL) to invoke to select a record from the results. |
protected java.lang.String |
actionField
the field by which to select a record from the results. |
static java.lang.String |
ACTIONFIELDCONFIGTOKEN
configuration token: the token for the name of the field to append to the action URL |
static java.lang.String |
ACTIONLABELCONFIGTOKEN
configuration token: the token for the label on the action url |
static java.lang.String |
ACTIONURLCONFIGTOKEN
configuration token: the token for the action URL |
protected java.lang.String |
canAdd
the text of a 'add another' link; if set, use action URL; if not set, don't show |
static java.lang.String |
CANADDBEFORECONFIGTOKEN
configuration token: the token for whether to show the 'add a new' link before the list as well as after |
static java.lang.String |
CANADDCONFIGTOKEN
configuration token: the token for whether to show a 'can add' link |
static java.lang.String |
CANSEARCHCONFIGTOKEN
configuration token: the token for whether to show a 'Search' widget |
protected boolean |
clickToOrder
should those headers be clickable to reorder the result? Normally they should. |
static java.lang.String |
CLICKTOORDERCONFIGTOKEN
configuration token: the token for whether to implement 'click to order' |
protected ResultFormatter |
formatter
my result formatter object |
static java.lang.String |
FORMATTERCLASSCONFIGTOKEN
configuration token: the token for the name of the formatter class |
protected java.lang.String |
formatterName
the classname of my result formatter object |
protected java.lang.String |
linkField
the field to highlight to allow the user to select a record in the results |
static java.lang.String |
LINKFIELDCONFIGTOKEN
configuration token: the token for the name of the field to use as a link in the action URL |
protected java.lang.String |
listQueryTemplate
a query template to select the records to list. |
protected java.lang.String |
lowerFn
the name of the SQL function which coerces characters to lower case |
static java.lang.String |
LOWERFNCONFIGTOKEN
configuration token: the token for the 'tolower' function in the SQL used by the connected database |
protected java.lang.String |
matchDelimEnd
suffix for substring match |
protected java.lang.String |
matchDelimStart
prefix for substring match |
protected java.lang.String |
matchOp
the SQL operator to use to do matching |
protected boolean |
noDefaultList
should I layout a default list first? |
static java.lang.String |
NODEFAULTLISTCONFIGTOKEN
configuration token: the token for whether to suppress the default list |
protected java.lang.String |
orderBy
the names I should order the results by |
static java.lang.String |
ORDERBYMAGICTOKEN
configuration/context magic token: the token for the name(s) of the field(s) to order by |
static java.lang.String |
QUERYTEMPLATECONFIGTOKEN
configuration token: the token for the query template |
protected boolean |
recogniseLinks
should I recognise links and format them appropriately? Normally yes |
static java.lang.String |
RECOGNISELINKSCONFIGTOKEN
configuration token: the token for whether to recognise URLs in the data |
static java.lang.String |
RESULTSMAXROWSMAGICTOKEN
configuration/context magic token: the maximum number of results to show on one page |
static java.lang.String |
RESULTSOFFSETMAGICTOKEN
magic token: the offset into the result set |
static java.lang.String |
SEARCHEXACTCONFIGTOKEN
configuration token: the token for whether to do exact matching in search |
protected java.lang.String |
searchField
the database field in which to search |
static java.lang.String |
SEARCHFIELDCONFIGTOKEN
configuration token: the token for the name of the field to search |
protected java.lang.String |
searchHelp
the help string for the search widget |
static java.lang.String |
SEARCHHELPCONFIGTOKEN
configuration token: the token for the helptext of the search widget |
protected java.lang.String |
searchPrompt
the prompt string for the search widget |
static java.lang.String |
SEARCHPROMPTCONFIGTOKEN
configuration token: the token for the prompt for the search widget |
static java.lang.String |
SEARCHSETCOOKIECONFIGTOKEN
configuration token: the token for whether set a cookie whose name is the value of search_token and whose value is the search string entered by the user. |
protected int |
searchSize
the size of the widget |
static java.lang.String |
SEARCHSIZECONFIGTOKEN
configuration token: the token for the size of the seach widget |
protected java.lang.String |
searchToken
the magic token for searching. |
static java.lang.String |
SEARCHTOKENCONFIGTOKEN
configuration token: the token for the name of the token in the context whose value should be searched for to filter the list. |
protected Widget |
searchw
the widget in which search text should be entered, if any |
protected boolean |
showCanAddBefore
whether to show the cannAdd link before the list, as well as after it; default is we do. |
protected boolean |
showHeaders
should I show the field names as column headers? Normally yes |
static java.lang.String |
SHOWHEADERSCONFIGTOKEN
configuration token: the token for whether to show column headers |
protected boolean |
showId
should I show the id column? Normally yes |
static java.lang.String |
SHOWIDCONFIGTOKEN
configuration token: the token for whether to show the id column |
protected java.lang.String[] |
slots
an array of the names of values in the context to be pasted into the query. |
static java.lang.String |
SORTDIRECTIONMAGICTOKEN
context magic token: the token for the direction to order by; value (if supplied) must be the value of SORTORDERDESCENDINGMAGICVALUE |
static java.lang.String |
SORTORDERDESCENDINGMAGICVALUE
magic value to indicate that the sort direction is descending |
| 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.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.maybeupload.MaybeUploadServlet |
allowOverwrite, maxUpload, saveUploadedFilesToDisk, silentlyRename, uploadDir, uploadDirPath, uploadDirURL |
| Fields inherited from interface uk.co.weft.htform.ResourceConsumer |
RESOURCEBUNDLEMAGICTOKEN |
| Constructor Summary | |
List()
|
|
| Method Summary | |
protected Contexts |
fetch(Context context)
fetch my results. |
protected java.lang.String |
getTitle(Context context)
Specialisation: show what we're searching for |
void |
init(Context config)
Read my configuration and, if required, set up my search form |
protected void |
postForm(Context context)
Layout my listing. |
| 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, getTransformURL, getWidgetSetByName, handleAction, hasWidgets, makeReady, 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 |
| Field Detail |
public static final java.lang.String ACTIONFIELDCONFIGTOKEN
public static final java.lang.String ACTIONLABELCONFIGTOKEN
public static final java.lang.String ACTIONURLCONFIGTOKEN
public static final java.lang.String CANADDBEFORECONFIGTOKEN
public static final java.lang.String CANADDCONFIGTOKEN
public static final java.lang.String CANSEARCHCONFIGTOKEN
public static final java.lang.String CLICKTOORDERCONFIGTOKEN
public static final java.lang.String FORMATTERCLASSCONFIGTOKEN
public static final java.lang.String LINKFIELDCONFIGTOKEN
public static final java.lang.String LOWERFNCONFIGTOKEN
public static final java.lang.String NODEFAULTLISTCONFIGTOKEN
public static final java.lang.String ORDERBYMAGICTOKEN
public static final java.lang.String SORTDIRECTIONMAGICTOKEN
SORTORDERDESCENDINGMAGICVALUE,
Constant Field Valuespublic static final java.lang.String SORTORDERDESCENDINGMAGICVALUE
public static final java.lang.String QUERYTEMPLATECONFIGTOKEN
public static final java.lang.String RECOGNISELINKSCONFIGTOKEN
public static final java.lang.String RESULTSOFFSETMAGICTOKEN
public static final java.lang.String RESULTSMAXROWSMAGICTOKEN
public static final java.lang.String SEARCHFIELDCONFIGTOKEN
public static final java.lang.String SEARCHSIZECONFIGTOKEN
public static final java.lang.String SHOWHEADERSCONFIGTOKEN
public static final java.lang.String SHOWIDCONFIGTOKEN
public static final java.lang.String SEARCHEXACTCONFIGTOKEN
public static final java.lang.String SEARCHHELPCONFIGTOKEN
public static final java.lang.String SEARCHPROMPTCONFIGTOKEN
public static final java.lang.String SEARCHSETCOOKIECONFIGTOKEN
public static final java.lang.String SEARCHTOKENCONFIGTOKEN
protected ResultFormatter formatter
protected java.lang.String action
protected java.lang.String actionField
protected java.lang.String canAdd
protected java.lang.String formatterName
protected java.lang.String linkField
protected java.lang.String listQueryTemplate
PreparedStatementprotected java.lang.String lowerFn
protected java.lang.String matchDelimEnd
protected java.lang.String matchDelimStart
protected java.lang.String matchOp
protected java.lang.String orderBy
protected java.lang.String searchField
protected java.lang.String searchHelp
protected java.lang.String searchToken
protected java.lang.String searchPrompt
protected Widget searchw
protected java.lang.String[] slots
protected boolean clickToOrder
protected boolean noDefaultList
protected boolean recogniseLinks
protected boolean showCanAddBefore
protected boolean showHeaders
protected boolean showId
protected int searchSize
| Constructor Detail |
public List()
| Method Detail |
public void init(Context config)
throws InitialisationException
init in interface DocumentGeneratorinit in class AuthenticatedFormconfig - my configuration
InitialisationException - if my configuration is unsuitableprotected java.lang.String getTitle(Context context)
getTitle in class Form
protected Contexts fetch(Context context)
throws DataStoreException,
java.sql.SQLException
DataStoreException
java.sql.SQLException
protected void postForm(Context context)
throws java.lang.Exception
postForm in class Formjava.lang.Exception
|
jacquard 1.12.0 by The Web Engineering Factory and Toolworks | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||