cancel
Showing results for 
Search instead for 
Did you mean: 

Types of context

former_member225041
Participant
0 Kudos

Hi Experts,

Can you please explain the types of context available in webdynpro java.

Thanks in advance

Accepted Solutions (1)

Accepted Solutions (1)

PradeepBondla
Active Contributor
0 Kudos

Hi,

here is the blog on the same...

regards,

Pradeep

Answers (2)

Answers (2)

former_member225041
Participant
0 Kudos

Thanks for providing valuble information.

Former Member
0 Kudos

HI

A short digression on context theory

Every view always possesses a controller, which saves its local data in a context, known as the view context.

A UI element can be bound to this context only if it belongs to the same view. In general, however,the lifetime of a view context is too short, and its visibility too restricted for it to be suitable for saving data used across several views. This is where the standard context of the Web Dynpro application comes into play. This standard context belongs to the controller of the Web Dynpro component. Its lifetime is determined by the lifetime of the whole component. Moreover, this context can be made visible to some of the view controllers and not others. So that you do not have to copy

data explicitly between two contexts, you can map the relevant elements of the two contexts to each other. This is known as context mapping. Whenever an element of a view context is mapped to the corresponding element of the component context, the data is stored in the (global) component

context, not in the (local) view context.

Context

Structured storage for the controller Allways contains a single root node

Root Node

A single root value node every context tree starts with

Value Node

Contains a collection of Node Elements that have the same structure (attributes, child nodes)

Value Attribute

Attributes represent scalar types, Simple Types (Dictionary) or Java Native Types Attributes are leaves in the context tree

Model Node/Model Attribute

In contrast to value nodes which hold the data itself model nodes hold a reference to an external(model) object storing the data

Thanks,

Tulasi.Palnati