PrimeFaces Interview Questions & Answers

  1. Question 1. What Is Primefaces?

    Answer :

    It is an UI (User Interface) library for JSF (JavaServer Faces) based applications. It is designed and developed by PrimeTek. It is Cross-platform, open source and written in Java programing language.

  2. Question 2. What Are The Features Of Primefaces?

    Answer :

    PrimeFaces is full of features, some are listed below.

    • Rich UI Components
    • Ajax Support
    • Push Support
    • Dialog Suppport
    • Client Side Validation
    • Mobile UI kit
    • Skinning Framework
    • Rich UI Components

    It provides over 100 UI (User Interface) components. We can use that to create interective interface for JSF application. It includes HtmlEditor, Dialog, AutoComplete, Signature etc.

    Ajax Support:

    Primefaces provides built-in Ajax support. We can use it to perform Ajax call for the JSF application. It provides Ajax components like: counter, listener, event, poll etc.

    PrimeFaces Ajax Javascript API is powered by jQuery and optimized for JSF. Whole API consists of properly namespaced simple javascript functions PrimeFaces.ajax.Request, PrimeFaces.ajax.Response.

    Push Support:

    It provides Atmosphere framework that provides us push support. The Atmosphere Framework is the most popular asynchronous application development framework for enterprise Java. PrimeFaces Push 2.0 is based on Atmosphere as its predecessor and follows an annotation based approach this time.

    Dialog Support:

    PrimeFaces provides Dialog Framework which is used to open an external xhtml page in a dialog that is generated dynamically on runtime. The RequestContext provides methods to open and close dialog.

    Client Side Validation:

    PrimeFaces provides the most advanced Client Side Validation for JavaServer Faces and Java EE. It is used to validate data at client side. It is compatible with Server Side Implementation and provides Advanced Bean Validation Integration.

    Mobile UI Kit:

    It provides a mobile UI kit to create JSF application for mobile phones. It is default in the library. So, does not require any additional downloading. It is built on top of jQuery Mobile.

    It includes various features popular PrimeFaces components, ajax framework extensions, mobile ajax behavior events, integrated navigation model, lazy loading of pages, responsive widgets etc.

    Skining Framework:

    It provides lots of built-in themes and designer tools for visual themes. PrimeFaces is integrated with powerful ThemeRoller CSS Framework. Currently there are many pre-designed themes that we can preview and download from PrimeFaces theme gallery.

  3. Adv Java Interview Questions

  4. Question 3. How To Configure Primefaces In Jsf Application?

    Answer :

    To configure primefaces in our JSF application, we need to download only one JAR file primefaces-{version}.jar. We can manually download it from the official site of primfaces.

  5. Question 4. Primefaces Ajax Support?

    Answer :

    Primefaces provides built-in Ajax support. It provides various attributes like update, event, listener etc. Here, we are creating an example that explains ajax attributes.

  6. Adv Java Tutorial

  7. Question 5. How To Implement Primefaces Autocomplete Component In Jsf?

    Answer :

    • It is an input component that provides live suggestions while an input is being typed.
    • Suggestions are loaded by calling a server side completeMethod that takes a single string parameter.
  8. AJAX Interview Questions

  9. Question 6. How To Implement Primefaces Inputtextarea Component In Jsf?

    Answer :

    PrimeFaces provides component to create a text area in JSF application. It is an extension of standard inputTextarea. It includes various features like: autoComplete, autoResize etc.

  10. Question 7. How To Implement Primefaces Selectbooleanbutton Component In Jsf?

    Answer :

    The is used to create BooleanButton in JSF application. We can use it to get boolean input from the user. It provides a toggle button to interact with user.

  11. AJAX Tutorial
    MySQL Interview Questions

  12. Question 8. How To Implement Primefaces Selectbooleancheckbox Component In Jsf?

    Answer :

    PrimeFaces provides component to create boolean checkbox. It is used to get a boolean value from the user. It is an extended version of the standard checkbox with theme integration.

  13. Question 9. How To Implement Primefaces Calendar Component In Jsf?

    Answer :

    It is an input component which is used to select date. The component is used to create a calendar in JSF application. It includes various features like: display modes, paging, localization, ajax selection etc.

  14. Java Struts Interview Questions

  15. Question 10. How To Implement Primefaces Selectcheckboxmenu Component In Jsf?

    Answer :

    It is used to choose multiple items displayed in an overlay. We can create it by using component. It displays options in an overlay.

  16. MySQL Tutorial

  17. Question 11. How To Implement Primefaces Editor Component In Jsf?

    Answer :

    PrimeFaces provides component which is used to create an editor in JSF application. We can use this editor to get user input in large amount. This editor provides editing and formating tools that we can use to format our input.

  18. EJB(Enterprise JavaBeans) Interview Questions

  19. Question 12. How To Implement Primefaces Inputtext Component In Jsf?

    Answer :

    It is an extension to the standard inputText with skinning capabilities. We can create it by using the component. It is used to get user input in JSF application.

  20. Adv Java Interview Questions

  21. Question 13. How To Implement Primefaces Inputmask Component In Jsf?

    Answer :

    It is a special type of input box which forces user to enter formatted input. We can create it by using component. It takes input in a certain pattern. It is useful when we want formated user input.

  22. EJB(Enterprise JavaBeans) Tutorial

  23. Question 14. How To Implement Primefaces Selectonelistbox Component In Jsf?

    Answer :

    It is an extended version of the standard selectOneListbox component. It is used to select one value from the list. PrimeFaces provides component to create listbox. It is useful when we want to get user choice from the multiple options.

  24. Question 15. How To Implement Primefaces Selectmanybutton Component In Jsf?

    Answer :

    It is a multi select component using button user interface. The component is used to create multiple buttons. It is used to get user input by using buttons.

  25. JavaServer Faces (JSF) Interview Questions

  26. Question 16. How To Implement Primefaces Selectmanycheckbox Component In Jsf?

    Answer :

    It is used to select multiple values from given options. It is useful when we want to take multiple user inputs from a collection. We can use component to create SelectManyCheckbox in JSF application.

  27. JavaServer Faces (JSF) Tutorial

  28. Question 17. How To Implement Primefaces Selectonebutton Component In Jsf?

    Answer :

    It is used to select a single item from a list using buttons. It creates items list as a list of buttons. So, we can select item by clicking on the button. The component is used to create list of buttons in the JSF application.

  29. Database Administration Interview Questions

  30. Question 18. How To Implement Primefaces Selectoneradio Component In Jsf?

    Answer :

    It is used to choose a single item from a list of options. It is an extended version with theme integration. The component is used to create list of radio buttons. It is useful when we want a single input from the user.

  31. AJAX Interview Questions

  32. Question 19. How To Implement Primefaces Signature Component In Jsf?

    Answer :

    It is used to draw a signature as an input. It provides a canvas where we can draw signature. It provides various options such as background color, foreground color, thickness for customization. It can be used in touch enabled devices. In JSF application, we can create it by using the component.

  33. Java Tutorial

  34. Question 20. How To Implement Primefaces Spinner Component In Jsf?

    Answer :

    It is an input text which provides increment and decrement buttons. It is used to get user input in a input text. We can create it by using component in our JSF application.

  35. Java Interview Questions

  36. Question 21. How To Implement Primefaces Slider Component In Jsf?

    Answer :

    It is a text input with slider. It is used to get user input with the help of slider. It allows us to increment and decrement input by using slider. The component is used to create slider input text.

  37. Question 22. How To Implement Primefaces Input Switch Component In Jsf?

    Answer :

    It is used to take a boolean value as input from the user. It is a button which toggles ON or OFF. We can create it by using component.

  38. CSS Advanced Tutorial

  39. Question 23. How To Implement Primefaces Password Component In Jsf?

    Answer :

    It is an input field which takes hidden value from the user. The component is used to create a password field in JSF application. It also provides feedback while entering the password.

  40. CSS Advanced Interview Questions

  41. Question 24. How To Implement Primefaces Keyboard Component In Jsf?

    Answer :

    It is a input text box which displays virtual keyboard to enter data. It used to get user input by using pointer device. So, a user can enter input without having keyboard. The component is used to create virtual keyboard.

  42. MySQL Interview Questions

  43. Question 25. How To Implement Primefaces Rating Component In Jsf?

    Answer :

    It is a star based rating system. It is used to take user input as a rating. It is useful when we want to get user feedback. It is mostly used to get product rating.

  44. Javascript Advanced Tutorial

  45. Question 26. How To Implement Primefaces Color Picker Component In Jsf?

    Answer :

    It is an input component with a color palette. It allows us to select and reselect color in web application. We can use it in our JSF application to get color as user input.

  46. Javascript Advanced Interview Questions

  47. Question 27. How To Implement Primefaces Inplace Component In Jsf?

    Answer :

    It is an input text box which provides easy editing of value at browser. It consists of two members, display element is the initial clickable label and inline element is the hidden content that is displayed when display element is toggled.

  48. Java Struts Interview Questions

  49. Question 28. How To Implement Primefaces Knob Component In Jsf?

    Answer :

    It is an input component which is used to get numeric value. It is used to get user input in a specified range. PrimeFaces provides component which is used to create a graphical circle.

  50. Apache Struts 2 Tutorial

  51. Question 29. How To Implement Primefaces Chips Component In Jsf?

    Answer :

    It is an input text box which is used to enter multiple values. The component is used to create input text in the JSF application. It is useful when we want to take multiple values from the user by using single component.

  52. Java collections framework Interview Questions

  53. Question 30. How To Implement Primefaces Button Component In Jsf?

    Answer :

    It is an extension to the standard h:button JSF component with advanced skinning features. It is used to send GET request on the web. The component is used to create button in JSF application.

  54. Question 31. How To Implement Primefaces Commandbutton Component In Jsf?

    Answer :

    It is an extended version of standard h:commandButton of JSF. It includes ajax, partial processing and skinning features.The component is used to create button in JSF application.

  55. Question 32. How To Implement Primefaces Commandlink Component In Jsf?

    Answer :

    It is an extended version of JSF h:commandLink with Ajax, partial processing and confirmation feature. It is used to create a link which redirects control to specified target. The component is used to create a link in JSF application.

  56. RichFaces Interview Questions

  57. Question 33. How To Implement Primefaces Split Button Component In Jsf?

    Answer :

    It is a button which displays a default command and additional ones in an overlay. It is used to provide multiple commands. The component is used to create splitButton in JSF application.

  58. EJB(Enterprise JavaBeans) Interview Questions

  59. Question 34. How To Implement Primefaces Accordionpanel Component In Jsf?

    Answer :

    It is a container component which displays vertically stacked panels. It is used to display data in accordion format. We can switch anytime from one item to another just by clicking on that item. It is useful when user want to see single item at a time from the collection.

  60. Question 35. How To Implement Primefaces Fieldset Component In Jsf?

    Answer :

    It is a grouping component and an extension of html fieldset. It is a kind of container that has a legend and content. It is used to display categorized data. PrimeFaces provides component which is used to create fieldset in JSF application.

  61. Question 36. How To Implement Primefaces Layout Component In Jsf?

    Answer :

    It is a highly customizable borderLayout model. It is easy to create complex layouts even if we are not familiar with web design. It consists of 5 different layout units which are top, left, center, right and bottom. We can refer that as east, west, north, south and center.

  62. JavaServer Faces (JSF) Interview Questions

  63. Question 37. How To Implement Primefaces Notification Bar Component In Jsf?

    Answer :

    It is a multipurpose fixed positioned panel. It is used to display notification bar. By default, it displays at the top. We can set it’s position by specifying position attribute. We can also set the effect of notification bar like: fade or slide.

  64. Question 38. How To Implement Primefaces Toolbar Component In Jsf?

    Answer :

    It is a horizontal grouping component which is used to form a toolbar with commands and other content. PrimeFaces provides component to create toolbar in JSF application. It is useful to create tool based web application.

  65. Question 39. How To Implement Primefaces Confirm Component In Jsf?

    Answer :

    It is an advanced version of JavaScript confirmation box. It includes various features like: skinning, customization and avoiding pop up blockers. It is used to create a confirmation dialog box to get user response.

  66. Question 40. How To Implement Primefaces Dialog Component In Jsf?

    Answer :

    It is a panel component which can overlay other elements on page. It is used to create a pop-up that can be used to display other elements too. It provides two methods show() and hide() to manage visibility of the component.

  67. Database Administration Interview Questions

  68. Question 41. How To Implement Primefaces Tooltip Component In Jsf?

    Answer :

    It is a small pop-up box that displays information on the event. It is used to display message to the user when the user interact with the component. It includes various features like cutom effects, events and theme support.

  69. Question 42. How To Implement Primefaces Breadcrumb Component In Jsf?

    Answer :

    It is a navigation component which is used to provide contextual information about page hierarchy. It show navigation information and allows to redirect to any page by clicking on the navigation link. The component is used to create navigation in JSF application.

  70. Java Interview Questions

  71. Question 43. How To Implement Primefaces Menubar Component In Jsf?

    Answer :

    It is a horizontal navigation component which provides menus options. It is used to collect menus and display that in an organize row. We can create menubar by using component in JSF application.

  72. Question 44. How To Implement Primefaces Stack Component In Jsf?

    Answer :

    This components is an indicator for the steps in a workflow. It indicates that at what step we are right now. It is used to show current step in multi-steps application. The component is used to create steps indicator in the JSF application.

  73. Question 45. How To Implement Primefaces Steps Component In Jsf?

    Answer :

    This components is an indicator for the steps in a workflow. It indicates that at what step we are right now. It is used to show current step in multi-steps application. The component is used to create steps indicator in the JSF application.

  74. Question 46. How To Implement Primefaces Areachart Component In Jsf?

    Answer :

    It is a customized and advanced version of a LineChart where series are filled. It is used to represent statistical data graphically. The is a generic component to create chart in JSF application. We can set type of chart to specify the type of chart.

  75. Question 47. How To Implement Primefaces Pie Chart Component In Jsf?

    Answer :

    It is a type of graph in which a circle is divided into sectors and each sector represent some statistic. It is a way to represent statistical data graphically. The component is used to create chart.

  76. Question 48. How To Implement Primefaces Growl Component In Jsf ?

    Answer :

    It is a notification widget which is used to display FacesMessages. It is similar to standard h:messages component of JSF. We can place growl to anywhere in our application’s web page. The location of growl in JSF application does not matter.

  77. Question 49. How To Implement Primefaces Fileupload Component In Jsf?

    Answer :

    It is an input component which is used to upload file to the server. It allows us to upload file from the browser to the server. It includes HTML5 features and has nice user interface with progress bar and other useful butttons.