Class CompoundPropertyModel<T>

    • Method Detail

      • propertyExpression

        protected String propertyExpression​(Component component)
        Returns the property expression that should be used against the target object
        Parameters:
        component -
        Returns:
        property expression that should be used against the target object
      • bind

        public <S> IModel<S> bind​(String property)
        Binds this model to a special property by returning a model that has this compound model as its nested/wrapped model and the property which should be evaluated. This can be used if the id of the Component isn't a valid property for the data object.
        Type Parameters:
        S - the type of the property
        Parameters:
        property - the name that will be used to find
        Returns:
        The IModel that is a wrapper around the current model and the property