<f:view> <h:form> <h:panelGrid> <h:outputText value="合言葉は? " /> <h:inputText id="word" required="true"> <wings:validateWord words="山,川,海"/> </h:inputText> <h:message for="word"/> <h:commandButton value="Submit" action="success"/> </h:panelGrid> </h:form>