public class HiddenFieldProcessor extends Object implements WidgetProcessor<StaticXmlWidget,StaticSpringMetawidget>
HiddenTag.setDisabled( false )
on all
HiddenTag
s, so that they POST back.
Note: passing values via hidden tags is a potential security risk: they can be modified by malicious clients before being returned to the server.
Constructor and Description |
---|
HiddenFieldProcessor() |
Modifier and Type | Method and Description |
---|---|
StaticXmlWidget |
processWidget(StaticXmlWidget widget,
String elementName,
Map<String,String> attributes,
StaticSpringMetawidget metawidget)
Process the given widget.
|
public StaticXmlWidget processWidget(StaticXmlWidget widget, String elementName, Map<String,String> attributes, StaticSpringMetawidget metawidget)
WidgetProcessor
WidgetBuilder
, and before it is added to the Layout
.processWidget
in interface WidgetProcessor<StaticXmlWidget,StaticSpringMetawidget>
widget
- the widget to process. Never nullelementName
- XML node name of the business field. Typically 'entity', 'property' or 'action'.
Never nullattributes
- attributes of the widget to process. Never null. This Map is modifiable - changes
will be passed to subsequent WidgetProcessors and Layoutsmetawidget
- the parent Metawidget. Never nullCopyright © 2015. All Rights Reserved.