Showing posts with label af:inputtext. Show all posts
Showing posts with label af:inputtext. Show all posts

Monday, 16 November 2015

How to set the default character type for af:inputText in ADF

This blog we will see how to set the default character type for af:inputText in ADF.
We need to add the contentStyle property in af:inputText component.

For upper case character: text-transform:uppercase;
For lower case character: text-transform:lowercase;
For first letter capital: text-transform:capitalize;

The code should look like the below


<af:inputText label="Upper Case : " id="it3"
                       contentStyle="text-transform:uppercase;"
                       shortDesc="All character will be upper case"/>
<af:inputText label="Lower Case: " id="it2"
                       contentStyle="text-transform:lowercase;"
                       shortDesc="All character will be lower case"/>
<af:inputText label="Capital Case : " id="it1"
                       contentStyle="text-transform:capitalize;"
                       shortDesc="First chracter will be capital"/>


Thanks..

Sunday, 26 April 2015

How to display tooltip when input text is disabled

This blog we will see how to display the tool tip when input text is disabled.

Generally if the af:inputText is disable then the shortDesc will not work. For displaying the shortDesc we need to add the code like the below.

<af:panelGroupLayout id="pgl2" shortDesc="Hello PKN">
    <af:inputText value="Hello PKN" id="ot6" disabled="true"/>
</af:panelGroupLayout>
Thanks..