on 11-17-2014 7:20 AM
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
Hi Anurag,
I got the your answer very clearly expalined thanks very much ...
Regards,
Venkat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.