Sunday, February 23, 2014

How to Display Hints on disabled field in ADF

This blog explains about How to display 'Hints' on a disabled field. Normally if you set tool tip message at attribute level for any inputtext, By placing mouse cursor on any editable inputText field, you will see corresponding tool tip message, But if you have 'Disabled' field, this approach won't work

Define a face with 'Context' as shown below.

<af:inputText value="#{bindings.ProjCoopFund.inputValue}"
                          label="#{tireprouiBundle.TOTAL_PROJ_COOP}"
                          autoSubmit="true" columns="20" disabled="true"
                          maximumLength="#{bindings.ProjCoopFund.hints.precision}"
                          shortDesc="#{bindings.ProjCoopFund.hints.tooltip}"
                          id="projcoops" rows="1"
                          contentStyle="text-align:right">
              <f:validator binding="#{bindings.ProjCoopFund.validator}"/>
              <af:convertNumber groupingUsed="false"
                                pattern="#{bindings.ProjCoopFund.format}"
                                minFractionDigits="2"/>
              <f:facet name="context">
                <af:contextInfo shortDesc="Sample Tool Tip"
                                id="ctx1"/>
              </f:facet>
            </af:inputText>


No comments:

Post a Comment