on 02-25-2009 6:36 AM
Hi Guys,
I am facing the following issue:
1. I have a Main Comp A that consists of 2 views V1 and V2.
2. V2 imbeds Comp B which in turn implements a series of other components that are not of importance.
3. When navigating from V1 to V2 a value (Incident Number) is passed to Comp B.
4. The first time round Comp B displays data that is relevant to the value that was passed in step 3.
5. All the other times after the first time navigation from V1 to V2 does NOT result in Comp B showing data based on the value that was passed... It seems like the value is passed, but Comp B does not "refresh" to show that data relevent to this passed value. Instead, it only displays the data as per the first value passed.
Is there any way of "refresing" Comp B so that it shows the "new" data ofter a value is passed?
Christiaan
Hi Christiaan
Two solution are there
1.During each navigation u can check whether the embedded component instance is active or not
as
if(wdThis.wdGetInstEjbModelCompComponentUsage().hasActiveComponent())
{
wdThis.wdGetInstEjbModelCompComponentUsage().deleteComponent();
wdThis.wdGetInstEjbModelCompComponentUsage().createComponent();
}
It will delete the complete instance and gives a completely new instance and again u will able to get data like "Incident Number"
But it is not feasible b'z it delete the complete instance
2. Very Simple user the parameter in your plugs (Outbound and Inbound ) and handle the things in different view
3. Using External context mapping explained in previous reply.
Hope Now the problem will be solved.
Best regards
Satish Kumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Christian,
Instead of passing the values directly from view 1 to view2 do it via controller.
You should proceed in this way:
value from view1 -> value set in context of controller -> value retrieved from the context of controller.
This will not have any effect after invalidating the view2 also. Just retrieve the values from Controller Context.
Regards
Chander Kararia
# Please close the thread once get the correct answer. Give rewards for answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
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.