0

sometime my page will not be displayed after zk loader

asked 2012-07-25 19:55:57 +0800

zkBeginner2012 gravatar image zkBeginner2012
21

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!

delete flag offensive retag edit

9 Replies

Sort by » oldest newest

answered 2012-07-26 04:31:20 +0800

zkBeginner2012 gravatar image zkBeginner2012
21

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!

link publish delete flag offensive edit

answered 2012-07-26 04:46:59 +0800

jj gravatar image jj
638 3

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.

link publish delete flag offensive edit

answered 2012-07-26 04:54:45 +0800

zkBeginner2012 gravatar image zkBeginner2012
21

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>

link publish delete flag offensive edit

answered 2012-07-26 05:17:17 +0800

jj gravatar image jj
638 3

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.

link publish delete flag offensive edit

answered 2012-07-26 12:12:15 +0800

Neus gravatar image Neus
1415 14

It happens sometimes to me, too.

Try using IE to reproduce it. I think when it happens to me I am always using IE.

link publish delete flag offensive edit

answered 2012-07-26 15:16:49 +0800

zkBeginner2012 gravatar image zkBeginner2012
21

@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?

link publish delete flag offensive edit

answered 2012-09-04 09:12:09 +0800

Neus gravatar image Neus
1415 14

No, I didn't find any solution. Today has happens with IE 7, but I can't tell why it happens or when it happens.
zkBeginner, have you found any information about it or any solution? Some one else??

Thank you!

link publish delete flag offensive edit

answered 2012-09-11 09:19:21 +0800

zkBeginner2012 gravatar image zkBeginner2012
21

Yes i found a solution! I downgraded the zk framework to a version lower than 6. With version 5.x i have no problems.....

link publish delete flag offensive edit

answered 2012-12-20 11:06:04 +0800

Neus gravatar image Neus
1415 14

@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.

link publish delete flag offensive edit
Your reply
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

RSS

Stats

Asked: 2012-07-25 19:55:57 +0800

Seen: 219 times

Last updated: Dec 20 '12

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