Use ZK JSP Tags instead of ZK Filter"

From Documentation
m
Line 1: Line 1:
{{ZKDevelopersGuidePageHeader}}
+
{{ZKDevelopersReferencePageHeader}}
  
 
The ZK filter actually maps each HTML tag to the corresponding XHTML components. As described in the previous section, it consumes more memory than necessary since ZK has to maintain the states of all ZK components (including XUL and XHTML components).
 
The ZK filter actually maps each HTML tag to the corresponding XHTML components. As described in the previous section, it consumes more memory than necessary since ZK has to maintain the states of all ZK components (including XUL and XHTML components).
Line 5: Line 5:
 
ZK JSP tags are introduced to eliminate the need of the ZK filter for JSP pages. With ZK JSP tags, a ZUL component is created for each ZK JSP tag. All other HTML tags are encapsulated as a special component.
 
ZK JSP tags are introduced to eliminate the need of the ZK filter for JSP pages. With ZK JSP tags, a ZUL component is created for each ZK JSP tag. All other HTML tags are encapsulated as a special component.
  
<source lang="xml" >
+
<syntax lang="xml" >
 
<!-- a JSP page -->
 
<!-- a JSP page -->
 
<z:page>
 
<z:page>
Line 15: Line 15:
 
     </table>
 
     </table>
 
</z:page>
 
</z:page>
</source>
+
</syntax>
  
 
is equivalent to the following code snippet, if a ZUL page is used,
 
is equivalent to the following code snippet, if a ZUL page is used,
  
<source lang="xml" >
+
<syntax lang="xml" >
 
<!-- a ZUL page -->
 
<!-- a ZUL page -->
 
<n:table xmlns:n="http://www.zkoss.org/2005/zk/native">
 
<n:table xmlns:n="http://www.zkoss.org/2005/zk/native">
Line 27: Line 27:
 
     </n:tr>
 
     </n:tr>
 
</n:table>
 
</n:table>
</source>
+
</syntax>
  
{{ ZKDevelopersGuidePageFooter}}
+
=Version History=
 +
 
 +
{| border='1px' | width="100%"
 +
! Version !! Date !! Content
 +
|-
 +
| &nbsp;
 +
| &nbsp;
 +
| &nbsp;
 +
|}
 +
 
 +
{{ ZKDevelopersReferencePageFooter}}

Revision as of 11:45, 17 September 2010


DocumentationZK Developer's ReferencePerformance TipsUse ZK JSP Tags instead of ZK Filter
Use ZK JSP Tags instead of ZK Filter


The ZK filter actually maps each HTML tag to the corresponding XHTML components. As described in the previous section, it consumes more memory than necessary since ZK has to maintain the states of all ZK components (including XUL and XHTML components).

ZK JSP tags are introduced to eliminate the need of the ZK filter for JSP pages. With ZK JSP tags, a ZUL component is created for each ZK JSP tag. All other HTML tags are encapsulated as a special component.

<syntax lang="xml" > <z:page>

Name <z:textbox/>

</z:page> </syntax>

is equivalent to the following code snippet, if a ZUL page is used,

<syntax lang="xml" > <n:table xmlns:n="http://www.zkoss.org/2005/zk/native">

   <n:tr>
       <n:td>Name</n:td>
       <n:td>   <textbox/></n:td>
   </n:tr>

</n:table> </syntax>

Version History

Version Date Content
     



Last Update : 2010/09/17

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