|
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.Objectuk.co.weft.htform.ResourceConsumerImpl
uk.co.weft.domutil.NodeGeneratorImpl
uk.co.weft.htform.Widget
uk.co.weft.htform.CheckPasswordWidget
A control for adding a new, or changing an old, password. If changing an old the context must contain sufficient information to authenticate the user using the old password - but then, it should anyway. Must be in an AuthenticatedForm.
| Field Summary | |
static java.lang.String |
FIRSTSUFFIX
a suffix we will add to the widget name to store the first new value in the context |
static int |
MINPASSWORDLENGTH
the minimmum acceptable length of a password |
static java.lang.String |
OLDSUFFIX
a suffix we will add to the widget name to store the old password value in the context |
static java.lang.String |
SECONDSUFFIX
a suffix we will add to the widget name to store the second new value in the context |
boolean |
showOld
whether or not to show a widget for the old password. |
| Fields inherited from class uk.co.weft.htform.Widget |
ACTIONCSSCLASS, akprompt, attrs, CONTEXTATTRIBUTESSUFFIX, cssClass, DANGEROUSCSSCLASS, debug, DEFAULTTOKEN, dflt, form, generateAs, GENERATEASHTML, GENERATEASXFORM, GENERATEASXML, help, HELPTOKEN, immutable, ISIMMUTABLETOKEN, ISMANDATORYTOKEN, mandatory, MANDATORYCSSCLASS, maxVisibleSize, name, NAMETOKEN, OPTIONALCSSCLASS, PREVIOUSVALUESUFFIX, prompt, PROMPTTOKEN, size, SIZETOKEN, type, TYPETOKEN |
| Fields inherited from class uk.co.weft.domutil.NodeGeneratorImpl |
namespaceURI |
| Fields inherited from class uk.co.weft.htform.ResourceConsumerImpl |
resourceBundleName |
| Fields inherited from interface uk.co.weft.domutil.NodeGenerator |
NAMESPACEURIMAGICTOKEN |
| Fields inherited from interface uk.co.weft.htform.ResourceConsumer |
RESOURCEBUNDLEMAGICTOKEN |
| Constructor Summary | |
CheckPasswordWidget()
If you use this constructor, you are strongly advised to use the init() method. |
|
CheckPasswordWidget(java.lang.String name,
java.lang.String prompt,
java.lang.String help)
Basic initialisation |
|
| Method Summary | |
int |
getTabPlaces(Context context)
How many tab places do I wish to use up in this context? |
void |
layout(Context context,
int tabIndex)
layout just the widget, without prompt, help, or surrounding context. |
protected void |
layoutPassInput(Context context,
javax.servlet.ServletOutputStream out,
java.lang.String subname,
java.lang.String subprompt)
Deprecated. use variant with tabIndex |
protected void |
layoutPassInput(Context context,
javax.servlet.ServletOutputStream out,
java.lang.String subname,
java.lang.String subprompt,
int tabIndex)
layout one of the actual HTML input controls which make up part of this widget |
protected void |
layoutValue(Context context)
Show only 'set' or 'unset'. |
protected void |
preProcess(Context context)
if first and second values are available in the context, and non null, and equal to one another, then put that value on my name in the context. |
void |
setRealPassToken(java.lang.String string)
Set my real password token to this value. |
| Methods inherited from class uk.co.weft.htform.Widget |
clone, generate, generateAttributes, generateAttributes, generateHTML, generateHTMLPrompt, generateInnerHTML, generateValue, generateXML, getContextAttribute, getCssClass, getHeight, getHelp, getName, getPrompt, getType, getWidth, init, layout, layout, layout, layoutAttribute, layoutAttributes, makeReady, maybeLayout, maybeLayout, onloadRequest, onloadRequest, postProcess, scriptRequest, scriptRequest, setAttribute, setContextAttribute, setCssClass, setDebug, setDefault, setHelp, setImmutable, setMandatory, setMandatory, setName, setPrompt, setSize, setType |
| Methods inherited from class uk.co.weft.domutil.NodeGeneratorImpl |
getNamespaceURI, setNamespaceURI |
| Methods inherited from class uk.co.weft.htform.ResourceConsumerImpl |
getContextOrResource, getResource, getResourceOrContext, getResourceString, grs, grs |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String OLDSUFFIX
public static final java.lang.String FIRSTSUFFIX
public static final java.lang.String SECONDSUFFIX
public static final int MINPASSWORDLENGTH
public boolean showOld
| Constructor Detail |
public CheckPasswordWidget()
Widget.init(Context)
public CheckPasswordWidget(java.lang.String name,
java.lang.String prompt,
java.lang.String help)
| Method Detail |
public void setRealPassToken(java.lang.String string)
string - the new tokenpublic int getTabPlaces(Context context)
Widget
getTabPlaces in class Widgetcontext - the service context
Widget.getTabPlaces(uk.co.weft.dbutil.Context)
public void layout(Context context,
int tabIndex)
throws DataStoreException,
javax.servlet.ServletException,
java.io.IOException
layout in class Widgetcontext - the service contexttabIndex - the tabindex to use, ot the tab index of my first
sub-widget if I have more than one
DataStoreException - I don't, but things which specialise me may
javax.servlet.ServletException - I don't, but things which specialise me may
java.io.IOException - if can't write to the output stream
protected void layoutPassInput(Context context,
javax.servlet.ServletOutputStream out,
java.lang.String subname,
java.lang.String subprompt)
throws javax.servlet.ServletException,
java.io.IOException
javax.servlet.ServletException
java.io.IOException
protected void layoutPassInput(Context context,
javax.servlet.ServletOutputStream out,
java.lang.String subname,
java.lang.String subprompt,
int tabIndex)
throws javax.servlet.ServletException,
java.io.IOException
context - the context in which to lay it outout - the stream on which to lay it outsubname - the name of the subwidget to lay outsubprompt - the prompt of the subwidget to lay outtabIndex - the tab index to use
javax.servlet.ServletException - if layoutAttributes fails
java.io.IOException - if for some reason we can;t write to the stream
protected void layoutValue(Context context)
throws DataFormatException,
javax.servlet.ServletException,
java.io.IOException
layoutValue in class WidgetDataFormatException
javax.servlet.ServletException
java.io.IOException
protected void preProcess(Context context)
throws DataStoreException,
javax.servlet.ServletException
preProcess in class Widgetcontext - the Context of the service in which I'm called
javax.servlet.ServletException - if the thing itself breaks
DataStoreException
|
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 | |||||||||