showReadonlyAsDisabled - Show disabled control for read-only

Displays a read-only control as disabled.

Category

data

Syntax

showReadonlyAsDisabled="true|false"

Usage

In Design mode, click the top tab under Properties and look for Show disabled control for read-only, or click All Properties and look for showReadonlyAsDisabled under data.

By default, a read-only control appears as text.

Examples

This Edit Box control displays as a disabled control if the user is not Joe Bar.
<xp:inputText id="inputText1" value="#{document1.subject}" showReadonlyAsDisabled="true">
	<xp:this.readonly>
		<![CDATA[#{javascript:session.getCommonUserName() != "Joe Bar"}]]>
	</xp:this.readonly>
</xp:inputText>