0

progressbox setting at zk.xml is not working

asked 2014-07-11 12:57:42 +0800

atkinson gravatar image atkinson
1

Hello everyone, I am using 7.0.2 CE and I was trying to set the progressbox position to top-right and with mask in zk.xml with

<library-property>
<name>org.zkoss.zul.progressbox.position</name>
<value>top,right</value>
</library-property>

However, it does not take any effect at all.... I am sure the zk.xml is loaded when the webapp start from the log and I also tested by changing org.zkoss.web.preferred.locale to other locale.

and does it possible to change the position at runtime?

Thanks,

delete flag offensive retag edit

4 Replies

Sort by » oldest newest

answered 2014-07-11 13:23:58 +0800

cyiannoulis gravatar image cyiannoulis
1191 10

Tested with ZK 7.0.2 and it works fine. I'm sure something else is causing the trouble. Pls post your zk.xml

/costas

link publish delete flag offensive edit

answered 2014-07-14 02:21:08 +0800

atkinson gravatar image atkinson
1

thanks costas,

<zk> <log> <log-base>org.zkoss</log-base> </log>

<!-- Optional -->
<!-- <desktop-config> <theme-provider-class>zkthemer.ThemeProvider </theme-provider-class> 
    </desktop-config> -->
<!-- Optional for testing -->
<!-- <listener> <description> Serialization Listener for debugging</description> 
    <listener-class>de.forsthaus.util.MySerializationListener </listener-class> 
    </listener> -->

<!-- ========================================================== -->
<!-- Used for declaring the debug level for zk -->
<!-- ========================================================== -->
<!-- <listener> <display-name>ApplicationWorkspace Initiator</display-name> 
    <listener-class>com.kbsoft.WebAppInit</listener-class> </listener> -->
<!-- ========================================================== -->
<!-- Enable event thread for modal windows -->
<!-- ========================================================== -->
<system-config>
    <disable-event-thread>false</disable-event-thread>
</system-config>


<!-- ====================================================== -->
<!-- running a zk application in a CLUSTER -->
<!-- ====================================================== -->
<system-config>
    <ui-factory-class>
        org.zkoss.zk.ui.http.SerializableUiFactory
    </ui-factory-class>
</system-config>

<!-- ====================================================== -->
<!-- Static ID Generator -->
<!-- ====================================================== -->
<system-config>
    <id-generator-class>org.zkoss.zk.ui.impl.StaticIdGenerator</id-generator-class>
    <!-- <id-generator-class>com.kbsoft.SequenceIdGenerator.SequenceIdGenerator</id-generator-class> -->
</system-config>

<!-- ====================================================== -->
<!-- Optional -->
<!-- collect statistical data of the running app. -->
<!-- ====================================================== -->
<!-- <listener> <description> Monitor the statistic</description> <listener-class>de.forsthaus.statistic.FDStatisticMonitor 
    </listener-class> </listener> -->



<!-- <device-config> <device-type>ajax</device-type> <server-push-class>org.zkoss.zkmax.ui.comet.PollingServerPush</server-push-class> 
    <timeout-uri>/timeout.zul</timeout-uri> </device-config> -->


<listener>
    <description>ThreadLocal Synchronization Listener
    </description>
    <listener-class>org.zkoss.zkplus.util.ThreadLocalListener
    </listener-class>
</listener>

<preference>
    <name>ThreadLocal</name>
    <value>
        org.springframework.security.core.context.ThreadLocalSecurityContextHolderStrategy=contextHolder;
        org.springframework.web.context.request.RequestContextHolder=requestAttributesHolder,inheritableRequestAttributesHolder;
    </value>
</preference>

<!-- ====================================================== -->
<!-- Path to the own error page -->
<!-- ====================================================== -->
<error-page>
    <exception-type>java.lang.Throwable
    </exception-type>
    <location>/error.zul</location>
</error-page>

<!-- ====================================================== -->
<!-- Path to the character set and sizes -->
<!-- Zkoss configuration file -->
<!-- Custom components are declared here -->
<!-- ====================================================== -->

<language-config>
    <addon-uri>/WEB-INF/lang-addon.xml
    </addon-uri>
</language-config>


<!-- ====================================================== -->
<!-- Maximal count of desktops which a session can hold -->
<!-- ====================================================== -->
<session-config>
    <max-desktops-per-session>1</max-desktops-per-session>
    <timer-keep-alive>true</timer-keep-alive>
</session-config>

<client-config>
    <click-filter-delay>390</click-filter-delay>
</client-config>

<library-property>
    <name>org.zkoss.zul.theme.fontFamilyT</name>
    <value>Verdana, Tahoma, Arial, Helvetica, sans-serif</value>
</library-property>
<device-config>
    <device-type>ajax</device-type>
    <timeout-uri>/login.zul</timeout-uri>
</device-config>

<library-property>
    <name>org.zkoss.web.preferred.locale</name>
    <value>ar_BH</value>
</library-property>
 <library-property>  
    <name>org.zkoss.zul.progressbox.position</name>  
    <value>top,right</value>  
</library-property>
<library-property>
    <name>org.zkoss.zul.progressbox.mask</name>
    <value>true</value>
</library-property>
<client-config>
    <processing-prompt-delay>900</processing-prompt-delay>
</client-config>    

<system-config>
    <label-location>/WEB-INF/i3-label.properties</label-location>
</system-config>

</zk>

link publish delete flag offensive edit

answered 2014-07-17 11:58:17 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

updated 2014-07-17 12:15:31 +0800

I have added a line in the comment. Can be that the z-loading style class is overriden in your css file. Please search your css-file for z-loading

zk.xml

<!-- ====================================================== -->
<!-- Displays the wait indicator on every user action -->
<!-- and sets the position -->
<!-- This has NO effect if we have overriden the css for .z-loading{..} -->
<!-- ====================================================== -->
<library-property>
    <name>org.zkoss.zul.progressbox.position</name>
    <value>center, center</value>
</library-property>
<client-config>
    <processing-prompt-delay>1</processing-prompt-delay>
</client-config>

myCSS.css

/* Processing indicator */
.z-loading {
    top: 50% !important;
    left: 45% !important;
    align: center;
    vertical-align: middle;
    font-size: 11px;
}

or the css it's defined in on of the zul files.

<script>
  .z-loading { ...
</script>

So it's easier to search the complete project for z-loading.

best Stephan

PS: By the way There will come a complete new Base Application ZKBoost (ZK 7.02, modular extendable, Bootstrap3 responsive Design, JPA Standard, and much more) in about 8 weeks. The written of the book needs some time :-)

link publish delete flag offensive edit

answered 2014-07-21 07:19:55 +0800

atkinson gravatar image atkinson
1

Hi Terry,

thank you very much.

I dont know about JPA, but I hate Hibernate a lot, hopefully I can rid it off on the next project.

Wish your book comes up soon ;)

Atkinson

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
2 followers

RSS

Stats

Asked: 2014-07-11 12:57:42 +0800

Seen: 39 times

Last updated: Jul 21 '14

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