Fish & Chips Club 4.10.0.0

hirondelle.fish.exercise.multivalued
Class ToppingsAction

Object
  extended by ActionImpl
      extended by ActionTemplateShowAndApply
          extended by hirondelle.fish.exercise.multivalued.ToppingsAction
All Implemented Interfaces:
Action

public final class ToppingsAction
extends ActionTemplateShowAndApply

Exercise the case of multivalued request parameters.


Field Summary
static RequestParameter Age
           
static RequestParameter Artists
           
static RequestParameter BirthDate
           
static RequestParameter DesiredSalary
           
static RequestParameter PizzaToppings
           
static RequestParameter TempFile
           
 
Fields inherited from class ActionTemplateShowAndApply
SUPPORTED_OPERATION
 
Fields inherited from class ActionImpl
DATA, ERRORS, ITEM_FOR_EDIT, ITEMS_FOR_LISTING, MESSAGES, USER_ID
 
Constructor Summary
ToppingsAction(RequestParser aRequestParser)
           
 
Method Summary
protected  void apply()
          Never exercised, in this special case, because of the hard-coded error.
protected  void show()
          Show a form populated with items from hard-coded Collections.
protected  void validateUserInput()
          Extract POSTed collections, and hard-code an error.
 
Methods inherited from class ActionTemplateShowAndApply
execute
 
Methods inherited from class ActionImpl
addError, addError, addError, addMessage, addMessage, addToRequest, addToSession, copyFromSessionToRequest, createSessionAndCsrfToken, endSession, getErrors, getExistingSession, getFromSession, getIdParam, getIdParams, getLocale, getLoggedInUserName, getMessages, getOperation, getOrderBy, getParam, getParamUnsafe, getRequestParser, getResponsePage, getTimeZone, getUserId, hasErrors, removeFromSession, setResponsePage
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Age

public static final RequestParameter Age

DesiredSalary

public static final RequestParameter DesiredSalary

BirthDate

public static final RequestParameter BirthDate

PizzaToppings

public static final RequestParameter PizzaToppings

Artists

public static final RequestParameter Artists

TempFile

public static final RequestParameter TempFile
Constructor Detail

ToppingsAction

public ToppingsAction(RequestParser aRequestParser)
Method Detail

show

protected void show()
             throws AppException
Show a form populated with items from hard-coded Collections.

Specified by:
show in class ActionTemplateShowAndApply
Throws:
AppException

validateUserInput

protected void validateUserInput()
                          throws AppException
Extract POSTed collections, and hard-code an error.

The purpose of the error is to exercise the population of the form in that circumstance.

Specified by:
validateUserInput in class ActionTemplateShowAndApply
Throws:
AppException

apply

protected void apply()
              throws AppException
Never exercised, in this special case, because of the hard-coded error.

Specified by:
apply in class ActionTemplateShowAndApply
Throws:
AppException

Fish & Chips Club 4.10.0.0

Copyright Hirondelle Systems - Generated 2013Oct19.12.26