ExamQuestions.com

Register
Login
Java EE 7 Application Developer Exam Questions

Oracle

Java EE 7 Application Developer

37 / 72

Question 37:

You have been assigned to the Widget Editor portion of an application. It contains a Widget Editor Facelet page, the Widget class, and a simple WidgetEditor backing bean, which contains a reference to the current Widget instance. Given the code fragment from the Widget class: 
image
Given the code fragment from the Facelet page: 
image
The page displays Conversion Error when a user fills out all the form fields and clicks the Save button. Which step do you perform to fix this problem? 

Answer options:

A. Replace Line 1 with: <h: inputText id="createDate" value="#{widgetEditor.widget.createdDate}" converter="java.util.Date"/>
B. Enclose the code fragment within the <f:view/> tag
C. Insert <f:convertDateTime"/> at Line 1
D. Replace Line 1 with: <h:inputText id="createDate" value="#{widgetEditor.widget.createdDate}"> <f:convertDateTime pattern="dd-mm-yyyy"/> </h:inputText>