on 06-20-2011 5:24 PM
I created component which implements some interface.
IWDComponentUsage is defined as referencing that interface.
Component successfully create using call
.createComponent(component, container);
with String arguments of component name and project.
and placed to ViewContainer Element.
methods of controller is called,
but iView is not visible.
wDoInit() of iView not called.
iView is default.
question: for what reason iView is not visible?
thanks
Idhaya R
awnwer was resoving
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vladimir,
DC1 - component containing methods to be used or views to be used.
DC2 - Component using dc1 for methods or views.
If you want to use view from the dc1. After creating the view container element, from the window right click on the view container element and choose embed view and choose Embed Interface view of a Component Instance. After that , you will be able to see the list of used components in your dc2. In that choose the interface view of the component and Click on finish.
If you want any method to be called from the view, as far as i know wdDoModifyView method only is called. Put a message in it and test.
In case of problems revert back.
Best Wishes
Idhaya R
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It must be done programmatically,
not knowing which component will be used in design time.
Just that component must implement interface for which ComponentUseage is defined
(as reference to interface, not for concrete component)
for that CreateComponent( String, String ) method is used... so no prior TYPE knowledge is need
and... for some components it is working,
but not for my one, so I think why...
---
UI part of iView exist as default iView of window of component,
but - it is not called to be showed
so I thinking and asking - why so?
There is a [tutorial|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/b021025a-2908-2d10-f1b2-e5a947dc7a65] about components in the WD Java Demo Kit. Maybe you will find there the reason for your issue. I could imagine it has something to do with correct embedding of the component inside a window or creating the initial view assembly.
no, lifi cycle is standard - as with any component created by default.
>
> if I create application for testing and create View in Portal from it,
> all will be shown.
>
> but if I use createComponent(), ViewController is not create called,
> and not visible.
1) What does
hasActiveComponent()
return after you execute
createComponent
2) Is default set for interface view when you embed it into view container?
3) Is visibility set to visible for view container element?
I just tried simple scenario: interface, implementation, container DCs and it works fine for me, no issues with visibility on dynamically created component usage.
does the reused component have visible interface?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
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.