readonly - Read Only Flag
Makes a control read-only or editable.
Category
dataSyntax
readonly="true|false"
Usage
In Design mode, click the top tab under Properties and look for Read-only, or click All Properties and look for readonly under basics.By default, a control is editable.
This property affects all contained controls.
Examples
This Edit Box control is read-only if the user is not Joe Bar.<xp:inputText id="inputText1" value="#{document1.subject}">
<xp:this.readonly>
<![CDATA[#{javascript:session.getCommonUserName() != "Joe Bar"}]]>
</xp:this.readonly>
</xp:inputText>