In Pure Java"

From Documentation
m
m
Line 1: Line 1:
 +
{{ZKComponentReferencePageHeader}}
 +
 
It is also possible to create XHTML components in Java. The XHTML components are mapped to classes by ZK which means you can implement something like this:
 
It is also possible to create XHTML components in Java. The XHTML components are mapped to classes by ZK which means you can implement something like this:
  
Line 22: Line 24:
  
 
Next let's investigate the differences between XUL and XHTML components.
 
Next let's investigate the differences between XUL and XHTML components.
 +
 +
{{ZKComponentReferencePageFooter}}

Revision as of 04:14, 20 May 2010

It is also possible to create XHTML components in Java. The XHTML components are mapped to classes by ZK which means you can implement something like this:

Td myTd = new Td();

This enables you to use XHTML components from ZUL or within Java just like anything ZK related. If you need to output an XHTML component which is not present in ZK you can use the Raw object.

Raw

A special component, Raw 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 Raw 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.

<marquee align="top">...</marquee>

is equivalent to

new Raw("marquee").setDynamicAttribute("align", "top");

Next let's investigate the differences between XUL and XHTML components.



Last Update : 2010/05/20

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