0

Executions.createComponents get Page not found

asked 2013-03-13 13:07:23 +0800

deadlock gravatar image deadlock
0

I want do open a modal Window with

Window window = (Window) Executions.createComponents("/data/article/newarticle.zul", null, null);

The zul File is in the right direcotry in my web project /data/article/newarticle.zul.

If I run the Code I get an Error: SCHWERWIEGEND: >>org.zkoss.zk.ui.UiException: Page not found: /data/article/newarticle.zul.

Where could be the problem?

delete flag offensive retag edit

Comments

1

Please share your project structure.

sjoshi ( 2013-03-13 13:48:39 +0800 )edit

5 Answers

Sort by ยป oldest newest most voted
2

answered 2013-03-14 04:56:20 +0800

iamsudhir4u gravatar image iamsudhir4u flag of India
545 7
http://corejavasupport.bl...

Send me the source code of newarticle.zul and class where you have written

Window window = (Window) Executions.createComponents("/data/article/newarticle.zul", null, null);

I have created one demo and its working fine.

http://zkfiddle.org/sample/2kb7sra/9-File-not-found-issue#source-1

link publish delete flag offensive edit
1

answered 2013-03-14 00:12:28 +0800

Matze2 gravatar image Matze2
773 7

The root cause can often be found within the full exception stack. Try to catch the exception and print it, e.g. like this

try {
    return Executions.createComponents(url, parent, args);
} catch (Exception e) {
    log.error("Could not create sub page for " + url, e); 
}
link publish delete flag offensive edit
0

answered 2013-03-13 21:27:50 +0800

csandeep gravatar image csandeep flag of India
66 5
http://sndpchatterjee07.w...

Download the modal dialog demo and import it and compare with your project/folder structure.Worked fine for me.

link publish delete flag offensive edit
0

answered 2015-08-29 16:40:16 +0800

ilovedongri gravatar image ilovedongri
1

I has the same, and how to clear this problem?

link publish delete flag offensive edit

Comments

Make a new question. Provide your structure, zul and the class behind.

chillworld ( 2015-08-30 05:09:52 +0800 )edit
0

answered 2015-08-30 10:28:32 +0800

Darksu gravatar image Darksu
1991 1 4

Hello ilovedongri,

It all depends on from where you are creating the new component. Thus please check again the paths that are used.

Best Regards,

Darksu

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

Follow
1 follower

RSS

Stats

Asked: 2013-03-13 13:07:23 +0800

Seen: 156 times

Last updated: Aug 30 '15

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