-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hello,
i have a problem in my zk web application.
When i open my application the zk-loader starts and when it is ready the page is displayed.
That works fine in 90% of the requests but on the rest my page will not be displayed after the zk-loader is ready.
In that cases i see just a blank screen and nothing happens.
Does someone have the same issue and a solution for it?
I am using zk6.0.2 (the same problem exists with 6.1.0) and no error message or exception exists....
Thank's for helping!
Some more Information which may help:
When i looking into the html code which is generated i can see, that my zul content is wrapped by an the following tag
<div id="kE8Q70" style="display:none">
So of course the page will not be displayed, but why was this tag generated (with this style) !?
When i am now reloading the page the content will be displayed!
zkBeginner,
It would be helpful if you can provide a simplified sample app (e.g. one zul page) that reproduces the problem. Unless someone had exactly the same problem before, it is difficult to guess what the problem might be given the above information. Also, during the process of stripping down your app, you may actually find out the problem yourself.
Hi,
this is my index page which (as an example) produces this issue:
<?page id="xx" title="xx" cacheable="false" language="xul/html" zscriptLanguage="Java" contentType="text/html;charset=UTF-8"?> <?link rel="stylesheet" type="text/css" href="app.css"?> <?link rel="SHORTCUT ICON" href="favicon.ico" type="image/x-icon"?> <zk xmlns:h="native"> <div class="startpageAppArea" apply="com.vkem.ctrl.module.IndexCtlr"> <image src="images/icon/gift-box.png" width="30px"/> <label value="Page.de" class="appTitle"/> <label value="Beta" style="color:red;"/> <toolbarbutton image="images/icon/documentinfo.png" label="Impressum" class="menuLink" href="impressum.zul"/> <toolbarbutton image="images/icon/irc_online.png" label="Feedback" class="menuLink" href="feedback.zul"/> <toolbarbutton label="Anmelden" image="/images/icon/agt_forward.png" class="menuLink" href="internal.zul"/> <div class="startpageArea"> <hlayout> <vlayout> <div class="loginForm"> <hlayout> <vlayout> <label style="font-weight:bold" value = "Vorname"/> <textbox id="iFirstName" width="70px"/> </vlayout> <vlayout> <label style="font-weight:bold" value = "Nachname"/> <textbox id="iLastName" width="70px"/> </vlayout> <vlayout> <separator /> <button id="btLoad" image="images/icon/viewmag.png"/> </vlayout> </hlayout> <separator /> <separator /> <separator /> <separator /> <separator /> <button label="Benutzer erstellen" image="/images/icon/agt_forward.png" width="200px" dir="reverse" href="registration.zul"/> <separator /> <button label="Wunschliste bearbeiten" image="/images/icon/agt_forward.png" width="200px" dir="reverse" id="btEditWishlist"/> <separator /> <button label="Fragen + Antworten" image="/images/icon/agt_forward.png" width="200px" dir="reverse" id="btFaq"/> </div> </vlayout> <vlayout> <div class="descriptionForm"> <h:img src="images/icon/Add.png" width="15px"/> <label value="Erzeugen Sie sich eine Wunschliste"/> <h:br/> <h:br/> <h:img src="images/icon/Add.png" width="15px"/> <label value="Tragen Sie ihre Wünsche in der Wunschliste ein"/> <h:br/> <h:br/> <h:img src="images/icon/Add.png" width="15px"/> <label value="Teilen Sie die Wunschliste mit ihren Freunden"/> <h:br/> <h:br/> <h:img src="images/icon/Add.png" width="15px"/> <label value="Freuen Sie sich über die richtigen Geschenke"/> <h:br/> </div> </vlayout> </hlayout> <separator/> <div style="float:middle;border-radius:15px;margin-left:20px;margin-right:20px;background:white; padding:5px;padding-bottom:20px;" id="logoDiv"> </div> </div> <separator/> <h:table> <h:tr> <h:td class="copyright">? 2012 - Page </h:td> </h:tr> </h:table> </div> <html> <![CDATA[ ....Some Javascript Code (Piwik Tracking and Google+ Code... ]]> </html> </zk>
I had to remove the apply attribute, but the page shows up fine every time I load it. It looks bad because I don't have the images/css/.., but it always displays.
I am using Chrome for the testing, tomcat as the back-end.
A few places to look into:
1. app.css, see if you remove it, would display work?
2. IndexCtlr, see if you remove it, would display work?
3. Anything special in your zk.xml or web.xml?
This way you can narrow down the suspect.
@Neus
I can reproduce this problem with Google Chrome, Internet Explorer 8.0 and Safari Mobile. Do you have a solution to solve this problem?
Yes i found a solution! I downgraded the zk framework to a version lower than 6. With version 5.x i have no problems.....
@zkBeginner2012
In your first post you said that page will not be displayed after the zk-loader is ready. So, you know it has executed zk-loader... What do you use to know what the application is doing at every moment? I'm having some more problems with the application because sometimes it stops responding (I explained it in this post http://www.zkoss.org/forum/listComment/19689-IE-stop-responding) and I want to know what it is doing when it happens.
Asked: 2012-07-25 19:55:57 +0800
Seen: 219 times
Last updated: Dec 20 '12