Wire Variables"

From Documentation
Line 6: Line 6:
  
 
#It searches any setter if its name matches any of the following
 
#It searches any setter if its name matches any of the following
##Any fellow with the same name (<javadoc method="getFellow(java.lang.String)">org.zkoss.zk.ui.Component</javadoc>
+
##Any fellow with the same name (<javadoc method="getFellow(java.lang.String)">org.zkoss.zk.ui.Component</javadoc>)
 
##Any variable defined in <javadoc method="addVariableResolver(org.zkoss.xel.VariableResolver)">org.zkoss.zk.ui.Page</javadoc> with the same name
 
##Any variable defined in <javadoc method="addVariableResolver(org.zkoss.xel.VariableResolver)">org.zkoss.zk.ui.Page</javadoc> with the same name
 
##Any variable defined in zscript with the same name
 
##Any variable defined in zscript with the same name

Revision as of 07:06, 12 November 2010

Wiring Sequence

GenericForwardComposer will wire members defined in the composer. Here is the sequence:

  1. It searches any setter if its name matches any of the following
    1. Any fellow with the same name (Component.getFellow(String))
    2. Any variable defined in Page.addVariableResolver(VariableResolver) with the same name
    3. Any variable defined in zscript with the same name
    4. Any implicit object with the same name
  2. Then, it searches any field to see if it matches any fellow, any variable,... the same as the above.

zscript and Variable Resolver

ID Space

Version History

Last Update : 2010/11/12

Version Date Content
     



Last Update : 2010/11/12

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