org.apache.tapestry.corelib.components
Class PasswordField
java.lang.Object
org.apache.tapestry.corelib.base.AbstractField
org.apache.tapestry.corelib.base.AbstractTextField
org.apache.tapestry.corelib.components.PasswordField
- All Implemented Interfaces:
- ClientElement, Field
public class PasswordField
- extends AbstractTextField
A version of TextField, but rendered out as an <input type="password"> element. Further, the output
value for a PasswordField is always blank.
Includes the size attribute, if a Width annotation is present on
the property bound to the value parameter.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PasswordField
public PasswordField()
writeFieldTag
protected final void writeFieldTag(MarkupWriter writer,
String value)
- Description copied from class:
AbstractTextField
- Invoked from
AbstractTextField.begin(MarkupWriter) to write out the element and attributes (typically, <input>). The
controlName and clientId
properties will already have been set or updated.
Generally, the subclass will invoke MarkupWriter.element(String, Object[]), and will be responsible for
including an AfterRender phase method to invoke MarkupWriter.end().
- Specified by:
writeFieldTag in class AbstractTextField
- Parameters:
writer - markup write to send output tovalue - the value (either obtained and translated from the value parameter, or obtained from the tracker)
Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.