Uploaded image for project: 'Magnolia UI'
  1. Magnolia UI
  2. MGNLUI-3933

Deprecated ctor of DateFieldFactory doesn't work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 5.4.8
    • 5.4.7
    • None
    • None
    • Kromeriz 51
    • 1

      As described in info.magnolia.ui.form.field.factory.AbstractFieldFactory we can't use Components utility for retreiving UiContext.
      And pull-request of MGNLUI-2695 added to deprecated constructor of DateFieldFactory Components.getComponent(UiContext.class)

      See: Caused by: info.magnolia.objectfactory.NoSuchComponentException: No component configuration for type [info.magnolia.ui.api.context.UiContext] found. Please add a configuration to your module descriptor.
      	at info.magnolia.objectfactory.guice.GuiceComponentProvider.getComponent(GuiceComponentProvider.java:100)
      	at info.magnolia.objectfactory.Components.getComponent(Components.java:107)
      	at info.magnolia.ui.form.field.factory.DateFieldFactory.<init>(DateFieldFactory.java:78)
      	at info.magnolia.ga.visualization.app.fields.GoogleAnalyticsDateFieldFactory.<init>(GoogleAnalyticsDateFieldFactory.java:39)
      	... 164 more
      

        Acceptance criteria

              mdivilek Milan Divilek
              efochr Evzen Fochr
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - 0d
                    0d
                    Logged:
                    Time Spent - 5m
                    5m