All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.mixer2.xhtml.util.FormUtil Maven / Gradle / Ivy

There is a newer version: 1.4.2
Show newest version
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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy