Project Wonder 5.0

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)
           
readonly whether or not the input field is readonly (optional)
           

Field Summary
 
Fields inherited from class com.webobjects.appserver._private.WOInput
_escapeHTML, _value
 
Fields inherited from class com.webobjects.appserver._private.WOHTMLDynamicElement
_associations, _constantAttributesRepresentation, _dyneltName, _finishedInitialization
 
Fields inherited from class com.webobjects.appserver._private.WODynamicGroup
_children
 
Fields inherited from class com.webobjects.appserver.WODynamicElement
_ConstructorParameters
 
Constructor Summary
ERXWOPasswordField(java.lang.String name, com.webobjects.foundation.NSDictionary associations, com.webobjects.appserver.WOElement template)
           
 
Method Summary
protected  void _appendCloseTagToResponse(com.webobjects.appserver.WOResponse response, com.webobjects.appserver.WOContext context)
           
protected  void _appendValueAttributeToResponse(com.webobjects.appserver.WOResponse response, com.webobjects.appserver.WOContext context)
           
protected  java.lang.String hiddenValueInContext(com.webobjects.appserver.WOContext context, com.webobjects.appserver.WOComponent component)
           
protected  boolean isDisabledInContext(com.webobjects.appserver.WOContext context)
           
protected  boolean isReadonlyInContext(com.webobjects.appserver.WOContext context)
           
 void takeValuesFromRequest(com.webobjects.appserver.WORequest request, com.webobjects.appserver.WOContext context)
           
protected  java.lang.String type()
           
 
Methods inherited from class com.webobjects.appserver._private.WOInput
_appendNameAttributeToResponse, _shouldEscapeHTML, appendAttributesToResponse, constantAttributesRepresentation, disabledInComponent, nameInContext, toString
 
Methods inherited from class com.webobjects.appserver._private.WOHTMLDynamicElement
_appendAttributesFromAssociationsToResponse, _appendOpenTagToResponse, _frameworkNameInComponent, appendConstantAttributesToResponse, appendNonURLAttributesToResponse, appendToResponse, appendURLAttributesToResponse, computeActionStringInContext, computeQueryDictionaryInContext, elementName, escapeHTML, nonUrlAttributeAssociations, 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(java.lang.String name,
                          com.webobjects.foundation.NSDictionary associations,
                          com.webobjects.appserver.WOElement template)
Method Detail

type

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

isDisabledInContext

protected boolean isDisabledInContext(com.webobjects.appserver.WOContext context)

isReadonlyInContext

protected boolean isReadonlyInContext(com.webobjects.appserver.WOContext context)

takeValuesFromRequest

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

hiddenValueInContext

protected java.lang.String hiddenValueInContext(com.webobjects.appserver.WOContext context,
                                                com.webobjects.appserver.WOComponent component)

_appendValueAttributeToResponse

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

_appendCloseTagToResponse

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

Last updated: Tue, Feb 21, 2017 • 05:45 PM CET

Copyright © 2002 – 2007 Project Wonder.