Cool Feature- Using ‘Placeholder’ to set watermark hint on empty input fields in ADF/Jdeveloper 12C

Sharing is Caring

Hello All,
This post talks about a very cool feature, introduced in ADF/JDeveloper 12C – Placeholder
Sometimes we need to set some hint on input fields as you can see on facebook sign up form, all fields are self-descriptive

Placeholder

So now we can do that in ADF faces easily, in 12C there is a property named ‘Placeholder’ to define hint for empty fields
You can see in below form (ADF Faces)-

See the xml source of this simple form-

 <af:panelFormLayout id="pfl1">
                    <f:facet name="footer"/>
                    <af:inputText label="Country" id="it1" placeholder="Enter Country Name"
                                  contentStyle="width:200px;color:red;"/>
                    <af:inputDate label="Date" id="id1" placeholder="Select Date"
                                  contentStyle="width:200px;color:red;"/>
                    <af:inputListOfValues label="Country" popupTitle="Search and Result Dialog" id="ilov1"
                                          placeholder="Select Country" contentStyle="width:200px;color:red;"/>
                    <af:inputComboboxListOfValues label="Country" popupTitle="Search and Result Dialog" id="iclov1"
                                                  placeholder="Select Country" contentStyle="width:200px;color:red;"/>
                    <af:inputNumberSpinbox label="Value" id="ins1" placeholder="Enter Or Select"
                                           contentStyle="width:200px;color:red;"/>
                </af:panelFormLayout>

Cheers 🙂

Related Posts

I’m an Oracle ACE, Blogger, Reviewer,
Technical Lead working on Oracle ADF

0 thoughts on “Cool Feature- Using ‘Placeholder’ to set watermark hint on empty input fields in ADF/Jdeveloper 12C”

  1. Ashish,

    Your blog is awesome! I'm from Brazil, and development with ADF and JDeveloper, and i always learning something interesting in this place.

    Thank you very much for the posts!
    Just wanted to thank you!

    Happy weekend.

Leave a Reply

Your email address will not be published. Required fields are marked *