Sunday, January 16, 2011

ADF Faces RC: Right Aligning Components Inside ADF Column Footer Facet

The image below shows a right aligned OutpuText component inside the ADF Column footer facet:

To achieve the above alignment, simply enclosed the component inside a panelGrid as follows:
     <f:facet name="footer">
       <h:panelGrid columns="1" id="pg1" style="text-align:right;" width="100%">
         <af:outputText value="#{yourvaluebindinghere}"
               id="ot8">
           <af:convertNumber type="currency" currencySymbol=" "/>
         </af:outputText>
       </h:panelGrid>
     </f:facet>

Cheers!

4 comments:

  1. Thanks a lot. This is exactly what I needed :)

    ReplyDelete
  2. Hi

    I tried to do like this
    But the namespace 'h' is not found while running in jdeveloper
    Do we need to import any libraries ?

    Thanks for any help
    Regards
    Sameer

    ReplyDelete
  3. Hi Sameer,

    I apologize for not being able to notice your comment until this time. Nevertheless, if you wanted to support the JSF HTML components then just go to Project Properties --> JSP Tag Libraries and click the add the JSF HTML 1.2

    ReplyDelete