cancel
Showing results for 
Search instead for 
Did you mean: 

Webdynpro Java UI Elements dynamically

Former Member
0 Kudos

Hi Exports,

I am new for Webdynpro Java

I have a one dought .

Questions>>>>>

1. Why we create UI Elements dynamically in WDDoModify() hook method console ?

2 . Why we are not creating dynamic UI Elements in Component controller?

3. Why we are not creating dynamic UI Elements in View controller and Compoent controller in WddoInit(), and Exit Method ?

Kindly please solve my questions ASAP with examples.

Regards

Venkatr

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Anurag,

I got the your answer very clearly expalined thanks very much ...

Regards,

Venkat

Former Member
0 Kudos

Hi Venkat,

Glad, you got the clarity

You can mark the thread as answered and close the thread now.

BR,

Anurag

Former Member
0 Kudos

Hi Venkat,

Before clarifying your doubt, I would recommend you to go through the hook methods of Web Dynpro Java and understand the significance of each method.

Please go through the below URLs to understand the concepts of Web Dynpro Java and the hook methods.

Methods Present in the View and Component controllers - Web Dynpro Java - SCN Wiki

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0ba2c45-0518-2a10-73be-9b785e10a...

Now, coming to your question, we create or modify UI Elements in WDDoModifyView method because

this is the hook method to modify the view layout just before rendering the View.

This method is designed for the creation of a UI tree or UI sub-tree at runtime in case if it is not possible to declare the UI at design time.

The Web Dynpro programming model recommends that UI elements can only be accessed by

code executed within the call to this hook method.

Moreover, this method is rendered each time whenever your View is called in the lifespan of a Web Dynpro component.

wdDoInit() and wdDoExit() hook methods have different significance and they are called just once per the life cycle of the Web Dynpro component.

Hope this will be helpful and will resolve your query!!

BR,

Anurag