Uploaded image for project: 'Errai'
  1. Errai
  2. ERRAI-658

Errai UI should not inherit Errai CDI

    Details

    • Type: Enhancement
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2.4.1.Final
    • Fix Version/s: 3.0.0.M2
    • Component/s: ErraiUI
    • Labels:
      None

      Description

      org.jboss.errai.ui.UI inherits org.jboss.errai.enterprise.CDI, but does not actually depends on it. Please remove this dependency.

      I build an application, where I use GWTP for MVP implementation and Errai UI for templating. Errai UI adds Errai CDI and Errai Bus to my application. I can disable Errai Bus by setting erraiBusRemoteCommunicationEnabled = false, but the code is still there.

      As a workaround, I added org.jboss.errai.ui.UIWithoutCDI.gwt.xml as a copy of UI.gwt.xml and commented out the dependency on CDI. I also had to exclude errai-cdi-client dependency and inclide errai-ioc dependency.

      As the result my compiled JS file has become 233 KB instead of 660 KB with Errai CDI.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                htfv Aliaksei Lahachou
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: