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

      FormUtil.setAjaxOptionsElementProperties(this, formData);
    }
  }
예제 #3
0
 @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;
 }