Tuesday, October 21, 2014

Get Current Page No. for an Iterator ADF

 
public int getCurrentPageNumber() {
        return (this.getTableIterator().getFirst() / 10) + 1;
    }

Set VO Iterator to an index ADF


        DCIteratorBinding testIterator = ADFUtils.findIterator("testIterator");

       testIterator.setCurrentRowIndexInRange(0);
   

Monday, October 20, 2014

Disclosing a show detail item in Panel Tab by default ADF



  • use the red colored properties to open the default show detail item in a panel tab



<af:panelTabbed id="pt4" styleClass="pageTab AFStretchWidth"
inlineStyle="height:530.0px;" contentDelivery="lazyUncached">

        <af:showDetailItem text="Tab 1" id="sdi13" disclosed="true"
                            persist="disclosed"
                           inlineStyle="height:500.0px;"
                           styleClass="AFStretchWidth">
                                :
                                :
                                :
      <af:showDetailItem/>
       <af:showDetailItem text="Tab 2"
id="sdi12" styleClass="AFStretchWidth"
  disclosed="false" persist="disclosed">
:
                                :
                                :
      <af:showDetailItem/>
<af:panelTabbed/>


  • Web.xml

    replace  this 

<context-param>
    <param-name>org.apache.myfaces.trinidad.CHANGE_PERSISTENCE</param-name>
    <param-value>oracle.adf.view.page.editor.change.ComposerChangeManager</param-value>
  </context-param>

With this one.

<context-param>
    <param-name>org.apache.myfaces.trinidad.CHANGE_PERSISTENCE</param-name>
    <param-value>oracle.adf.view.rich.change.FilteredPersistenceChangeManager</param-value>
  </context-param>