The Difference Between XUL and XHTML Components"
From Documentation
Tmillsclare (talk | contribs) m |
Tmillsclare (talk | contribs) m |
||
Line 1: | Line 1: | ||
+ | {{ZKComponentReferencePageHeader}} | ||
+ | |||
All XHTML components are derived from <javadoc>org.zkoss.zhtml.impl.AbstractTag</javadoc>. | All XHTML components are derived from <javadoc>org.zkoss.zhtml.impl.AbstractTag</javadoc>. | ||
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. | 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.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) | + | * 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) |
+ | |||
+ | {{ZKComponentReferencePageFooter}} |
Revision as of 04:14, 20 May 2010
All XHTML components are derived from AbstractTag.
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 RawId interface, the universal identifier, getUuid, is the same as the identifier getId
- By implementing the DynamicAttributes interface, all XHTML components support arbitrary attributes. In other words, any attribute name is legal (as long as the targeted browser supports)