Skip navigation links
org.apache.struts.validator

Class LazyValidatorForm

    • Constructor Detail

      • LazyValidatorForm

        public LazyValidatorForm()
        Default Constructor which creates a LazyDynaBean to back this form.
      • LazyValidatorForm

        public LazyValidatorForm(org.apache.commons.beanutils.DynaBean bean)
    • Method Detail

      • get

        public Object get(String name,
                          int index)

        Return an indexed property value.

        If the "indexed" property is a List type then any missing values are populated with a bean (created in the newIndexedBean(name) method - in this implementation this is a LazyDynaBean type.

        Specified by:
        get in interface org.apache.commons.beanutils.DynaBean
        Overrides:
        get in class BeanValidatorForm
        Parameters:
        name - Name of the property whose value is to be retrieved
        index - Index of the value to be retrieved
      • getMap

        public Map getMap()

        Return the Map containing the property values.

        Provided so that properties can be access using JSTL.

      • newIndexedBean

        protected org.apache.commons.beanutils.DynaBean newIndexedBean(String name)

        Creates new DynaBean instances to populate an 'indexed' property of beans - defaults to LazyDynaBean type.

        Override this method if you require a different type of DynaBean.

Copyright © 2000–2017 Apache Software Foundation. All rights reserved.