-
FEATURED COMPONENTS
First time here? Check out the FAQ!
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,
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
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>
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 :-)
Asked: 2014-07-11 12:57:42 +0800
Seen: 44 times
Last updated: Jul 21 '14