cancel
Showing results for 
Search instead for 
Did you mean: 

Java WebDynpro context mapping best practices

Former Member
0 Kudos

Hi Friends,

the data to provide in context for every view controller and component controller.. can bemaintained in different ways.

1. to map the view controller fields with component controller only when it is required at both the places to be accessed.

rest all fields which do not need to be accessed at both the places may not be maped.

or:- Whats the advantage of not mapping the fields between view controllers and component controller?

2.

instead of fields as value attributes, one Value Node may be used as a grouping for a particular group of fields. is is best practice to group the fields into value node as per screen grouping?

for example screen has three sub parts, so three value node.. and each value ndoe may contain different value attributes. which scenario should be consider as best practice?

Thanks!

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member182372
Active Contributor
0 Kudos

Hi Nav,

1) Advantage of not mapping is perfomance;

2) WD is model-view-controller paradigm driven framework. So, you design your context accroding to the data model you use. Usually it means - business object with properties. If you need to create some "helper" attributes, like visibility or enable flags, group them to one node with cardinality 1..1 to improve granularity.

Best regards, Maksim Rashchynski.

Former Member
0 Kudos

Thanks Maksim!

Former Member
0 Kudos

<i>1) Advantage of not mapping is perfomance;</i>

Very weak argument. There is no any significant performance lost when mapping used (I bet you save less then a percent comparing to "direct" access).

Just put simple: your business data originates from controller. You must to show it on view, hence the need for mapping.

Also view may require certain context nodes just to setup and control UI elements. Declare these nodes directly in view controller and you'll need no mapping in this case.

Valery Silaev

EPAM Systems

http://www.NetWeaverTeam.com

Former Member
0 Kudos

Hi Valery Silaev and Maksim,

so, what I conslude is that I can use context or direct value attributes.. as per the requirement without keeping in mind about peformance.

2. I should use Nodes, if I need some UI controls etc to be handled on Node level.

Thanks!