XHTML Components"

From Documentation
m
Line 1: Line 1:
 
{{ZKComponentReferencePageHeader}}
 
{{ZKComponentReferencePageHeader}}
  
 +
This section provides information on XHTML Components, such as what they are and how to use them.
  
All XHTML components are derived from <javadoc>org.zkoss.zhtml.impl.AbstractTag</javadoc>.
+
{{ZKComponentReferenceSectionToc}}
  
An XHTML component is a thin wrapper that encapsulates a native HTML tag. It is different to a XUL component or other none-native component in several ways.
 
 
* By implementing the <javadoc type="interface">org.zkoss.zk.ui.ext.RawId</javadoc> interface, the universal identifier, <mp>getUuid</mp>, is the same as the identifier <mp>getId</mp>.
 
* By implementing the <javadoc type="interface">org.zkoss.zk.ui.ext.DynamicAttributes</javadoc> interface, all XHTML components support arbitrary attributes. In other words, any attribute name is legal (as long as the targeted browser supports).
 
 
=== Raw ===
 
 
A special component, <javadoc>org.zkoss.zhtml.Raw</javadoc> is used to represent any component that is not declared in the following section (i.e., not in lang.xml). In other words, if any unrecognized component name is found, an instance of <javadoc>org.zkoss.zhtml.Raw</javadoc> is created and a proper HTML tag will be generated accordingly. In other words, any component name is legal as long as the targeted browser supports.
 
 
<source lang="xml" >
 
<marquee align="top">...</marquee>
 
</source>
 
 
is equivalent to
 
 
<source lang="java">
 
new Raw().setDynamicAttribute("align", "top");
 
</source>
 
  
 
{{ZKComponentReferencePageFooter}}
 
{{ZKComponentReferencePageFooter}}

Revision as of 03:33, 20 May 2010


XHTML Components

This section provides information on XHTML Components, such as what they are and how to use them.

Template:ZKComponentReferenceSectionToc



Last Update : 2010/05/20

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