code: public static <T> RequiredTextField<T> newRequiredTextField(final String id,
  		final IModel<T> model)
  	{
  		final RequiredTextField<T> requiredTextField = new RequiredTextField<>(id, model);
  		requiredTextField.setOutputMarkupId(true);
  		return requiredTextField;
  	}
docs: Factory method for create a new {@link RequiredTextField}.
  
  @param <T>
  the generic type of the model
  @param id
  the id
  @param model
  the model
  @return the new {@link RequiredTextField}.