org.apache.tapestry5.corelib.components
Class PasswordField
java.lang.Object
org.apache.tapestry5.corelib.base.AbstractField
org.apache.tapestry5.corelib.base.AbstractTextField
org.apache.tapestry5.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. When the value provided to the PasswordField is blank, it does not update
its property (care should be taken that the "required" validator not be used in that case).
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)
ignoreBlankInput
protected boolean ignoreBlankInput()
- Returns true, blank input should be ignored and not cause an update to the server-side property bound to the
value parameter.
- Overrides:
ignoreBlankInput in class AbstractTextField
- Returns:
- true
Copyright © 2006-2009 Apache Software Foundation. All Rights Reserved.