public UIRegisterForm(InitParams params) throws Exception {
String skipCaptchaParam = params.getParam(SKIP_CAPTCHA_PARAM_NAME).getValue();
boolean skipCaptcha = Boolean.parseBoolean(skipCaptchaParam);
UIFormInputWithActions registerInput = new UIRegisterInputSet("RegisterInputSet", skipCaptcha);
// Set actions on registerInput 's User Name field
List<ActionData> fieldActions = new ArrayList<ActionData>();
ActionData checkAvailable = new ActionData();
checkAvailable.setActionListener(CheckUsernameAvailability.LISTENER_NAME);
checkAvailable.setActionName(CheckUsernameAvailability.LISTENER_NAME);
checkAvailable.setActionType(ActionData.TYPE_ICON);
checkAvailable.setCssIconClass("SearchIcon");
fieldActions.add(checkAvailable);
registerInput.setActionField(UIRegisterInputSet.USER_NAME, fieldActions);
addUIFormInput(registerInput);
setActions(ACTIONS);
}