Search This Blog

ADF ( POP Up code ) through Java code and Jspx ( oracle BPM 11g )


ADF POP UP Code ( Java )


 ADF Java Code :

import javax.faces.component.UIComponent;
import oracle.adf.view.rich.component.rich.RichPopup;

 public class DemoPopup
         {
            private RichPopup popUp;
           
           public void createPopup(ActionEvent actionEvent)
            {
        
                UIComponent source = (UIComponent)actionEvent.getSource();
                RichPopup.PopupHints hints = new RichPopup.PopupHints();
                hints.add(RichPopup.PopupHints.HintTypes.HINT_ALIGN_ID,source)
               .add(RichPopup.PopupHints.HintTypes.HINT_LAUNCH_ID,source)
               .add(RichPopup.PopupHints.HintTypes.HINT_ALIGN,
               RichPopup.PopupHints.AlignTypes.ALIGN_AFTER_START);
               popUp.show(hints);

          }
        
        public void hidePopup(ActionEvent event) {
                 popUp.hide();
            }
   

     public void cancelPopupActionListener(ActionEvent event)  {
           popUp.cancel();  

          }

    public void setPopUp(RichPopup popUp) {
        this.popUp = popUp;
    }

    public RichPopup getPopUp() {
        return popUp;
    }
}



ADF POP UP ( JSPX Code )



   <af:popup contentDelivery="lazyUncached" id="Userpopup" binding="#{pageFlowScope.callP6WebserviceMBean.popUpProject}">`
              
  <af:panelWindow id="pw2" modal="true" title="Please select Project" resize="on"
                                  closeIconVisible="false">
                 
              
  <af:commandButton text="Submit" 

                                   id="cb1" 
                                   partialSubmit="true"                                    
                                   actionListener="#{pageFlowScope.callP6WebserviceMBean.hidePopupActionListener}"/>
                 

  <af:commandButton text="Cancel" 
                                   id="cb2" 
                                  partialSubmit="true"
                                  actionListener="#{pageFlowScope.callP6WebserviceMBean.cancelPopupActionListener}" 

                                   immediate="true"/></af:panelWindow>
</af:popup>

1 comment:

  1. Hi, Where can I get the source codes of the ADF components?

    thanks.

    ReplyDelete