Package org.apache.commons.beanutils

Examples of org.apache.commons.beanutils.BasicDynaBean


   * <p>Create and return a new {@link DynaBean} instance to be used for
   * representing a row in the underlying result set.</p>
   */
  protected DynaBean createDynaBean() {

    return (new BasicDynaBean(this));

  }
View Full Code Here


    try
    {
      bd = new BasicDynaClass(modelName, Class.forName("org.apache.commons.beanutils.BasicDynaBean"), dps);

      BasicDynaBean newForm = (BasicDynaBean) bd.newInstance();

      // Now populate the newForm's properties
      for (Iterator i2 = inputs.iterator(); i2.hasNext();)
      {
        oneInput = (ResponseElementDynaBean) i2.next();
        newForm.set((String) oneInput.get("name"), oneInput.get("defaultValue"));
      }

      wreq.setAttribute("default", newForm);
    }
    catch (ClassNotFoundException e)
View Full Code Here

    try
    {
      bd = new BasicDynaClass(beanName, Class.forName("org.apache.commons.beanutils.BasicDynaBean"), dps);

      BasicDynaBean newForm = (BasicDynaBean) bd.newInstance();

      for (Iterator i2 = inputs.iterator(); i2.hasNext();)
      {
        oneInput = (ResponseElementDynaBean) i2.next();
        newForm.set((String) oneInput.get("name"), oneInput.get("defaultValue"));
      }

      request.setAttribute("default", newForm);
    }
    catch (ClassNotFoundException e)
View Full Code Here

      }
      else
      {
        DynaClass bdattr = new BasicDynaClass(re.getName() + "_attributes", Class
                .forName("de.iritgo.aktera.clients.MapExposingBasicDynaBean"), new DynaProperty[0]);
        BasicDynaBean oneAttrBean = (BasicDynaBean) bdattr.newInstance();

        set("attributes", oneAttrBean);
      }

      if (re instanceof Input)
View Full Code Here

TOP

Related Classes of org.apache.commons.beanutils.BasicDynaBean

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.