org.mixer2.xhtml.util.FormUtil Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mixer2 Show documentation
Show all versions of mixer2 Show documentation
Mixer2 is template engine for java.
package org.mixer2.xhtml.util;
import java.lang.reflect.InvocationTargetException;
import java.util.Collection;
import java.util.List;
import org.apache.commons.beanutils.BeanUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.mixer2.jaxb.xhtml.Form;
import org.mixer2.jaxb.xhtml.Input;
import org.mixer2.jaxb.xhtml.Option;
import org.mixer2.jaxb.xhtml.Select;
import org.mixer2.jaxb.xhtml.Textarea;
import org.mixer2.util.M2StringUtils;
/**
*
* set javabean value into input,radio,textarea etc.
*
*
* formタグ内部の入力フォーム(input,radio,textarea等)にJavaBeanの値をセットするユーティリティ
*
*
* @author watanabe
*
*/
public class FormUtil {
private static Log log = LogFactory.getLog(FormUtil.class);
/**
*
* LabelValueBeanのリストをもとに、optionタグのlistを返します。
*
*
* @param list
* @param resultList
* empty List. Usually, put new ArrayList <Option> as is.
* 空のlist。通常は new ArrayList してそのまま渡してください
* @return
*/
public static List