1

my window cant open on mobile

asked 2014-02-06 07:28:34 +0800

tnharisman gravatar image tnharisman
31 3

hi... i have a window like this :

<zk xmlns="http://www.zkoss.org/2005/zul"
xmlns:h="http://www.w3.org/1999/xhtml"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.zkoss.org/2005/zul http://www.zkoss.org/2005/zul/zul.xsd">


<window id="testWin" width="100%" height="100%" border="none" zclass="none"
    position="center" mode="overlapped" >
    <menubar id="menubar" width="100%">
    <menu label="Project" image="/img/Centigrade-Widget-Icons/Briefcase-16x16.png">
        <menupopup>
            <menuitem image="/img/Centigrade-Widget-Icons/BriefcaseSpark-16x16.png" label="New"
                onClick="alert(self.label)" />
            <menuitem image="/img/Centigrade-Widget-Icons/BriefcaseOpen-16x16.png" label="Open"
                onClick="alert(self.label)" />
            <menuitem image="/img/Centigrade-Widget-Icons/DisketteBlack-16x16.png" label="Save"
                onClick="alert(self.label)" />
            <menuseparator />
            <menuitem label="Exit" image="/img/Centigrade-Widget-Icons/DoorOpen-16x16.png" onClick="alert(self.label)" />
        </menupopup>
    </menu>
    <menu label="Help" image="/img/Centigrade-Widget-Icons/QuestionmarkButton-16x16.png">
        <menupopup>
            <menuitem label="Index" onClick="alert(self.label)" />
            <menu label="About">
                <menupopup>
                    <menuitem label="About ZK"
                        onClick="alert(self.label)" />
                    <menuitem label="About Potix"
                        onClick="alert(self.label)" />
                </menupopup>
            </menu>
        </menupopup>
    </menu>
    <menu image="/img/Centigrade-Widget-Icons/Spyglass-16x16.png">
        <menupopup>
            <menuitem label="Index" onClick="alert(self.label)" />
            <menu label="Color Picker" content="#color=#184dc6"/>
        </menupopup>
    </menu>
</menubar>
<grid>
    <columns/>
    <rows>
        <row>
            <bandbox>
                <bandpopup>
                    <listbox>
                        <listitem label="A" />
                        <listitem label="B" />
                        <listitem label="C" />
                    </listbox>
                </bandpopup>
            </bandbox>
        </row>
    </rows>
</grid>

</window>

</zk>

my code above can not run on mobile phone, and after I check the problem because I created bandbox component, but if code like bellow it will be run normally

<zk xmlns="<a href=" http:="" www.zkoss.org="" 2005="" zul"="">http://www.zkoss.org/2005/zul" xmlns:h="http://www.w3.org/1999/xhtml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.zkoss.org/2005/zul http://www.zkoss.org/2005/zul/zul.xsd">

<window id="testWin" width="100%" height="100%" border="none" zclass="none"
    position="center" mode="overlapped" >
    <menubar id="menubar" width="100%">
    <menu label="Project" image="/img/Centigrade-Widget-Icons/Briefcase-16x16.png">
        <menupopup>
            <menuitem image="/img/Centigrade-Widget-Icons/BriefcaseSpark-16x16.png" label="New"
                onClick="alert(self.label)" />
            <menuitem image="/img/Centigrade-Widget-Icons/BriefcaseOpen-16x16.png" label="Open"
                onClick="alert(self.label)" />
            <menuitem image="/img/Centigrade-Widget-Icons/DisketteBlack-16x16.png" label="Save"
                onClick="alert(self.label)" />
            <menuseparator />
            <menuitem label="Exit" image="/img/Centigrade-Widget-Icons/DoorOpen-16x16.png" onClick="alert(self.label)" />
        </menupopup>
    </menu>
    <menu label="Help" image="/img/Centigrade-Widget-Icons/QuestionmarkButton-16x16.png">
        <menupopup>
            <menuitem label="Index" onClick="alert(self.label)" />
            <menu label="About">
                <menupopup>
                    <menuitem label="About ZK"
                        onClick="alert(self.label)" />
                    <menuitem label="About Potix"
                        onClick="alert(self.label)" />
                </menupopup>
            </menu>
        </menupopup>
    </menu>
    <menu image="/img/Centigrade-Widget-Icons/Spyglass-16x16.png">
        <menupopup>
            <menuitem label="Index" onClick="alert(self.label)" />
            <menu label="Color Picker" content="#color=#184dc6"/>
        </menupopup>
    </menu>
</menubar>
<grid>
    <columns/>
    <rows>
        <row>
            <!-- <bandbox>
                <bandpopup>
                    <listbox>
                        <listitem label="A" />
                        <listitem label="B" />
                        <listitem label="C" />
                    </listbox>
                </bandpopup>
            </bandbox> -->
        </row>
    </rows>
</grid>

</window>

</zk>

my phone use os android4.0(ICS) and the error in my log

Feb 06, 2014 2:07:36 PM org.zkoss.util.resource.ResourceCache$Info isValid:221 INFO: Source is changed: /testing.zul Feb 06, 2014 2:07:36 PM sun.reflect.GeneratedMethodAccessor59 invoke:-1

what the solution for my problem, thanks....

tn_harisman

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2014-02-20 02:27:30 +0800

tnharisman gravatar image tnharisman
31 3

OKAY DONE, its cause my "lib" conflict :D

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
1 follower

RSS

Stats

Asked: 2014-02-06 07:28:34 +0800

Seen: 14 times

Last updated: Feb 20 '14

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