Due to the print book page limit, we cannot inlcude all good CheckPoint questions in the physical book. The CheckPoint on this Website may contain extra questions not printed in the book. The questions in some sections may have been reordered as a result. Nevertheless, it is easy to find the CheckPoint questions in the book on this Website. Please send suggestions and errata to Dr. Liang at y.daniel.liang@gmail.com. Indicate the book, edition, and question number in your email. Thanks!

Chapter 39 Check Point Questions

Section 39.2
39.2.1
What is JSF?
39.2.2
How do you create a JSF project in NetBeans?
39.2.3
How do you create a JSF page in a JSF project?
39.2.4
What is a facelet?
39.2.5
What is the file extension name for a facelet?
39.2.6
What is a managed bean?
39.2.7
What is the @Named annotation for?
39.2.8
What is the @RequestScope annotation for?
Section 39.3
39.3.1
What is the name space for JSF tags with prefix h and prefix f?
39.3.2
Describe the use of the following tags?
h:form, h:panelGroup, h:panelGrid, h:inputText, h:outputText, h:inputTextArea, h:inputSecret, h:outputLabel, h:outputLink, h:selectOneMenu, h:selectOneRadio, h:selectBooleanCheckbox, h:selectOneListbox, h:selectManyListbox, h:selectItem, h:message, h:dataTable, h:columm, h:graphicImage
Section 39.4
39.4.1
In the h:outputText tag, what is the escape attribute for?
39.4.2
Does every GUI component tag in JSF have the style attribute?
Section 39.6
39.6.1
What is a scope? What are the available scopes in JSF? Explain request scope, view scope, session scope, and application scope. How do you set a request scope, view scope, session scope, and application scope in a managed bean?
39.6.2
What happens if the bean scope in Listing 33.9 GuessNumberJSFBean.java is changed to request?
39.6.3
What happens if the bean scope in Listing 33.9 GuessNumberJSFBean.java is changed to session?
39.6.4
What happens if the bean scope in Listing 33.9 GuessNumberJSFBean.java is changed to application?
Section 39.7
39.7.1
Write a tag that validates an input text with minimal length of 2 and maximum 12.
39.7.2
Write a tag that validates an input text for SSN using a regular expression.
39.7.3
Write a tag that validates an input text for a double value with minimal 4.5 and maximum 19.9.
39.7.4
Write a tag that validates an input text for an integer value with minimal 4 and maximum 20.
39.7.5
Write a tag that makes an input text required.