<div class="table_right">
<h:inputText styleClass="input" id="firstName" size="10" maxlength="255" value="#{contactController.firstName}" required="true">
- <f:validator for="firstName" validatorId="NameValidator" />
+ <f:validator validatorId="NameValidator" />
</h:inputText>
</div>
<div class="table_right">
<h:inputText styleClass="input" id="street" size="20" maxlength="255" value="#{contactController.street}" required="true">
- <f:validator for="street" validatorId="NameValidator" />
+ <f:validator validatorId="NameValidator" />
</h:inputText>
</div>
<div class="table_right">
<h:inputText styleClass="input" id="zipCode" size="5" maxlength="6" value="#{contactController.zipCode}" required="true" validatorMessage="#{msg.ENTERED_ZIP_CODE_INVALID}">
- <f:validateLongRange for="zipCode" minimum="1" maximum="99999" />
+ <f:validateLongRange minimum="1" maximum="99999" />
</h:inputText>
</div>
<div class="table_right">
<h:inputText styleClass="input" id="city" size="10" maxlength="255" value="#{contactController.city}" required="true">
- <f:validator for="city" validatorId="NameValidator" />
+ <f:validator validatorId="NameValidator" />
</h:inputText>
</div>
</div>
<div class="table_right">
- <h:inputText styleClass="input" id="birthday" value="#{contactController.birthday}" required="true" size="10" validator="BirthdayValidator">
- <f:convertDateTime for="birthday" pattern="#{msg.BIRTHDAY_PATTERN}" />
+ <h:inputText styleClass="input" id="birthday" value="#{contactController.birthday}" required="true" size="10" converterMessage="#{msg.INVALID_BIRTHDAY}">
+ <f:convertDateTime pattern="#{msg.BIRTHDAY_PATTERN}" />
</h:inputText>
</div>
<div class="clear"></div>
</div>
- <h:message for="birthday" errorClass="errors" fatalClass="errors" warnClass="errors" showDetail="false" />
+ <h:message for="birthday" errorClass="errors" fatalClass="errors" warnClass="errors" />
<div class="table_row">
<div class="table_left">
</h:selectOneMenu>
<h:inputText styleClass="input" id="phoneAreaCode" size="5" maxlength="10" value="#{contactController.phoneAreaCode}">
- <f:validator for="phoneAreaCode" validatorId="PhoneNumberValidator" />
+ <f:validator validatorId="PhoneNumberValidator" />
</h:inputText>
<h:inputText styleClass="input" id="phoneNumber" size="10" maxlength="20" value="#{contactController.phoneNumber}">
- <f:validator for="phoneNumber" validatorId="PhoneNumberValidator" />
+ <f:validator validatorId="PhoneNumberValidator" />
</h:inputText>
</div>