Solved

Consider the Following Code Fragment

Question 61

Multiple Choice

Consider the following code fragment:
Public String checkCity()
{
Zone = getTimeZone(city) ;
If (zone == null) { return "error"; }
Return "next";
}
Which JSF statement will call this method?


A) <h:inputText value="#{timeZoneBean.city}"/>
B) <h:commandButton value="Submit" action="#{timeZoneBean.checkCity}"/>
C) <h:inputText value="#{timeZoneBean.City}"/>
D) <h:commandButton value="Submit" action="#{timeZoneBean.city}"/>

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions