public class SimpleWidgetController extends WidgetController<String>
OBJECT_LIST, OBJECT_SINGLE, OBJECT_WIDGET, WIDGET_TYPE
Constructor and Description |
---|
SimpleWidgetController() |
Modifier and Type | Method and Description |
---|---|
protected String |
createMultiResultView(javax.servlet.http.HttpServletRequest request,
Widget widget,
List<?> result)
Creates and prepares the view to render the response of the widget request.
|
protected String |
createSingleResultView(javax.servlet.http.HttpServletRequest request,
Widget widget,
Object result)
Creates and prepares the view to render the response of the widget request.
|
getWidgetInstance, handleWidgetRequest, setAppendWidgetToTypeName, setUseRequestParametersForWidget, setWidgetFactory
protected String createMultiResultView(javax.servlet.http.HttpServletRequest request, Widget widget, List<?> result)
createMultiResultView
in class WidgetController<String>
request
- the requestwidget
- the widget that was invokedresult
- the result returned from the query method of the widgetprotected String createSingleResultView(javax.servlet.http.HttpServletRequest request, Widget widget, Object result)
createSingleResultView
in class WidgetController<String>
request
- the requestwidget
- the widget that was invokedresult
- the result returned from the query method of the widgetCopyright © 2019 Communote team. All rights reserved.