Examples of ModelFromRequest


Examples of hirondelle.web4j.model.ModelFromRequest

  }

  /** Attempt to build a {@link Prediction} out of user input. */
  protected void validateUserInput() {
    try {
      ModelFromRequest builder = new ModelFromRequest(getRequestParser());
      fPrediction = builder.build(Prediction.class, ID, PREDICTION_LIST_ID, TEXT, REMARK, OUTCOME);
    }
    catch (ModelCtorException ex){
      addError(ex);
    }   
  }
View Full Code Here

Examples of hirondelle.web4j.model.ModelFromRequest

  }
 
  /** Try to build a {@link PredictionList} from user input. */
  @Override protected void validateUserInput() {
    try {
      ModelFromRequest builder = new ModelFromRequest(getRequestParser());
      fPredictionList = builder.build(PredictionList.class, ID, TITLE, fUserId);
      fLogger.fine(fPredictionList.toString());
    }
    catch (ModelCtorException ex){
      addError(ex);
    }   
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.