Questions of Test: JSF Interview questions 1

More >>


Which of the following statements are true about phase listeners?


Which of the following is the correct way to register and use a converter


Which of the following statements are true about action Listeners and value change listeners


Gven a bean property and getter method in a request scoped bean 'test':
String greetings;
public String getGreetings(){
  greetings = "<B>Welcome to jsf</B> <br/> This is my first program ";
  return greetings;
what will be the result of following?
<f:view> <body>
<h:outputText value="#{test.greetings}" escape="true"/>
</h:form> </body>
</f:view> </html>


Which of the following tags takes value attribute a java.util.List?


Which of the following methods a class implementing import javax.faces.convert.Converter and  javax.faces.validator.Validator   need to implement?


Given a request scoped bean calculator:
public class Calculator {
   private int value1;
   private int value2;
   public String doTheAction(){     ;   }
   public int getValue1() {   return value1;}
   public int getValue2() { return value2; }
and test.jsp page:
      <h:form id="form1">
      value1 : <h:inputText value="#{personBean.value1}">
        <f:validateLength minimum="5" maximum="6"/>
      <br />
      value 2:<h:inputText value="#{personBean.value2}">
        <f:validateLength minimum="5" maximum="6"/>
      <h:commandButton action="#{personBean.doTheAction}" value="Action" />
if 'Action' button clicked with following values in value 1 and value2, which of the following statement is true?
value1 : jsf
value2 : java server faces


Which of the following statements are true about conversions and validations of jsf (f:convertXXX and f:validateXXX tags)


Which of the following validation and conversion tags are defined in standard jsf core library?


Given a web application deployed with context root name testApp, which of the following navigation rule are valid?

More >>