Skip to content
This repository has been archived by the owner on Mar 31, 2022. It is now read-only.

Legacy screen cannot open another legacy screen as frame from descriptor #56

Closed
Flaurite opened this issue May 6, 2021 · 0 comments
Closed
Assignees
Labels
type: bug Something isn't working
Milestone

Comments

@Flaurite
Copy link
Contributor

Flaurite commented May 6, 2021

Steps to reproduce

  1. Download attached project: trframe.zip

  2. Open "Legacy Demo" screen

AR

java.lang.IllegalStateException: Fragment controllers should inherit ScreenFragment. UI controller is not ScreenFragment - WindowInfo{id='projectsFrame', descriptor=org.dom4j.tree.DefaultElement@11bfbfcb [Element: <screen attributes: [org.dom4j.tree.DefaultAttribute@36d933b5 [Attribute: name template value "com/company/trframe/lgscreen/project/lg-project-screen.xml"], org.dom4j.tree.DefaultAttribute@54d56364 [Attribute: name id value "projectsFrame"]]/>]} LgProjectBrowse
	at io.jmix.ui.sys.FragmentHelper.createController(FragmentHelper.java:63)
	at io.jmix.ui.xml.layout.loader.FragmentComponentLoader.createComponent(FragmentComponentLoader.java:63)
	at io.jmix.ui.xml.layout.loader.LayoutLoader.createComponent(LayoutLoader.java:138)
	at io.jmix.ui.xml.layout.loader.ContainerLoader.createSubComponents(ContainerLoader.java:54)
	at io.jmix.ui.xml.layout.loader.WindowLoader.createContent(WindowLoader.java:54)
	at io.jmix.ui.xml.layout.loader.LayoutLoader.createWindowContent(LayoutLoader.java:160)
	at io.jmix.ui.sys.ScreensImpl.loadWindowFromXml(ScreensImpl.java:321)
	at com.haulmont.cuba.web.sys.CubaScreens.loadWindowFromXml(CubaScreens.java:531)
	at io.jmix.ui.sys.ScreensImpl.createScreen(ScreensImpl.java:201)
	at io.jmix.ui.sys.ScreensImpl.create(ScreensImpl.java:142)

Hint
See FragmentHelper class. In Jmix CUBA we do not have checking for AbstractWindow.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants