on 07-08-2008 5:02 AM
Hi Experts,
Can you please explain the types of context available in webdynpro java.
Thanks in advance
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for providing valuble information.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.