alloy:inputSecret

InputSecret is a UIInput component that renders an <input> element with type=password. Since it extends HtmlInputSecret, it supports all the features of h:inputSecret.

Redisplay Usage

The redisplay attribute indicates whether or not the value attribute is rendered to the response. For example, if redisplay is true then the component would be rendered like the following:

<input type="secret" value="myPlainTextPassword" />

Since this is a potential security risk, the default value of the redisplay attribute is false. However, this has the side-effect of the user having to re-enter a value when validation fails. In order to provide a better user experience, avoid using render=@form to update the DOM.


Source Code

Liferay Faces Alloy 4.1.1 + Liferay Faces Bridge Implementation 5.0.0 + Showcase Common 4.0.0 + Liferay Faces Util 3.4.1 + Mojarra 2.2.20