Question 37 of 72 from exam 1Z0-900: Java EE 7 Application Developer

Question 37 of 72 from exam 1Z0-900: Java EE 7 Application Developer

Question

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:

public class Widget implements Serializable {
private String name;
private Date createdDate;
private boolean approved;

Given the code fragment from the Facelet page:

smessages id="messages"'/>

<heform id="widgetForm'>
<h:outputLabel for~"name" value="Name:"/>
<h:inputText id="name" value="#{widgetEditor.widget.name}"/>
<h:outputLabel for~"createdDate" value="Created Date:"/>
<h:inputText id="createdDate"

value="#{widgetEditor.widget.createdDate}"/> <I--Line1-->
<h:outputLabel for~"approved" value="Approved:"/>
<h:selectBooleanCheckbox id="approved"
value="#{widgetEditor.widget.approved)"/>

<h:commandButton value="Save" action="#{widgetEditor.save}"/>

</h:form>

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?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

D.