svnno****@sourc*****
svnno****@sourc*****
2007年 11月 6日 (火) 15:22:23 JST
Revision: 688 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=pal&view=rev&rev=688 Author: shinsuke Date: 2007-11-06 15:22:23 +0900 (Tue, 06 Nov 2007) Log Message: ----------- validator for radio button. Modified Paths: -------------- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/user/signup/SignupEditAction.java -------------- next part -------------- Modified: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/user/signup/SignupEditAction.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/user/signup/SignupEditAction.java 2007-11-06 06:20:39 UTC (rev 687) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/user/signup/SignupEditAction.java 2007-11-06 06:22:23 UTC (rev 688) @@ -167,6 +167,12 @@ } public Class<?> doConfirm() { + // TODO teeda bug? required validator for radio button does not work + if (getSignupEditPage().getGender() == null) { + FacesMessageUtil.addErrorMessage("need.to.select.gender"); + return null; + } + if (getSignupEditPage().getUserSecretQuestionSelection() != null) { getSignupEditPage().setUserSecretQuestion( getSignupEditPage().getUserSecretQuestionSelection());