org.zkoss.zk.ui.WebApp.name"

From Documentation
(Created page with "{{ZKConfigurationReferencePageHeader}} ''Preference:''' org.zkoss.zk.ui.WebApp.name Default: <tt>ZK</tt> [since 5.0.6] It specifies the application name. It is the return v...")
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
{{ZKConfigurationReferencePageHeader}}
 
{{ZKConfigurationReferencePageHeader}}
  
''Preference:'''
+
'''Preference:'''
 
  org.zkoss.zk.ui.WebApp.name
 
  org.zkoss.zk.ui.WebApp.name
  
Line 7: Line 7:
 
  [since 5.0.6]
 
  [since 5.0.6]
  
It specifies the application name. It is the return value of <javadoc method="getAppName()" type="interface">org.zkoss.zk.ui.WebApp</javadoc>. It is also the default title of [[ZK Component Reference/Supporting Classes/Messagebox|Messagebox]].
+
It specifies the application name. It is the return value of <javadoc method="getAppName()" type="interface">org.zkoss.zk.ui.WebApp</javadoc>. It also determins the default title of [[ZK Component Reference/Supporting Classes/Messagebox|Messagebox]] and build-in warning/error dialogs e.g. file upload size exceeding error.
  
 
For example,
 
For example,
Line 18: Line 18:
 
</source>
 
</source>
  
In additions, you could change the application's name in Java by invoking <javadoc method="setAppName(java.lang.String)" type="interface">org.zkoss.zk.ui.WebApp</javadoc>.
+
In addition, you could change the application's name in Java by invoking <javadoc method="setAppName(java.lang.String)" type="interface">org.zkoss.zk.ui.WebApp</javadoc>.
 
=Version History=
 
=Version History=
 
{{LastUpdated}}
 
{{LastUpdated}}

Revision as of 02:58, 14 June 2019


org.zkoss.zk.ui.WebApp.name


Preference:

org.zkoss.zk.ui.WebApp.name
Default: ZK
[since 5.0.6]

It specifies the application name. It is the return value of WebApp.getAppName(). It also determins the default title of Messagebox and build-in warning/error dialogs e.g. file upload size exceeding error.

For example,

<!-- in WEB-INF/zk.xml -->
<preference>
	<name>org.zkoss.zk.ui.WebApp.name</name>
	<value>My Killer Application</value>
</preference>

In addition, you could change the application's name in Java by invoking WebApp.setAppName(String).

Version History

Last Update : 2019/06/14


Version Date Content
5.0.6 Feburary, 2011 Introduced



Last Update : 2019/06/14

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.