cuba-platform / dashboard-addon

This component is designed to create and embed dashboards. Dashboard consists of widgets - individual elements based on a frame.
Apache License 2.0
7 stars 3 forks source link

ScreenFragment is not recognised as a Widget #21

Closed dyakonoff closed 5 years ago

dyakonoff commented 5 years ago

Environment

Description of the bug or enhancement

Despite documentation says that in CUBA 7 we can extend ScreenFragment to make a widget. If we do that the widget won't be detected by the addon unless in xml file we specify a link to the controller class (it's legacy behaviour that CUBA 7).

So unless you added class attribute that points to the controller class manually, your dashboard widget will not be accessible in the dashboard editor screen

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<fragment xmlns="http://schemas.haulmont.com/cuba/screen/fragment.xsd"
          class="com.haulmont.sample.petclinic.web.dashboards.ClientsDashboard">
    <layout>
        <label value="LOL!"/>
    </layout>
</fragment>
agentes-de commented 5 years ago

Ich kehre zurück am 12.08.2019.

Sehr geehrter Absender, liebe/r Kollege/in,

am Montag, den 12.08.2019, bin ich wieder im Office. E-Mails werden nicht weitergeleitet.

Viele Grüße Andreas Brück


Dear Sender,

I am back a tthe office on Monday, 12th of August 2019. E-Mails are not being forwarded.

Kind Regards, Andreas Brück

Hinweis: Dies ist eine automatische Antwort auf Ihre Nachricht "Re: [cuba-platform/dashboard-addon] ScreenFragment is not recognised as a Widget (#21)" gesendet am 26.07.2019 14:17:13.

Diese ist die einzige Benachrichtigung, die Sie empfangen werden, während diese Person abwesend ist.