<html>
   <f:view>
        <body>
        ...
         <p><div id="errors" class="errors"></div></p>
         <h:form id="form">
            <h:panelGrid columns="2">
                 ...
                 <h:inputText id="zip"
                            size="5"
                           value="#{bb.zip}"
                         onfocus="clearCityAndStateFields();"
                          onblur="zipBlurred(this.value);"
                         onkeyup="zipChanged(this.value);">
                      <f:validator
                         validatorId="com.corejsf.ZipCodeValidator"/>
                  </h:inputText>
                  ...
              </h:panelGrid>
            </h:form>
        </body>
    </f:view>
</html>