@ScopeParam"

From Documentation
(Created page with "{{ZKDevelopersReferencePageHeader}} = Syntax = <source lang="java"> @ScopeParam("keyString") @ScopeParam(scopes=Scope.APPLICATION, value="keyString") </source> '''A list ...")
 
Line 41: Line 41:
  
 
</source>
 
</source>
 +
 +
 +
 +
 +
=Version History=
 +
{{LastUpdated}}
 +
{| border='1px' | width="100%"
 +
! Version !! Date !! Content
 +
|-
 +
| 6.0.0
 +
| February 2012
 +
| The MVVM was introduced.
 +
|}
 +
 +
  
 
{{ZKDevelopersReferencePageFooter}}
 
{{ZKDevelopersReferencePageFooter}}

Revision as of 01:51, 9 February 2012


Syntax

@ScopeParam("keyString") 

@ScopeParam(scopes=Scope.APPLICATION, value="keyString")

A list of all scopes enumeration:

enum Scope {
    COMPONENT, SPACE, PAGE, DESKTOP, SESSION, APPLICATION, // single scope
    AUTO //find by comp.getAttribute(name,true)
}

Description

Target: A method's parameter (initial method and command method)

Purpose: Tell binder to retrieve a value with specified scope

The default scope: AUTO means searching the value from COMPONENT to SPACE, PAGE, DESKTOP, SESSION, APPLICATION one bye one automatically until find a non-null value. If you specified the scopes element, binder will search the only scope you specified.

Example

public class ScopeParamVM {

	@Init
	public void init(@ScopeParam(scopes=Scope.APPLICATION , value="config") String sysConfig,
			@ScopeParam(scopes=Scope.SESSION,value="user") String userCredential){
	}



Version History

Last Update : 2012/02/09


Version Date Content
6.0.0 February 2012 The MVVM was introduced.




Last Update : 2012/02/09

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