Teedaã§ã¯ç»é¢ããã®å¤ã®æ¤è¨¼ã¯JSFã®Validatorã使ãã¾ãã ä¸è¬çãªå ¥åãã§ãã¯é¡ã¯ã»ã¨ãã©ããã§ã¾ããªãã¾ãã ï¼æ¨æºã§æºåãã¦ãããã®ã§è¶³ããªãå ´åã¯ãåå¥ã«ä½æãã¦ãããã»ããè¯ãã§ãããããªã«é£ããããã¾ãããï¼ ããããã以å¤ã®ãã¸ãã¯ã§ã¨ã©ã¼ã«ãªã£ãã¨ãã«ã¯ãã©ãããã®ã§ããããã ç°¡åã§ããValidatorã¨åæ§ã«FacesContextã«ã¡ãã»ã¼ã¸ãè©°ãã¦ãã¾ãã°ããã®ã§ãã if(someLogicFail) { facesContext.addMessage("clientId", new FacesMessage("summary_key", "detail_key")); } clientIdã®ã¨ããã¯ãmessageã§åºåããå ´åã«ã¯æå®ããªãã¦ã¯ããã¾ããã formã®idãformã§å ¥åé ç®ã®idãaaaã¨ããã¨ãform:aaaã®ããã«ãªãã¾
{{#tags}}- {{label}}
{{/tags}}