Project Wonder 5.0.0.8787

er.extensions.components._private
Class ERXWOPasswordField

java.lang.Object
  extended by com.webobjects.appserver.WOElement
      extended by com.webobjects.appserver.WODynamicElement
          extended by com.webobjects.appserver._private.WODynamicGroup
              extended by com.webobjects.appserver._private.WOHTMLDynamicElement
                  extended by com.webobjects.appserver._private.WOInput
                      extended by er.extensions.components._private.ERXWOPasswordField

public class ERXWOPasswordField
extends com.webobjects.appserver._private.WOInput

ERXWOPasswordField is just like WOPasswordField except that it doesn't show the actualy password as the value in the input. Instead, it replaces it with a "hidden value" (defaults to '_@secret@_'). When the form posts back, the value binding is only set if the posted value is different than the hidden value. If you view the source of your html page, you will only see the hidden value (which appears as *'s to the end-user anyway) rather than the actual value. This is not a substitute by any means for SSL. It just adds one small additional amount of security to your HTML.

Author:
mschrag
Bindings
value the actual password value (required)
           
hiddenValue the string to display when hidden (optional)
           
disabled whether or not the input field is disabled (optional)
           
name the name of the input field (optional)
           

Field Summary
 
Fields inherited from class com.webobjects.appserver._private.WOInput
_disabled, _escapeHTML, _hidden, _name, _value
 
Fields inherited from class com.webobjects.appserver._private.WOHTMLDynamicElement
_associations, _class, _constantAttributeAssociations, _constantAttributesRepresentation, _dyneltName, _finishedInitialization, _generatedId, _id, _prefix, _rendered, _secure, _style, _suffix, _title, DontEscapeHTML, EscapeHTML
 
Fields inherited from class com.webobjects.appserver._private.WODynamicGroup
_children
 
Fields inherited from class com.webobjects.appserver.WODynamicElement
_ConstructorParameters
 
Constructor Summary
ERXWOPasswordField(String name, NSDictionary associations, WOElement template)
           
 
Method Summary
protected  void _appendCloseTagToResponse(WOResponse response, WOContext context)
           
protected  void _appendValueAttributeToResponse(WOResponse response, WOContext context)
           
protected  String hiddenValueInContext(WOContext context, WOComponent component)
           
protected  boolean isDisabledInContext(WOContext context)
           
 void takeValuesFromRequest(WORequest request, WOContext context)
           
protected  String type()
           
 
Methods inherited from class com.webobjects.appserver._private.WOInput
_appendDisabledAttributeToResponse, _appendNameAttributeToResponse, _appendTypeAttributeToResponse, appendAttributesToResponse, defaultEscapeHTML, escapeHTMLInContext, hasContent, hiddenInContext, isValueInInputValues, nameInContext, nameInContext, toString, valueStringInContext
 
Methods inherited from class com.webobjects.appserver._private.WOHTMLDynamicElement
__otherQueryDictionaryInContext, __queryDictionaryInContext, _appendAttributesFromAssociationsToResponse, _appendClassAndIdToResponse, _appendOpenTagToResponse, _appendTagAttributeAndValueToResponse, _frameworkNameInComponent, appendConstantAttributesToResponse, appendHiddenFieldToResponse, appendNonURLAttributesToResponse, appendToResponse, appendURLAttributesToResponse, classInContext, computeActionStringInContext, computeQueryDictionaryInContext, constantAttributeAssociations, constantAttributesRepresentation, elementName, escapeHTML, idInContext, isRenderedInContext, nonUrlAttributeAssociations, prefixInContext, secureInContext, stringValueInContext, styleInContext, suffixInContext, titleInContext, urlAttributeAssociations
 
Methods inherited from class com.webobjects.appserver._private.WODynamicGroup
addChildElement, appendChildrenToResponse, childrenElements, EmptyGroup, hasChildrenElements, invokeAction, invokeChildrenAction, takeChildrenValuesFromRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ERXWOPasswordField

public ERXWOPasswordField(String name,
                          NSDictionary associations,
                          WOElement template)
Method Detail

type

protected String type()
Overrides:
type in class com.webobjects.appserver._private.WOInput

isDisabledInContext

protected boolean isDisabledInContext(WOContext context)
Overrides:
isDisabledInContext in class com.webobjects.appserver._private.WOInput

takeValuesFromRequest

public void takeValuesFromRequest(WORequest request,
                                  WOContext context)
Overrides:
takeValuesFromRequest in class com.webobjects.appserver._private.WOInput

hiddenValueInContext

protected String hiddenValueInContext(WOContext context,
                                      WOComponent component)

_appendValueAttributeToResponse

protected void _appendValueAttributeToResponse(WOResponse response,
                                               WOContext context)
Overrides:
_appendValueAttributeToResponse in class com.webobjects.appserver._private.WOInput

_appendCloseTagToResponse

protected void _appendCloseTagToResponse(WOResponse response,
                                         WOContext context)
Overrides:
_appendCloseTagToResponse in class com.webobjects.appserver._private.WOHTMLDynamicElement

Last updated: Wed, Jan 7, 2009 • 04:35 AM EST

Copyright © 2002 – 2007 Project Wonder.