Skip to content

4.10 Imagegallery

The Imagegallery component allows users to conveniently view and manage sets of related images.

Each element in the image gallery is referred to as an Imagegalleryitem.

This component is associated with a repository defined in "repo," enabling direct data binding.

Additionally, it features the functionality of being filtered through the "repofilter" component, providing the ability to display specific data based on predefined filtering criteria.

Attribute Default Value Type Description
Common id null String Unique identifier of the component. If it doesn't have an id, it is assigned with the nomenclature ${tag}${num}.
render true Boolean or JEXLExpression EL expression to evaluate if the component should be displayed.
onBeforeRender null String JS method to execute before the current component is rendered.
onAfterRender null String JS method that will be executed once the current component is rendered.
action null String Identifier of the action to perform when the user interacts with this component.
allowsPartialRestore false Boolean If the state of the current component should be restored when the user returns to the view.
repo null String Identifier of the repository used to fetch the data.

4.10.1 Imagegalleryitem

Attribute Default Value Type Description
id null String Unique identifier of the component. If it doesn't have an id, it is assigned with the nomenclature ${tag}${num}.
label null String Label to be displayed.
value null String or JEXLExpression EL Expression to calculate the component's value.
converter null String Instance of the converter to apply to the entity property.

4.10.1 Repofilter

Attribute Default Value Type Description
id null String Unique identifier of the component. If it doesn't have an id, it is assigned with the nomenclature ${tag}${num}.

The repoFilter tag has no attributes; the expression is defined by nesting predicate tags such as and, or.

  • Operators: EQ, LT, GT, LE, GE, IN, NOT_IN, IS_NULL, NOT_NULL, LIKE, CONTAINS, STARTS_WITH, ENDS_WITH.
  • Criteria: and, or
Attribute Default Value Type Description
property null String Name of the entity property used to filter the results.
mandatory false Boolean An operator can include the parameter "mandatory=True" to indicate that the query cannot be executed if that value is not available.
value null String or JEXLExpression EL expression used as the value.
<imagegallery repo="pruebaRepo" allowsPartialRestore="false">
    <repofilter>
        <and>
            <le property="prueba_id" value="4" />
        </and>
    </repofilter>
    <imagegalleryitem converter="b64Image" value="${entity.image}" />
</imagegallery>

img.png