ADF Interview Questions

Below are few question and answers of ADF which may help you to learn and face interviews.

Q: How to refresh a binding iterator through program?
A:   Visit this link for the answer.

Q: How to embed ADF application in an html iFrame?
A: If you want to display or fit an ADF application in an iFrame, you have to add below  statement to      web.xml file.

     <context-param>
          <param-name>oracle.adf.view.rich.security.FRAME_BUSTING</param-name>
          <param-value>never</param-value>
     </context-param>

Q: How to enable content compression?
A: Make the value of org.apache.myfaces.trinidad.DISABLE_CONTENT_COMPRESSION to true        in web.xml. If it is not there, then add the below code in web.xml

     <context-param>
          <param-name>org.apache.myfaces.trinidad.DISABLE_CONTENT_COMPRESSION</param-name>
          <param-value>true</param-value>
     </context-param>

Q: How to refresh jsf page programatically?
A: The below code can be useful to refresh JSF page from java code method.

String currentView = context.getViewRoot().getViewId();
ViewHandler vh = context.getApplication().getViewHandler();
UIViewRoot x = vh.createView(context,currentView);
context.setViewRoot(x);

Q: How to get request and response objects of JSF page?
A: By using the below statements we can get the Request and Response objects of the JSF page.

 (HttpServletRequest)javax.faces.context.FacesContext.getCurrentInstance().getExternalContext().getRequest();

 (HttpServletResponse)javax.faces.context.FacesContext.getCurrentInstance().getExternalContext().getResponse();

1 comment:

  1. Open to our most exclusive members, entrance into VIP Slots is by invitation only. This secluded hideaway has ninety six of your favourite slot machines and plush chairs, personal gaming area with living room fashion seating and devoted attendant. New slot machine titles embrace Aristocrat’s Buffalo Max and X Files; Scientific Games’ James Bond; and IGT’s Scarab; Konami Money’s Galaxy. Play at a faster tempo and avoid stress from different gamers with this one-person game that provides betters odds of profitable, relying on your skill degree. We perceive the task of choosing a good slot machine 안전바카라 could be tricky with so many choices obtainable.

    ReplyDelete