Uploaded image for project: 'Bloomreach Forge'
  1. Bloomreach Forge
  2. FORGE-60

Properties Plugin - The default example event listener configuration for properties document doesn't listen to property or compound node changes.

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • None
    • Properties
    • Properties Plugin 2.08.00

    Description

      Currently, the event listener is defined like this in its demo:

      <bean class="org.hippoecm.hst.core.jcr.EventListenerItemImpl">
      <property name="nodeAddedEnabled" value="true" />
      <property name="nodeRemovedEnabled" value="false" />
      <property name="propertyAddedEnabled" value="false" />
      <property name="propertyChangedEnabled" value="false" />
      <property name="propertyRemovedEnabled" value="false" />
      <property name="absolutePath" value="/" />
      <property name="deep" value="true" />
      <property name="uuids">
      <null />
      </property>
      <property name="nodeTypeNames" value="properties:properties" />
      <property name="noLocal" value="false" />
      <property name="eventListener">
      <bean class="org.onehippo.forge.properties.listener.PropertiesEventListener">
      <property name="propertiesManager" ref="org.onehippo.forge.properties.api.PropertiesManager.labels" />
      </bean>
      </property>
      </bean>

      So, it listens to events when properties:properties document is added only, but doesn't listen to compound node addition or properties changes at all.
      This is not a good example in projects where any changes are expected to be picked up at runtime.

      Attachments

        Activity

          People

            jhoffman Jeroen Hoffman
            wko Woonsan Ko (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: