How to set the label for any field remotedly (by using other tags) in ADF 11g

If we want to format the display of the label for any field, we can use the <outputLabel> tag for that, as we get more options on <outputLabel> tag. The for attribute of the <outputLabel> tag should be the ID value of the field to which we are applying the label.

The sameple code is shown below –

<af:outputLabel value=”No Internal Dual Coverage Terms :” id=”ol1″ for=”soc1“/>

 

<af:selectOneChoice value=”#{bindings.NoIntDualCovgTerms.inputValue}”
                                  required=”#{bindings.NoIntDualCovgTerms.hints.mandatory}”
                                  shortDesc=”#{bindings.NoIntDualCovgTerms.hints.tooltip}”
                                  id=”soc1“>
                <f:selectItems value=”#{bindings.NoIntDualCovgTerms.items}”
                               id=”si1″/>
              </af:selectOneChoice>

The above method to set the label remotely can be used for any Tag in JSF page, which ever accepts the For attribute.

Advertisements
This entry was posted in ADF (Application Development Framework) and tagged , , , , , . Bookmark the permalink.

One Response to How to set the label for any field remotedly (by using other tags) in ADF 11g

  1. Starly says:

    I’ve been loknoig for a post like this forever (and a day)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s