private VerticalLayout createChangePasswordButton() {

		final VerticalLayout formLayout = new VerticalLayout();
		formLayout.setSizeFull();

		final Panel formPanel = new Panel();
		formPanel.setSizeFull();

		formLayout.addComponent(formPanel);

		final FormLayout formContent = new FormLayout();
		formPanel.setContent(formContent);

		final ChangePasswordRequest request = new ChangePasswordRequest();
		request.setSessionId(RequestContextHolder.currentRequestAttributes().getSessionId());
		request.setCurrentPassword("");
		request.setNewPassword("");
		request.setRepeatNewPassword("");
		
		final ClickListener listener = new ChangePasswordClickListener(request);
		getFormFactory().addRequestInputFormFields(formContent, request,
				ChangePasswordRequest.class, Arrays.asList("currentPassword","newPassword","repeatNewPassword"), "Change password", listener);

		return formLayout;
	}
private VerticalLayout createChangePasswordButton() {

		final VerticalLayout formLayout = new VerticalLayout();
		formLayout.setSizeFull();

		final Panel formPanel = new Panel();
		formPanel.setSizeFull();

		formLayout.addComponent(formPanel);

		final FormLayout formContent = new FormLayout();
		formPanel.setContent(formContent);

		final ChangePasswordRequest request = new ChangePasswordRequest();
		request.setSessionId(RequestContextHolder.currentRequestAttributes().getSessionId());
		request.setCurrentPassword("");
		request.setNewPassword("");
		request.setRepeatNewPassword("");
		
		final ClickListener listener = new ChangePasswordClickListener(request);
		getFormFactory().addRequestInputFormFields(formContent, request,
				ChangePasswordRequest.class, Arrays.asList("currentPassword","newPassword","repeatNewPassword"), "Change password", listener);

		return formLayout;
	}
private VerticalLayout createChangePasswordButton ( ) { final VerticalLayout formLayout = new VerticalLayout ( ) ; formLayout . setSizeFull ( ) ; final Panel formPanel = new Panel ( ) ; formPanel . setSizeFull ( ) ; formLayout . addComponent ( formPanel ) ; final FormLayout formContent = new FormLayout ( ) ; formPanel . setContent ( formContent ) ; final ChangePasswordRequest request = new ChangePasswordRequest ( ) ; request . setSessionId ( RequestContextHolder . currentRequestAttributes ( ) . getSessionId ( ) ) ; request . setCurrentPassword ( "" ) ; request . setNewPassword ( "" ) ; request . setRepeatNewPassword ( "" ) ; final ClickListener listener = new ChangePasswordClickListener ( request ) ; getFormFactory ( ) . addRequestInputFormFields ( formContent , request , ChangePasswordRequest . class , Arrays . asList ( "currentPassword" , "newPassword" , "repeatNewPassword" ) , "Change password" , listener ) ; return formLayout ; }
Creates the change password button.

@return the vertical layout
Creates the change password button .