cdk
Tag object


Introduces new variable. Variable's scope is limited to the context of the current method, i.e. variables defined before <cdk:body> are not available after it.

Should be used within cc:implementation element.

Usage example:



Attributes
NameRequiredRequest-timeTypeDescription
nametruetruejava.lang.String

Name of the variable, corresponding to Java identifier syntax.

Examples:

  • <cdk:object name="children" ...>
  • <cdk:object name="myVariable" ...>
  • <cdk:object name="_children0" ...>

valuefalsetruejava.lang.String

EL-expression specifying initial value of the variable. If this attribute is ommitted, body of the tag is used instead.

Examples:

  • <cdk:object value="#{cc.rendered}" ...>
  • <cdk:object value="#{myObject} ...>
  • <cdk:object value="#{getSubmittedValue(facesContext, cc)} ...>
  • <cdk:object ...>#{cc.getClientId(facesContext)}</cdk:object>

typefalsetruejava.lang.String

Variable type name. CDK automatically resolves simple names for primitive types, JSF API classes and objects from java.lang.* or java.util.*. For parametrised types you can use java generics syntax

Examples:

  • <cdk:object type="java.lang.String" ...>
  • <cdk:object type="float" ...>
  • <cdk:object type="List<String>" ...>
  • <cdk:object type="UIComponent" ...>

If type is not defined explicitly, CDK will try to infer variable type from its value.



Output Generated by Tag Library Documentation Generator. Java, JSP, and JavaServer Pages are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 2002-4 Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054, U.S.A. All Rights Reserved.