size - Size
Specifies the number of characters that the user can enter into a control at once.
Category
basicsSyntax
size="n"
Where n
is
an integer.Usage
In Design mode, click the top tab under Properties and look for Size, or click All Properties and look for size under basics.If you compute this value, make the script Compute on Page Load.
Examples
This Edit Box control has a different size depending on user identity.<xp:inputText id="inputText1" value="#{document1.subject}">
<xp:this.size>
<![CDATA[${javascript:if (session.getCommonUserName() == "anonymous") {
return 24
} else {
return 80
}}]]>
</xp:this.size>
</xp:inputText>