Refreshing Entire page vs Center Region
I have a web center portal application where i have a three column template. I have links (these are 'golinks' as of now) in the left region on click of which i am loading content in the center region. This content is coming from an ADF taskflow as part of shared library jar file. When i click on a left link, it is refreshing the entire region instead of just the center region, but the client wants only the center region to be refreshed. is there a way to achieve this using webcenter - adf taskflow approach or should i change the implementation to use an ADF pagetemplate/UIshell instead? Thanks for helping out.
Thanks for the reply Daniel. I should have been more clear with my code. Here is my scenario with code snippets:
In my template page (HIETemplate.jspx), code for left side link:
{code}
<af:goLink text="My Home" id="pt_gl1"
destination="/faces/oracle/webcenter/portalapp/pages/MyHome.jspx"/>
<af:commandLink text="My Home command link" id="pt_gl4"
partialSubmit="true"/>
{code}
MyHome.jspx page has the center content launched from an ADF library jar as below:
{code}
<af:pageTemplate viewId="/oracle/webcenter/portalapp/pagetemplates/HIETemplate.jspx"
value="#{bindings.pageTemplateBinding}" id="pt1">
<f:facet name="content">
<af:region value="#{bindings.onboardingbtf1.regionModel}" id="r1"/>
</f:facet>
{code}
I am not sure how would i change the goLink to a commandLink and launch the jspx as corresponding to the above code and even then i am not sure it would refresh only the center region.
Similar Messages
-
I am creating a web page that features an embedded chart made by MS Excel. I would like the chart to automatically update(refresh) to show viewers live information without having to refresh the entire page. I have found that there is a way to enable this through Excel but with my current subscription cannot access that feature. I am hoping that there is a way to achieve this using Adobe Muse CC. If it is not possible, I would like to know if there is a way to add a "refresh" button that refreshes only the embedded section(Excel Chart) of the page for viewers to use manually. Thank you for your help.
Update! The embedded spreadsheet is actually embedded using HTML rather than javascript.
-
I've been trying to view my site on multiple computers to gauge how wide I shoud make the banners and contents and it just occured to me how much simpler this would be if I could somehow just have the entire page center itself automatically. Is there some way to put a div tag or something around the entire contents so that the page appears in the center of all browsers? If so, is this a good way to acheive a wider scope of viewability?
The easist way is to create a "wrapper" div, which will contain all of your content.
So I would create this rule in your css
#wrapper {
width:900px;
margin:0px auto;
Then change this
<body>
<p>
to this
<body>
<div id="wrapper">
<p>
then change this:
</script>
</body>
to this
</script>
</div>
</body>
See if that works for you.
Gary -
Only iframe refresh not entire page
Guys
I am working on a requirement which is as follows:
upon clicking a link on quick launch a new page opens which has an iframe and displays some other page information [ say a report ]. now the page has couple of input fields [ actually these are part of masterpage ] so after me entering some data in those
input fields and clicking a refresh button, i want to load the iframe only not the entire page.
any idea how to achieve this ?
Thanks
BobHi Bob ,
According to your description, my understanding is that you want to create a button for only refreshing iframe not entire page.
You can do it with a function call:
<iframe name="Right" src="http://www.example.com"></iframe>
<button onclick="refreshIframe();">Refresh Iframe</button>
function refreshIframe() {
var ifr = document.getElementsByName('Right')[0];
ifr.src = ifr.src;
Reference:
http://stackoverflow.com/questions/11287050/iframe-reload-button
Also for iFrames in SharePoint 2013, you can have a look at the blog:
http://thinketg.com/iframes-in-sharepoint-2013/
http://sharepointking.wordpress.com/2013/07/24/allow-sharepoint-2013-site-to-load-in-iframe/
Best Regards,
Eric
Eric Tao
TechNet Community Support -
Make a region editable while keeping the entire page as read only
Hi All,
I have made an entire page as readonly via the following :
ClientUtil.setViewOnlyRecursive(pageContext, webBean);
Now I want the entire page to be readonly except for a sub tab used in the page.
<oa:subTabLayout id="subTabLayoutRn">
<ui:contents>
<oa:header id="tasksTabRN" extends="/oracle/apps/ozf/claim/webui/TasksTabRN"/>
</ui:contents>
<ui:subTabs>
<oa:subTabBar id="subTabBarsRN">
<ui:contents>
<oa:link id="tasksTabLink" text="Tasks">
<ui:primaryClientAction>
<ui:firePartialAction event="updateSubTab"/>
</ui:primaryClientAction>
</oa:link>
</ui:contents>
</oa:subTabBar>
</ui:subTabs>
</oa:subTabLayout>
This sub tab i want to display as editable. Can anyone kindly provide any suggestions on how to achieve this?
Thanks,
ArpitaHi Sushant,
Thanks for the reply.
I am using setViewOnlyRecursive on condition basis only i.e.
If (status of claim is close / cancelled / pending_approval)
then
ClientUtil.setViewOnlyRecursive(pageContext, webBean);
But I want to make tasksTabRN of the subTabLayout as editable if status of claim is pending_approval.
How do i code this condition ?
In the below code, we can get the subTabLayout control but what to do next?
if(webBean!=null)
OASubTabLayoutBean subTabLayoutBean = (OASubTabLayoutBean)webBean.findIndexedChildRecursive("subTabLayoutRn");
if(subTabLayoutBean!=null)
UINodeList childList = subTabLayoutBean.getIndexedNodeList();
if(childList!=null)
RenderingContext rdgCtxt = pageContext.getRenderingContext();
int size = childList.size(rdgCtxt);
OAWebBean child = null;
for(int i=0; i<size; i++)
child = (OAWebBean)childList.getUINode(rdgCtxt, i);
if(child!=null)
String name = child.getUINodeName();
if("tasksTabRN".equals(name))
// We can set the value of subTabLayoutBean as rendered or hideSubTab
// But how do i make this as editable.
//subTabLayoutBean. ????
break; -
Refresh "parent" page when closing a cfwindow
When displaying a cfwindow and I click the x in the top right, how can I refresh the "parent" page?
The cfwindow has a small form that collects data in a couple of fields then submits in the cfwindow to a page that inserts the request, sends and email and says the action is complete.
This is my cfwindow:
<cfajaximport tags="cfform,cfwindow">
<cfwindow
name="NewRequestWindow"
center="true"
closable="true"
draggable="false"
height="550"
width="700"
modal="true"
initShow="false"
refreshOnShow = "true"
resizable="false"
title="#WindowText#"
source="NewRequest.cfm?pk=#pk#" />
<a href="#" onclick="javascript:ColdFusion.Window.show('NewRequestWindow')"><img src="../includes/images/add.png" alt="Add" title="<cfoutput>#WindowText#</cfoutput>" width="16" height="16" border="0" /></a>
Thanks, CliffThis JavaScript will reload the current page:
document.location.reload()
From within your cfwindow it should work for the entire page.
copied from other post http://forums.adobe.com/message/3227674 -
Switching between tabs refreshes the page
Hi ,
I am new to the OA framework and i am trying to implement a page with a global region(Message Layout) and a Subtab region with 3 tabs. There is a table in the first tab which is dependent on the value i select in the global region above. I would be enabling PPR later to force the refresh of the table in the first tab, which is the default tab.
I have a controller set on the first tab region.I have observed that when i switch between the tabs(between 1&3 and then back to 1st), the processFormRequest and the processRequest are called each time i click on the first tab. Is this expected functionality? I was thinking that these functions get initialized only during the page rendering. Please advice if i might be doing something wrong here.
My major reference for the OA learning are the dev guide and several tutorials available on net.
Thanks for your time.
AnkitAnkit,
The functionality u mentioned can be controlled by setting the subtab mode.This is what javadoc says:
SubTabLayout Bean can be run in 2 Modes:
SUBTAB_REDIRECT_MODE
Process Request of only Selected Indexed Region is called
On Form Submission, we re-direct back to same page and rendering new Tab
Process Request of entire page is called on each Tab click
DataObjects are created as and when needed. So if user never clicks of a particular tab, the dataObject associated with that Tab is not created.
SUBTAB_FORM_SUBMISSION_MODE
Process Request of all the nested regions are called
Prcess Request is called only once.
We don't redirect back to same page
All the DataObjects are created in one shot and users them on form submission
To Switch between modes, do following:
subTabLayoutBean.setAttributeValue(MODE_ATTR, SUBTAB_FORM_SUBMISSION_MODE) : Full Mode
subTabLayoutBean.setAttributeValue(MODE_ATTR, SUBTAB_REDIRECT_MODE) : Partial Mode
I hope this helps!
--Mukul -
Contextual Event refresh/redraw issue between 2 regions (taskflow w/ jsffs)
Working on JDev 11.1.1.2.0
I have one jspx
which contains 2 regions - bounded taskflow with jsffs
Now, I want to communicate between region1 and region2
so, producer is : region2pageDef and consumer is: region1pageDef, and Handler is pointing to a Java Bean Data Control , listening for ActionEvent
Contextual events works fine as expected , but when region1 listenes the contextual event , at that time entire jsff gets refreshed / redrawn, why?
How contextual event works from the ADF side ,and what causes it to redraw the page fragment
ThanksWhen 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 11.1.1.3.0
Edited by: Nikolay Minchev on Dec 22, 2010 2:44 AM -
How to refresh the page/table after completion of taskflow in popup
Hi,
Scenario:
In main page, having an emp-table and popup(which contains taskflow as region). In taskflow, iam modifying the emp-table data and after successfully completion of taskflow, want to refresh the emp-table present in the main page. How can we do this...?
Note:
(1) In Taskflow last activity is 'taskflow-return', where iam commiting all the data.After this i want to refresh the emp-table,(pop-up closes when it reaches last activity).
(2) Tried PPR in bean code of main page, it refreshes, but before commiting.
Something like, Refreshing the entire page either closing/hiding of popup, will help......?
Regards.try with regionNavigationListener:
public void myRegionNavigationListener(RegionNavigationEvent event) {
String newViewId = event.getNewViewId();
if (newViewId == null) { // null new view id indicates the taskflow has ended !
refreshEmpTableSomehow();
}As one alternative, take a look at my last message from this thread:
Re: How to handle the "cancel" button and "close" icon of a popup ?
Edited by: Cvele_new_account on Oct 5, 2012 12:19 AM -
Power BI Sites Error
We were unable to load the Site. Refresh the page to try again
When opening Power BI Sites with internet explorer, in certain security configurations you may run into the above error. While we are looking into resolving this, please see the following workaround:
From the Tools menu, select internet options.
On the security tab uncheck the "Enable Protected Mode" checkbox form the relevant Zone (Intranet/Internet)
Remove all entries to *.powerbi.com from trusted sites or/and local intranet sites
On the advanced tab, uncheck the "Enable enhanced protected mode" (if you made a change here it will require a restart of the machine)
Restart and try again (if not changes done in the last step, just restart the browser)Hi
Any further debugging tips? I upgraded from IE9 to IE11 on my Win7 machine to try get Q&A working, it broke the entire PowerBI site for me -
Passing javascript values to jsp without refreshing the page
Hi,
How do u pass a value of a javascript variable to the jsp without refreshing the page ?
For example, a file called test.jsp in which a javascript variable x contains value 254. I need to pass the value of x to a method declared in test.jsp(same page).Hi Mona,
when i say refresh i do mean a blink of the browser.
This is a small example i wrote to show you how you can pass javascript varables to JSP variables. If you don't want the refresh to be seen by the user just include this code in a hidden frame on a page and instead of refreshing the entire page, refresh the hidden frame.
i have to say, i didn't test the code so i don't guarantee it's flawless.
if you need an more detailed example just tell me, i'll create one, but it won't be for today :)
<html>
<head>
<title>Log in to the system</title>
</head>
<body>
<script>
//we retrieve the parameter 'user' from the URL
<%
String username = request.getParameter("user");
%>
var user = "<%= username%>";
//check if there is a username in the URL
if(user=="null")
//there is no username so we log the person in as a guest
user="guest";
//we refresh the page and set the user parameter to 'guest'
//the parameter now contains the javascript variable 'user'.
//The parameter can be read by the JSP (see the top op this script).
//This way we gave the javascript variabele to the JSP variable
location="login.jsp?user="+user;
else if(user=="guest")
{ alert("Welcome "+user+", I hope you like this site"); }
else
{ alert("Welcome "+user+", I'm glad to see you again"); }
</script>
</body>
</html> -
Is there a way to force adf to not refresh the page after a certain action?
Hi Adf'rs
Another question for ya.
I'm not sure how possible this is? But I have piece of javascript code that runs after the adf page is loaded. I then execute something in my javascript when the user cliciks a NON ADF button (just an html button). At that point, adf is refreshing the entire page even though I don't want it to. Is there a way to tell adf not to do this?Hi Puthanampatt,
Thank you soooo much!! That did the trick!! Now, when I submit my javascript, it only refreshes the components that my javascript manipulates, and that container does not reload!!!
Thanks again!!! -
Refresh only page item while submitting data from the popup window
Hi All,
I'm pretty new to Apex .....
I have a form with text items as first few entries and then a radio button list and few text items again. On selecting certain radio button I have a popup window which acts as an interface for the next text item in the calling page. The purpose of having the popup window is that the text item following the radio button takes the input with certain character delimiters along with the data. Instead of using delimiters while entering the data I want a meaningful data to be keyed in the popup window and all the string operation to be done as a background process. I have been successful this far. I'm using the below javascript on click of the submit button.
javascript:doSubmit();
window.opener.doSubmit('REFRESH');
window.close();
On doing this I'm losing the values submitted for the items prior to the radio button(including radio button). Please note, I have a dynamic action set on page load to reset the values. Is it possible to refresh just the page item from the popup window.
Also, I tried excluding the window.opener.doSubmit('REFRESH'); from the above javascript. It sets the item with the expected value (viewed it in the session items, however I would like to view the concatenated string on my calling page) but following this there is an insert operation which uses all the necessary items in the form. All values except the value returned from the popup window is populated into the table. Am I missing something.
Any help in this regard is appreciated.
Thank you!!!
Regards,
GaneshValue set using Javascript is only in your browser page but is not yet available in the session. This is why the report doesn't return the expected output.
Before refreshing the report you would need to set the session state of this item.
You can set it after you assign the item a new value or before the report is refreshed
For Interactive Reports, this is available built in
you can go to Report Attributes >Advanced Attributes -> Page Items to Submit and specify P2_X1 for the field(and any other page item that the report is dependent on)
For standard reports, you can create a Dynamic Action that is triggered "before refresh" of the report's region, and choose PLSQL as the action types, give a dummy BEGIN NULL END; for the code and specify this item name in the page item to submit field so that it sets the items's value in session. -
Put a child page into a region in a parent page? (APEX 2.2.0)
Hi, all,
Thanks so much for all of your help previously.
I want to have the entire contents of child page inserted into a region of parent page. The child page uses the "Empty Template" template and has an report region that uses the "No Template" template.
The parent page has a region containing a single div into which I want to insert the child page. If I do this using JavaScript and htmldb_Get object, inserting the result of the AJAX request into the DIV, I get what I want. I can't figure out how to preload the page into the region.
I've tried using the URL region, but I keep getting
ORA-29273: HTTP request failed
ORA-06512: at "SYS.UTL_HTTP", line 1674
ORA-12545: Connect failed because target host or object does not existwhen I enter the URL for the child page.
I can't use UTL_HTTP.REQUEST, either.
select utl_http.request('http://myserver/f?p=100:100:12345678901234')
from dual;I get roughly the same error. (I copy and paste the same URL that I use for the AJAX request. I can also type that URL into a browser and get the page.)
I can get both Google's and Oracle's Web sites this way.
My other option is to render the entire page to a string, store it in a VARCHAR2 / CLOB, and output it to the screen. Is there a way (maybe using WWV_FLOW) to render a page to a string?
I want to avoid using DHTML when it's not needed and I don't think that I would need it to initially load the page.
Thanks!Carl,
(Sorry about the reply gap.)
As best as I can tell, iframes can't auto-fit their contents without JavaScript. I've also heard mixed things about iframes and accessibility. The contents of the iframe also don't inherit the CSS definitions from the parent frame. (None of those may be good enough reasons to not use iframes, but I am totally unfamiliar.)
There are workarounds for all of those problems, but I'm just as inclined to write some PL/SQL function that generates my page for me and call that from a PL/SQL region, since the page is so simple. It might take me less time to write the PL/SQL function and PL/SQL region than it will to make the iframes look pretty.
Thanks for the reply!
Message was edited by:
Don_84
Well, that's odd. When I changed my authentication scheme from what I was using to the database authentication (the DAD one), the utl_http.request call works, as does the URL region. So the authentication is getting in the way. I wonder if there is a (elegant) way around that?
Message was edited by:
Don_84
Is WWV_FLOW.SHOW documented? In a PL/SQL region, I can call
WWV_FLOW.SHOW(P_INSTANCE => '&SESSION.', P_FLOW_ID => '100', P_FLOW_STEP_ID => '1000');where 100 is my app number and 7000 my page number, but it only works if I have no other regions. Otherwise, the page entirely fails to render. -
Image Slide In Moves Entire Page Contents
Hello,
I'm having an issue with a lightbulb image I want to make slide down on page load (using Spry effect "slide"). After it slides in, I want to have it swap to a "lit" lightbulb image when moused over. I currently have the image swap working correctly in IE 7, Firefox, and Chrome. BUT instead of just the bulb sliding in, the entire page is sliding in.
I do have several different position declarations for different page elements, so perhaps I just have too much going on!
Here's the webpage: http://www.artistnatalieblake.com/daubie/index.html
Here's my CSS for positioning of all the page elements:
#background { position:fixed; top:0; left:0; height:100%; width:100%; } #btns { float:left; margin:10px 0; width:650px; } #bulb { } #bulbslide { display:none; float:left; position:absolute; margin:-100px 0 0 -10px; } #content { position:fixed; z-index:0; } #footer { color:#ccc; font-family:'HandelGothicDMedium'; font-size:.8em; letter-spacing:.1em; padding:10px 0; text-align:center; width:600px; } #info { color:white; float:left; font-family:'HandelGothicDMedium'; text-align:center; width:500px; } #logo { margin-top:15px; vertical-align:top; } #main { margin-left:175px; } #pagelabel { float:left; left:131px; position:absolute; top:400px; } #textpane { background: transparent url(images/white75.png); float:left; padding:25px; width:600px; } #textpane p { position:relative; z-index:1; zoom:1; }
Here is my relevant scripting created by Dreamweaver:
<script src="SpryAssets/SpryEffects.js" type="text/javascript"></script>
<script type="text/javascript">
function MM_effectSlide(targetElement, duration, from, to, toggle)
Spry.Effect.DoSlide(targetElement, {duration: duration, from: from, to: to, toggle: toggle});
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
</script>
And relevant HTML:
<body onLoad="MM_preloadImages('images/bulb.png','images/bulblit.png');MM_effectSlide('bulbslid e', 4000, '0%', '100%', false)"> <div id="bulbslide" onmouseover="MM_swapImage('bulb','','images/bulblit.png',1)" onmouseout="MM_swapImgRestore()"> <img id="bulb" src="images/bulb.png" alt="lightbulb" width="193" height="489" id="bulb" /> </div>
Thanks for any suggestions!This is one of those times when I have to say, "just because you CAN do something, doesn't mean you should."
If you disable CSS in your browsers, the bulb image swap behavior works just fine. The various other problems with your page layout stem from trying to be too cute for cute's sake.
Do not use positioning for primary layouts. Stick with plain old default CSS positioning (unspecified or static) for 98% of your layouts. When you start messing around with Fixed and Absolute positioning without a complete understanding of what they do, you will invariably create problems where none should exist.
For the time being, revert your CSS to default (no positioning, no z-indexes). When you get the layout to work in all browsers, then you can start introducing other advanced features one at a time.
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
http://alt-web.com/
http://twitter.com/altweb
Maybe you are looking for
-
Want to load an xml document directly into an Oracle table
From the Oracle XML Applications book pg: 106/107 there is an example where it inserts into a Oracle table from the xml_documents table. What I would like to do is insert directly from the xml document and was able to but not able to get rid of the i
-
How do I assign a user ID to the purchasing group so it shows up on table..
How do I assign a user ID to the purchasing group so it shows up on table T024? I'm trying to create a STO but am recieving the following error Configuration of User ID is not set up in purchasing group T024 table Message no. 00398 Diagnosis
-
hello all, for my application i have to notify the change of date. when ever date changes i have to give message like date changed.this one i am doing with JSP. if anybody knows plz tell me. it is very urgent. THANKS IN ADVANCE regards vasu
-
Invalid Launch Image in Flash Builder 4.6
I've been making updates and releases to my iPad app for the last several months, but just recently, I started receiving this email back from Apple: iPhone 5 Optimization Requirement - Your binary is not optimized for iPhone 5. As of May 1, all
-
hello, when i try to create a new piece or try to start a new piece of music on garageband a box pops up and says file could not be opened. I need a quick and helpful responce please. thankyou