Portlet Factory, Version 6.1.2
Processing form submissions
LJO Methods and Method builder calls access inputs submitted by FORM POST or URL query parameters, by the RequestInputs interface, or direct arguments to the method.
Methods called via URL should take no (zero) arguments or just a WebAppAccess argument, and should retrieve inputs from the HTTP Request via the RequestInputs interface.
To retrieve a reference to the current instance of RequestInputs for a WebApp request, you would call:
RequestInputs requestInputs = webAppAccess.getRequestInputs();For example, to get all inputs from a Checkbox Group input, you may do something like the following:
Iterator inputs = webAppAccess.getRequestInputs().getInputValues("MyCheckboxGroup"); while(inputs.hasNext()) { //process input values here }Parent topic: Overview: working with Java
Library | Support |