Package de.xima.fc.form
Class FormHelper
- java.lang.Object
-
- de.xima.fc.form.FormHelper
-
public class FormHelper extends Object
Class for different helper-methods for the usage with forms- Author:
- XIMA MEDIA GmbH
-
-
Constructor Summary
Constructors Constructor Description FormHelper()
-
Method Summary
-
-
-
Method Detail
-
buildXForm
public static IXForm buildXForm(IFormRenderContext renderCtx) throws com.alibaba.fastjson.JSONException, IOException
- Throws:
com.alibaba.fastjson.JSONException
IOException
-
buildXFormConfig
public static IXFormRenderConfig buildXFormConfig(IFormRenderContext renderCtx) throws IOException
- Throws:
IOException
-
renderAsString
@Deprecated public static String renderAsString(IXForm form, IXFormRenderConfig config, Map<String,List<String[]>> valuesMap) throws com.alibaba.fastjson.JSONException, IOException
Deprecated.- Throws:
com.alibaba.fastjson.JSONException
IOException
-
renderAsString
public static String renderAsString(IXForm form, IXFormRenderConfig config, Map<String,List<String[]>> valuesMap, Map<String,FormContainerMetaData> dynContainerMap) throws com.alibaba.fastjson.JSONException, IOException
- Throws:
com.alibaba.fastjson.JSONException
IOException
-
renderToRequestContext
@Deprecated public static void renderToRequestContext(IXForm form, IXFormRenderConfig config, Map<String,List<String[]>> valuesMap, IExtendedFormRequestContext requestCtx)
-
renderToRequestContext
public static void renderToRequestContext(IXForm form, IXFormRenderConfig config, Map<String,List<String[]>> valuesMap, Map<String,FormContainerMetaData> dynContainerMap, IExtendedFormRequestContext requestCtx)
-
renderToRequestResponse
@Deprecated public static void renderToRequestResponse(IXForm form, IXFormRenderConfig config, IXFormRenderContext formRenderContext, Map<String,List<String[]>> valuesMap, javax.servlet.http.HttpServletResponse response) throws com.alibaba.fastjson.JSONException
Deprecated.- Throws:
com.alibaba.fastjson.JSONException
-
renderToRequestResponse
public static void renderToRequestResponse(IXForm form, IXFormRenderConfig config, IXFormRenderContext formRenderContext, Map<String,List<String[]>> valuesMap, Map<String,FormContainerMetaData> dynContainerMap, javax.servlet.http.HttpServletResponse response) throws com.alibaba.fastjson.JSONException
- Throws:
com.alibaba.fastjson.JSONException
-
renderAsString
public static String renderAsString(IXForm form, IXFormRenderConfig config, IXFormRenderContext formRenderCtx) throws com.alibaba.fastjson.JSONException, IOException
- Throws:
com.alibaba.fastjson.JSONException
IOException
-
renderToRequestContext
@Deprecated public static void renderToRequestContext(IXForm form, IXFormRenderConfig config, IExtendedFormRequestContext requestCtx, Map<String,List<String[]>> values)
-
renderToRequestContext
public static void renderToRequestContext(IXForm form, IXFormRenderConfig config, IExtendedFormRequestContext requestCtx, Map<String,List<String[]>> values, Map<String,FormContainerMetaData> dynContainerMap)
-
renderToRequestContext
public static void renderToRequestContext(IXForm form, IXFormRenderConfig config, IExtendedFormRequestContext requestCtx)
-
renderToRequestResponse
public static void renderToRequestResponse(IXForm form, IXFormRenderConfig config, IXFormRenderContext formRenderCtx, javax.servlet.http.HttpServletResponse response) throws com.alibaba.fastjson.JSONException
- Throws:
com.alibaba.fastjson.JSONException
-
getFormElementWidgetPlugins
public static Map<String,IPluginFormElementWidget> getFormElementWidgetPlugins(Mandant client)
-
getFormElementWidgetPluginsWithInstanceTime
public static Map<String,org.apache.commons.lang3.tuple.Pair<IPluginFormElementWidget,Long>> getFormElementWidgetPluginsWithInstanceTime(Mandant client)
-
buildXFormJSON
@Deprecated public static com.alibaba.fastjson.JSONObject buildXFormJSON(FormRenderContext renderCtx) throws IOException, com.alibaba.fastjson.JSONException
Deprecated.- Throws:
IOException
com.alibaba.fastjson.JSONException
-
clearUploads
public static void clearUploads(IXForm xForm, IXFormRenderConfig config, IExtendedFormRequestContext requestCtx, Map<String,List<String[]>> values)
-
validateFD2Form
public static boolean validateFD2Form(IXForm xForm, IXFormRenderConfig config, IExtendedFormRequestContext requestCtx)
-
-