I have a main page which has two regions .
Region 1 is running a taskflow with has a adf inline frame to render a pdf document( we are using third party renderer ).
Region 2 has a task flow which show details based on events happening on region 1 .
We want bi directional communication between region1 and region 2.
Now problem is whenevr wehenever we raise a contextual event and it gets porcessesed by event hadnlers it reloads ADF iframe content .Irrespective of the fact that
event is not meant of that region .Other components in the region1 stays same that is they are not gettinf refreshed .
Is this a configuration issue .
Note FRAME BRUSting is not working for me
Use partial page refresh, I think it should solve your problem. You can try with partialSubmit and partialTrigger or follow this link: http://www.adftips.com/2010/10/adf-ui-refreshing-page-or-region.html
Related
I have a Page and a Block both are created using Views.
I want to display this Block along with the Page i.e. on Left hand side, Page's content will be shown and on the Right hand side this block's content but at the same time I don't want to configure this block from the administrative settings. How can I achieve this ?
You can create 'page' template file for your view and use module_invoke() function to call your block into it.
Page template can use following pattern -
page--[path].html.twig
module_invoke() documentation -
https://api.drupal.org/api/drupal/includes%21module.inc/function/module_invoke/7
I'm trying to understand why omnibug sometimes show load events as click events. When I first type in the URL all tags are listed as click events. If I reload the same page all the tags are shown as load events? Why the difference? I see this from time to time with omnibug, does anyone know what is actually defined as click events vs load events. Sometimes a load instead of a click can be a big issue, but Omnibug doesn't seem very reliable in this regard...
There is a known/reported bug in omnibug relevant to this. I heard through the grapevine it has to do with how the browser pre-fetches and/or caches requests. This also happens with Google/Universal Analytics entries.
For Adobe Analytics (Omniture), you can ensure it really is a click event (s.tl call) by expanding the row and looking for the following two items(should both be present):
Link type: This represents the 2nd argument to s.tl(), and is the pe= query param in the request URL. It should have one of these 3 values: "lnk_o","lnk_e", or "lnk_d".
Link name: This represents the 3rd argument to s.tl(), and is the pev2= query param in the request URL.
If these two things are not present, then it will be recorded as a page view request (s.t()) in Adobe Analytics (Omniture).
I need to invoke a remote task flow deployed in different domain and open it in an inline frame(Pop up) in ADF. I followed and it's working with simple page. But when I try to invoke it in a pop up on click of button it is giving 404 Error.
Can some body help me with it please?
You can use ADF Dialog framework, but in this case it's a little complex.
First: Create a new taskflow in the consumer application and place a remote-taskflow-call as the default activity.
Second: Create a taskflow-call-activity formt the new taskflow on the consumer taskflow .
Third, in the properties of the second taskflow-call-activity under Behavior section you can configure set the Run As Dialog property to true, then configure the property Display Type to inline-popup to use an ADF popup or external-window to use a new browser window.
Finally: You must configure the action component that calls the second taskflow , in the properties of the action component (for example af:button) under the Behavior section, configure the Secondary Window you'll show, set the porperty UseWindow to true and configure the WindowEmbedStyle, WindowModalityType, and the popup window dimensions.
Here is a simple example about ADF Dialog Framework: http://andrejusb.blogspot.com/2013/03/reusable-adf-region-with-dialog.html
If you use parameters, you must send them to the First and from there to the Second taskflow.
Return values in this case are really complicated.
Hope it helps...
Rafael
In ADF, how to restart a taskflow region. I have a jsf page consisting of command links on one side and a region on the other. The region is always the same taskflow but I need to restart the taskflow back to defaut activity on click of any command link. RefreshCondition and refresh ifNeeded properties did not reset the task flow activity. Thanks.
Using the TF itself:
http://andrejusb.blogspot.be/2011/08/adf-dialog-framework-and-adf-task-flow.html
Using code in your backing bean:
https://forums.oracle.com/forums/thread.jspa?threadID=1013471
Have an input parameter for the taskflow,When you want to restart the region, change the value of input parameter.
The easiest option for acheving this:-
1. Create a dynamic region
2. Create a bounded taskflow with a single blank page (used for reset) and add to the dynamic region as default region
3. add other taskflows as you need and add command links to the left side
4. Enjoy...
add a "control flow" in your task flow starting and ending at same page. give some name to that "control flow".Suppose the value is "back" Now on every command link action pass that value. eg: .
//this would work.Let me know what happens
I have a App with nested layouts. The top level layout being at the App level and the second level at one of its region. When I show the second level layout I trigger an event to show the regions of the second level layout. This works fine the first time but when I swap the second level layout with some other view or layout and display it again it fails. The problem is recreated at http://jsfiddle.net/mzafer/VLY4t/
In the screen click on "Content1" followed by "Content 2". You'll see the second level layout's region displayed ("This is the actual region1 content" & "This is the actual region2 content"). Now click on "Content1" followed by "Content 2" again.. this time the actual content is not displayed but just the placeholders. During the second time the "thisView.region1" is undefined.
Any idea what is causing the region to get undefined ?
Thanks
Zafer
There are two problems with the code.
First, you should be using MyApp.vent.bindTo() instead of MyApp.vetn.bind() to ensure proper management of the event.
Second, you need to unbind from the event when the layout view is closed. What's happening now is that, because you don't unbind, you end up with a closed view (the first instance) still trying to access its region elements, which no longer exist.
In the future, you can detect this by appending this.cid to your console.log statement. For instance:
console.log('Responding to an event.', this.cid);
I tweaked your code to make it work, with two changes mentioned above: http://jsfiddle.net/VLY4t/14/