JeeWiz Home  
The Model-Driven System Builder

JeeWiz Architect's Guide
 
Contents  >   15.  'Screen' Reference
 


15.15 StateObject Object

Used on
uiJar
Superclassjava:interfaceField
DescriptionDefines a state object that can be held.

The object can be held in a number of places - request, session or global.

On first use (i.e. the object does not exist in the current context), the object will be created using a null constructor. So whatever the type of the state-object, it must have a null constructor.

Additional code for initialising the state object on creation can be specified by including it as CDATA text for the state object.

Request state-objects are normally defined only in pages rather than globally (in the application). If a request state-object is defined globally, it will be usable in all pages.
Inherited
properties
name from java:namedValue.name

description from page.description

template (base property)

text from java:interfaceField.text

jwpattern (base property)

type from java:namedValue.type

annotation from java:interfaceField.annotation

default from java:interfaceField.default

 15.15.1  Property 'autoCreate'
 15.15.2  Property 'scope'

15.15.1  Property 'autoCreate'
Typeboolean
Defaulttrue

15.15.2  Property 'scope'
DescriptionGets an object out of a context.

The session scope holds parameters for this session. The request scope gets a parameter out of a request (on the assumption it is not already mapped to a form value). The global scope holds values in a global context - in J2EE, these are ServletContext attributes.
TypeString
Choices request (default)
session
global
Defaultsession
 


Copyright (c) 2001-2008 New Technology/enterprise Ltd.