Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

RichFaces Interview Questions and Answers

Ques 1. What is RichFaces?

RichFaces is a JSF component library that consists of two main parts: AJAX enabled JSF components and the CDK (Component Development Kit). RichFaces UI components are   divided into two tag libraries a4j: and rich:. Both tag libraries offer out-of-the-box AJAX enabled JSF components. The CDK is a facility for creating, generating and testing you own rich JSF components.

  • A full set of AJAX enabled components in two libraries
    • a4j: page centric AJAX controls
    • rich: self contained, ready to use components
  • Client-side validation, expanding JSR 303 Bean Validation all the way to the browser.
  • Advanced queueing to match the high performance requirements of real world enterprise applications.
  • Push component upgrades including JavaMessaging Service (JMS) integrations, and various transport mechanisms based on browser support.
  • Our own Component Development Kit (CDK).
  • Comprehensive documentation covering development best practices, and component details.
  • Detailed and automated testing facilities for components, actions, listeners, and pages.
  • Broad cross-browser support
  • Large and active community at its foundation!!

Is it helpful? Add Comment View Comments
 

Ques 2. What is <a4j:support> tag?

Sends an AJAX request based on a DHTML event supported by the parent component.  In this example, the AJAX request will  be triggered after the user types a character in the text box:

<h:inputText value="#{document.docOrigtor}" id="docClaimOrigId" binding="#{handler.docOrig}">
  <a4j:support actionListener="#{handler.createDocumentName}" event="onkeyup" reRender="docId"/>
</h:inputText>
Here, on keyup event it will call handler.createDocumentName method with ajax call and rendering docId value.

Is it helpful? Add Comment View Comments
 

Ques 3. What are the basic configurations of web.xml for Rich Faces?

Configuration of web.xml while you are using RichFaces in your application:

    <context-param>
      <param-name>org.richfaces.CONTROL_SKINNING</param-name>
      <param-value>enable</param-value>
    </context-param>
    <context-param>
        <param-name>org.richfaces.LoadStyleStrategy</param-name>
        <param-value>ALL</param-value>
    </context-param>
    <context-param>
        <param-name>org.richfaces.LoadScriptStrategy</param-name>
        <param-value>ALL</param-value>
    </context-param>
    <filter>
        <display-name>RichFaces Filter</display-name>
        <filter-name>richfaces</filter-name>
        <filter-class>org.ajax4jsf.Filter</filter-class>
        <init-param>
            <param-name>maxRequestSize</param-name>
            <param-value>999999999</param-value>
        </init-param>
    </filter>
    <filter-mapping>
        <filter-name>richfaces</filter-name>
        <servlet-name>Faces Servlet</servlet-name>
        <dispatcher>REQUEST</dispatcher>
        <dispatcher>FORWARD</dispatcher>
        <dispatcher>INCLUDE</dispatcher>
    </filter-mapping>

Is it helpful? Add Comment View Comments
 

Ques 4. How to control traffic in RichFaces?

Controlling traffic can be done using Queues mechanism.
Queues can be defined using <a4j:queue…../>
3 types of queues are there: Named, Unnamed, and Global queue.

Is it helpful? Add Comment View Comments
 

Ques 5. How to keep a managed bean between requests?

 The bean class should be implemented by Serializable.

Is it helpful? Add Comment View Comments
 

Most helpful rated by users:

©2024 WithoutBook