Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-2346

Macro components do not accept custom widget classes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 7.0.1, 7.0.2
    • Components
    • Windows 7 x64

      When creating a macro component, if in the lang addon definition we put a custom widget class it is never loaded. The reason is because HtmlMacroComponent has the getWidgetClass method overriden returning always "zk.Macro" instead of the custom class.
      This can be solved by changing the method with:

      public final String getWidgetClass()

      { ComponentDefinition def = getDefinition(); String widgetClass = def.getWidgetClass(this, getMold()); widgetClass = widgetClass == null ? "zk.Macro" : widgetClass; return widgetClass; }

            Unassigned Unassigned
            EverisJPL EverisJPL
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated: