Executions.createComponents returns Page not found

asked 2023-09-11 15:26:49 +0800

JuliaZ gravatar image JuliaZ
3 2

updated 2023-09-11 15:27:06 +0800

I have issues with opening a modal window using ZK and spring boot.

Window window = (Window)Executions.createComponents(
      "/systemerrorpopup.zul", null, null);

returns org.zkoss.zk.ui.UiException: Page not found: /systemerrorpopup.zul

Executions.getCurrent().getDesktop().getRequestPath() returns /dashboard.zul which is stored at exactly the same path as the systemerrorpopup.zul which I want to open.

The strangest part is that i can't even open zul files that way which i can access regulary. for example i have a start screen, which is also stored at the same path as the dashboard.zul. however when i try to open the start.zul using createComponents it returns a Page not found as well.

Any ideas how to fix this issue?

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted

answered 2023-09-11 18:51:00 +0800

JuliaZ gravatar image JuliaZ
3 2

The solution was to add "~./" to the uri

Window window = (Window)Executions.createComponents(
      "~./systemerrorpopup.zul", null, map);
link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools




Asked: 2023-09-11 15:26:49 +0800

Seen: 1 times

Last updated: Sep 11

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More