public class Utils extends Object
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
buildAttributes(Map<String,String> attributes) |
static String |
buildAttributes(TagAttributes attributes) |
static String |
buildSingleAttribute(String key,
String value) |
static void |
fillBean(List<FormCheckerElement> elements,
Object bean) |
static String |
getDebugOutput(Map<String,FormCheckerElement> elements)
Return a nicely formated form of the form for debugging or other purposes
|
static String |
getJsonOutput(FormChecker fc)
returns json output in this format: http://labs.omniti.com/labs/jsend
{
"status" : "fail",
"data" : { "title" : "A title is required" }
}
{
status : "success",
data : null
}
|
public static void fillBean(List<FormCheckerElement> elements, Object bean) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException
public static String buildAttributes(TagAttributes attributes)
public static String getDebugOutput(Map<String,FormCheckerElement> elements)
public static String getJsonOutput(FormChecker fc)
fc - Copyright © 2016. All rights reserved.