Questions of Test: JSF Interview questions 1

More >>

1

Which of the following statements are true about phase listeners?

2

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

3

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

4

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?
<html>
<f:view> <body>
<h:form>
<h:outputText value="#{test.greetings}" escape="true"/>
</h:form> </body>
</f:view> </html>

5

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

6

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

7

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:
<f:view>
      <h:form id="form1">
      <h:messages></h:messages>
      
      value1 : <h:inputText value="#{personBean.value1}">
        <f:validateLength minimum="5" maximum="6"/>
      </h:inputText>
      <br />
      value 2:<h:inputText value="#{personBean.value2}">
        <f:validateLength minimum="5" maximum="6"/>
      </h:inputText>
      <h:commandButton action="#{personBean.doTheAction}" value="Action" />
     </h:form>
</f:view>
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

8

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

9

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

10

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

More >>