Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CedricL46/d22efbb58a4418c4a005f72239a2837e to your computer and use it in GitHub Desktop.
Save CedricL46/d22efbb58a4418c4a005f72239a2837e to your computer and use it in GitHub Desktop.
See full tutorial on how to show a placeholder or a tooltip(shortdesc) in an ADF column filter header here : https://cedricleruth.com/how-to-show-a-tooltipshortdesc-or-watermarkplaceholder-in-an-adf-column-filter-header/
<!-- Below an example table on with a column header filter customized to display a place holder and tooltip -->
<af:table value="#{bindings.YourVO.collectionModel}" var="row" rows="#{bindings.YourVO.rangeSize}"
fetchSize="#{bindings.YourVO.rangeSize}" filterModel="#{bindings.YourVOCriteriaQuery.queryDescriptor}"
queryListener="#{bindings.YourVOCriteriaQuery.processQuery}" varStatus="vs"
selectionListener="#{bindings.YourVO.collectionModel.makeCurrent}" rowSelection="single" id="T1"
styleClass="AFStretchWidth"
rowBandingInterval="0" columnBandingInterval="0">
<af:column sortProperty="#{bindings.YourVO.hints.YourVoAttribute.name}" filterable="true" sortable="true" id="Tc1"
width="60">
<!-- Add the following filter facet to modify the header column filter inputText component -->
<f:facet name="filter">
<af:inputText value="#{vs.filterCriteria.YourVoAttribute}"
placeholder="YOUR PLACE HOLDER TEXT" shortDesc="YOUR SHORTDESC TEXT" id="id4">
</af:inputText>
</f:facet>
<af:outputText value="#{row.YourVoAttribute}" id="ot1"/>
</af:column>
</af:table>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment