When I have 3 dynamic regions on a jspx page, where every region loads taskFlow with jsff page.
One of the pages produces the contextual event, the other receives the contextual event and the 3rd one does nothing.
Then 3rd region is not refreshed. It works correctly.
But when I place eventMap in the pageDef of the jspx page, then all regions are refreshed no matter if they receive the contextual event.
This is not the right way. Why is that? Do you have an idea?
I am using JDev 126.96.36.199.0
Edited by: Nikolay Minchev on Dec 22, 2010 2:44 AM
I have the same issue that I am running into. From a region, I send a contextual event to the parent page. The parent page enables a button only, but ALL regions contained in the parent page are re-freshed, event if the refresh type of the region is default. I don't want the regions to be refreshed at all. Any word on this?
You can add another hidden region in your page associated with a task flow. The task flow should contain page fragment and then the pageDef of the fragment should have the event map in order to subscribe for the contextual event. In this way the region that is going to be refreshed in the hidden one. Then you can execute your business logic. The problem that you may encounter is that function that will handle the contextual event will be called in the context of the task flow associated with the hidden region.