@Override
 public FormData actionPerformed(Form form, FormData formData) {
   Logger.getLogger(LinkButton.class.getName())
       .log(
           Level.INFO, " -- LinkButton actionPerformed " + FormUtil.getElementParameterName(this));
   return formData;
 }
Exemple #2
0
  protected void dynamicOptions(FormData formData) {
    if (getControlElement(formData) != null) {
      setProperty(
          "controlFieldParamName", FormUtil.getElementParameterName(getControlElement(formData)));

      FormUtil.setAjaxOptionsElementProperties(this, formData);
    }
  }
 @Override
 public FormData formatDataForValidation(FormData formData) {
   String[] paramValues = FormUtil.getRequestParameterValues(this, formData);
   if ((paramValues == null || paramValues.length == 0)
       && FormUtil.isFormSubmitted(this, formData)) {
     String paramName = FormUtil.getElementParameterName(this);
     formData.addRequestParameterValues(paramName, new String[] {""});
   }
   return formData;
 }