password - Password

Masks user input to a control by echoing asterisks.

Category

basics

Syntax

password="true|false"

Usage

In Design mode, click the top tab under Properties and look for Password, or click All Properties and look for password under basics.

By default, a control echoes the characters typed.

Examples

This Edit Box control is rendered in password mode if the user is not Joe Bar.
<xp:inputText id="inputText1" value="#{document1.subject}">
	<xp:this.password>
		<![CDATA[#{javascript:session.getCommonUserName() != "Joe Bar"}]]>
	</xp:this.password>
</xp:inputText>