ADF Question: included jsp action firing after page load

Hi all,
I am using JDeveloper 10.1.3.3 and ADF + BC.
Here is another interesting situation for you. I have a page with an included jsp at the top with tabbed navigation.
My page is for entering an order. Users can have multiple orders "open" in other tabs at the same time. Users can also have many other non-order pages opened in tabs. We are using the same View Objects (Entity Based) along with Transient View Objects on each order.
Each order tab needs to "remember" the orderId so that when the user clicks on a tab, the appropriate rows are set in the order that is to be "opened". This occurs in a tab's action() - setting the orderId and forwarding to the appropriate page (if different) or reloading the same page with the new id.
On page load we try to get the tab's orderId and load that as the current row of all of our view objects. This should make it seem like they are all concurrently running.
The problem is when going from order to order, once the tab is clicked, the page's OnPageLoad method runs BEFORE the action of the tab click is processed. Therefore the order that loads thinks it is the previous order, and does not load the correct View Object rows.
Does anyone know how we can force the tab action to occur before the page load so that we can get the proper orderId?
Thanks,
Heather

Thanks for your speedy reply Frank,
We are using the onPageLoad from the OnPageLoadBackingBeanBase which implements the PagePhaseListener.
In this we are doing something like:
        if (isPostback()) {
            String selectedTabNum =
                EL.getAsString("#{TabCounter.currentSelectedTab}");
            String test = EL.getAsString("#{TabCounter.tabOrderId" + selectedTabNum + "}");
            System.out.println("tab num " + selectedTabNum);
            System.out.println( "testing " + test );
        }our tab counter (a session bean) has these two methods (among others):
    public void setCurrentSelectedTab(int currentSelectedTab) {
        this.currentSelectedTab = currentSelectedTab;
        for(int i=1;i<= 20; i++) {
            EL.set(BACKING_START+"selectedTab"+i+"}", false);
        EL.set(BACKING_START+"selectedTab"+currentSelectedTab+"}", true);
    public String getNextAvailableTab () {
        for(int i=2;i<=20;i++) {
            boolean isTab = (new Boolean (String.valueOf(EL.get(BACKING_START+"render"+i+"}")))).booleanValue();
            if (!isTab) {
                return String.valueOf(i);
        return "0";
    }our tab header (request bean) has this method as the action for clicking a tab:
        System.out.println("handleTabNavigation");
        String componentId = actionEvent.getComponent().getId();
        String selectedTab = componentId.replaceFirst("tab","");
        int selectedTabNum = new Integer(selectedTab).intValue();
        EL.set("#{TabCounter.currentSelectedTab}", selectedTabNum);
        String tabType = EL.getAsString("#{TabCounter.tabType"+selectedTabNum+"}");
        if (tabType.equals("regular")) {
            String orderId = EL.getAsString("#{TabCounter.tabOrderId"+selectedTabNum+"}");
            EL.set("#{processScope.unfinishedHeaderId}", orderId);
        } else if (tabType.equals("standing")) {
            String orderId = EL.getAsString("#{TabCounter.tabOrderId"+selectedTabNum+"}");           
        }Thanks,
Heather

Similar Messages

  • How to execute a method after page Load?

    My question is very similar to what was discussed in following thread:
    How to execute a method after page Load?
    My requirement is that I want to run a method in backing bean of a page, immediately after the page gets loaded. In that method I want to invoke one of the method action included in the pagedef of this page, conditionally.
    I tried using the approach given in the above thread, i.e to use <f:view afterPhase="#{backing_security.setPermPriv}">, but the problem is that our page is not using 'f:view' , so I explicitly added one f:view with afterPhase property set , but it is not working, page it self is not getting loaded, it is throwing the error:
    Root cause of ServletException.
    java.lang.IllegalStateException: <f:view> was not present on this page; tag [email protected]e8encountered without an <f:view> being processed.
         at org.apache.myfaces.trinidad.webapp.UIXComponentELTag.setProperties(UIXComponentELTag.java:108)
         at javax.faces.webapp.UIComponentClassicTagBase.findComponent(UIComponentClassicTagBase.java:733)
         at javax.faces.webapp.UIComponentClassicTagBase.doStartTag(UIComponentClassicTagBase.java:1354)
         at org.apache.myfaces.trinidad.webapp.UIXComponentELTag.doStartTag(UIXComponentELTag.java:71)
         at oracle.adfinternal.view.faces.taglib.UIXQueryTag.doStartTag(UIXQueryTag.java:41)
         at oracle.adfinternal.view.faces.unified.taglib.UnifiedQueryTag.doStartTag(UnifiedQueryTag.java:51)
         at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:50)
         at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:262)
         at oracle.jsp.runtime.tree.OracleJspNode.execute(OracleJspNode.java:89)
         at oracle.jsp.runtimev2.ShortCutServlet._jspService(ShortCutServlet.java:89)
         at oracle.jsp.runtime.OracleJspBase.service(OracleJspBase.java:29)
         at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:665)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:387)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:822)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:746)
    Please help to resolve this issue, or am I doing anything wrong?

    Hi,
    I assume that your view is a page fragment and here - indeed - the f:view tag cannot be used. If you use ADF then one option would be to use a custom RegionController on the binding layer to listen for the render phase to invoke the method. Another option would be to use a hidden field (output text set to display="false" and have this component value referencing a managed bean property. The managed bean property's getter method can now be used to invoke the method you want to run upon view rendering
    Frank

  • WLS 9.2.2: JSP recompile for every page load with JAR'ed tag files

    I have a small custom tag library of three tag files. With the server running in development mode and the tag files in a JAR (included in WEB-INF/lib), the server appears to be doing a JSP recompile on every page load. However, it only compiles on the first page load if the tag files are included in WEB-INF/tags (no JAR). Also, running the server in production mode with the JAR'ed tag files avoids the recompile for every page load.
              Is that how the server should behave?
              For whatever it's worth, I'm also using Eclipse 3.3.2 with WTP and WebLogic Server Tools 1.1.2. The server is running the Sun JVM (1.5_10).

    Vikram,
              I went back and created a simple example to test. Below I'm posting the Java source code generated from the two relevant files: index.jsp, and hello.tag.
              __index.java:
              package jsp_servlet;
              import java.io.*;
              import java.util.*;
              import javax.servlet.*;
              import javax.servlet.http.*;
              import javax.servlet.jsp.*;
              import javax.servlet.jsp.tagext.*;
              public final class __index extends weblogic.servlet.jsp.JspBase implements weblogic.servlet.jsp.StaleIndicator {
              private static void _releaseTags(javax.servlet.jsp.tagext.JspTag t) {
              while (t != null) {
              if(t instanceof javax.servlet.jsp.tagext.Tag) {
              javax.servlet.jsp.tagext.Tag tmp = (javax.servlet.jsp.tagext.Tag)t;
              t = ((javax.servlet.jsp.tagext.Tag) t).getParent();
              try {
              tmp.release();
              } catch(Exception ignore) {}
              else {
              t = ((javax.servlet.jsp.tagext.SimpleTag)t).getParent();
              public boolean _isStale(){
              boolean stale = staticIsStale((weblogic.servlet.jsp.StaleChecker) getServletConfig().getServletContext());
              return _stale;
              public static boolean _staticIsStale(weblogic.servlet.jsp.StaleChecker sci) {
              if (sci.isResourceStale("/index.jsp", 1207926672370L ,"9.2.2.0","America/Denver")) return true;
              if (sci.isResourceStale("/null", 1207926783245L ,"9.2.2.0","America/Denver")) return true;
              return false;
              private static void _writeText(javax.servlet.ServletResponse rsp, javax.servlet.jsp.JspWriter out, String block, byte[] blockBytes)
              throws java.io.IOException {
              if (!_WL_ENCODED_BYTES_OK || _hasEncodingChanged(rsp)){
              out.print(block);
              } else {
              ((weblogic.servlet.jsp.ByteWriter)out).write(blockBytes, block);
              private static boolean _hasEncodingChanged(javax.servlet.ServletResponse rsp){
              String encoding = rsp.getCharacterEncoding();
              if ( "ISO-8859-1".equals(encoding) || "Cp1252".equals(encoding) || "ISO8859_1".equals(encoding) || "ASCII".equals(encoding) ){
              return false;
              if (_WL_ORIGINAL_ENCODING.equals(encoding)) {
              return false;
              return true;
              private static boolean WLENCODED_BYTES_OK = true;
              private static final String WLORIGINAL_ENCODING = "ISO-8859-1";
              private static byte[] _getBytes(String block){
              try {
              return block.getBytes(_WL_ORIGINAL_ENCODING);
              } catch (java.io.UnsupportedEncodingException u){
              WLENCODED_BYTES_OK = false;
              return null;
              private final static String wlblock0 ="<!--\n * $Id$\n-->\n \n<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \n\t\t\"http://www.w3.org/TR/html4/loose.dtd\">\n \n";
              private final static byte[] wlblock0Bytes = getBytes( wl_block0 );
              private final static String wlblock1 =" \n \n\t";
              private final static byte[] wlblock1Bytes = getBytes( wl_block1 );
              private final static String wlblock2 ="\n";
              private final static byte[] wlblock2Bytes = getBytes( wl_block2 );
              private final static String wlblock3 ="\n\n<html>\n<head>\n\t<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\" />\n\n\t<title>Tag File Test</title>\n</head>\n<body> \n\t";
              private final static byte[] wlblock3Bytes = getBytes( wl_block3 );
              private final static String wlblock4 ="\n</body>\n</html>";
              private final static byte[] wlblock4Bytes = getBytes( wl_block4 );
              static private javelin.jsp.JspFunctionMapper jspxfnmap = javelin.jsp.JspFunctionMapper.getInstance();
              public void _jspService(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
              throws javax.servlet.ServletException, java.io.IOException {
              javax.servlet.ServletConfig config = getServletConfig();
              javax.servlet.ServletContext application = config.getServletContext();
              javax.servlet.jsp.tagext.JspTag _activeTag = null;
              Object page = this;
              javax.servlet.jsp.JspWriter out;
              javax.servlet.jsp.PageContext pageContext = javax.servlet.jsp.JspFactory.getDefaultFactory().getPageContext(this, request, response, null, true , 8192 , true );
              response.setHeader("Content-Type", "text/html; charset=ISO-8859-1");
              out = pageContext.getOut();
              javax.servlet.jsp.JspWriter _originalOut = out;
              javax.servlet.http.HttpSession session = request.getSession( true );
              try {;
              response.setContentType("text/html; charset=ISO-8859-1");
              {_writeText(response, out, _wl_block0, _wl_block0Bytes);}
              {_writeText(response, out, _wl_block1, _wl_block1Bytes);}
              {_writeText(response, out, _wl_block2, _wl_block2Bytes);}
              {_writeText(response, out, _wl_block3, _wl_block3Bytes);}
              jsp_servlet._tags.__hello_tag __tag0 = null ;
              int __result__tag0 = 0 ;
              if (__tag0== null )__tag0 = new jsp_servlet._tags.__hello_tag ();
              __tag0.setJspContext(pageContext);
              __tag0.setParent(null);
              activeTag=_tag0;
              __tag0.doTag();
              {_writeText(response, out, _wl_block4, _wl_block4Bytes);}
              } catch (Throwable __ee){
              if(!(__ee instanceof javax.servlet.jsp.SkipPageException)) {
              while ((out != null) && (out != _originalOut)) out = pageContext.popBody();
              releaseTags(activeTag);
              pageContext.handlePageException(__ee);
              __hello_tag.java:
              package jsp_servlet . _tags ;
              import java.io.*;
              import java.util.*;
              import javax.servlet.*;
              import javax.servlet.http.*;
              import javax.servlet.jsp.*;
              import javax.servlet.jsp.tagext.*;
              public final class __hello_tag extends javax.servlet.jsp.tagext.SimpleTagSupport {
              private static void _releaseTags(javax.servlet.jsp.tagext.JspTag t) {
              while (t != null) {
              if(t instanceof javax.servlet.jsp.tagext.Tag) {
              javax.servlet.jsp.tagext.Tag tmp = (javax.servlet.jsp.tagext.Tag)t;
              t = ((javax.servlet.jsp.tagext.Tag) t).getParent();
              try {
              tmp.release();
              } catch(Exception ignore) {}
              else {
              t = ((javax.servlet.jsp.tagext.SimpleTag)t).getParent();
              public static boolean _staticIsStale(weblogic.servlet.jsp.StaleChecker sci) {
              if (sci.isResourceStale("/META-INF/tags/hello.tag", 1207926783175L ,"9.2.2.0","America/Denver")) return true;
              return false;
              protected static final String tagxTagInfo = "-84,-19,0,5,116,0,5,104,101,108,108,111,116,0,29,106,115,112,95,115,101,114,118,108,101,116,46,95,116,97,103,115,46,95,95,104,101,108,108,111,95,116,97,103,116,0,5,101,109,112,116,121,112,112,112,112,119,5,0,0,0,0,3,116,0,10,106,115,112,67,111,110,116,101,120,116,119,1,0,116,0,28,106,97,118,97,120,46,115,101,114,118,108,101,116,46,106,115,112,46,74,115,112,67,111,110,116,101,120,116,113,0,126,0,4,119,1,1,112,119,2,1,0,112,112,116,0,7,106,115,112,66,111,100,121,119,1,0,116,0,36,106,97,118,97,120,46,115,101,114,118,108,101,116,46,106,115,112,46,116,97,103,101,120,116,46,74,115,112,70,114,97,103,109,101,110,116,113,0,126,0,6,119,1,1,112,119,2,1,0,112,112,116,0,6,112,97,114,101,110,116,119,1,0,116,0,31,106,97,118,97,120,46,115,101,114,118,108,101,116,46,106,115,112,46,116,97,103,101,120,116,46,74,115,112,84,97,103,113,0,126,0,8,119,1,1,112,119,2,1,0,112,112,119,4,0,0,0,0,112,112,";
              protected JspContext jspContext ;
              public void setJspContext ( JspContext ctx ){
              super . setJspContext ( ctx );
              java.util.List nested = null ;
              java.util.List atBegin = null ;
              java.util.List atEnd = null ;
              this.jspContext = new javelin.jsp.JspContextWrapper(ctx, nested, atBegin, atEnd, null);
              }public JspContext getJspContext() {
              return this.jspContext;
              private java.io.Writer jspxsout;
              private javax.servlet.jsp.tagext.JspTag _activeTag;
              private static void _writeText(javax.servlet.ServletResponse rsp, javax.servlet.jsp.JspWriter out, String block, byte[] blockBytes)
              throws java.io.IOException {
              if (!_WL_ENCODED_BYTES_OK || _hasEncodingChanged(rsp)){
              out.print(block);
              } else {
              ((weblogic.servlet.jsp.ByteWriter)out).write(blockBytes, block);
              private static boolean _hasEncodingChanged(javax.servlet.ServletResponse rsp){
              String encoding = rsp.getCharacterEncoding();
              if ( "ISO-8859-1".equals(encoding) || "Cp1252".equals(encoding) || "ISO8859_1".equals(encoding) || "ASCII".equals(encoding) ){
              return false;
              if (_WL_ORIGINAL_ENCODING.equals(encoding)) {
              return false;
              return true;
              private static boolean WLENCODED_BYTES_OK = true;
              private static final String WLORIGINAL_ENCODING = "ISO-8859-1";
              private static byte[] _getBytes(String block){
              try {
              return block.getBytes(_WL_ORIGINAL_ENCODING);
              } catch (java.io.UnsupportedEncodingException u){
              WLENCODED_BYTES_OK = false;
              return null;
              private final static String wlblock0 ="\n<center><h1>Hello World</h1></center>";
              private final static byte[] wlblock0Bytes = getBytes( wl_block0 );
              static private javelin.jsp.JspFunctionMapper jspxfnmap = javelin.jsp.JspFunctionMapper.getInstance();
              public void doTag() throws JspException, java.io.IOException {
              javax.servlet.jsp.PageContext pageContext = (javax.servlet.jsp.PageContext) getJspContext();
              javax.servlet.http.HttpServletRequest request = (javax.servlet.http.HttpServletRequest) pageContext.getRequest ();
              javax.servlet.http.HttpServletResponse response = (javax.servlet.http.HttpServletResponse) pageContext.getResponse();
              javax.servlet.http.HttpSession session = pageContext.getSession();
              javax.servlet.ServletContext application = pageContext.getServletContext();
              javax.servlet.ServletConfig config = pageContext.getServletConfig();
              javax.servlet.jsp.JspWriter out = jspContext.getOut();
              javax.servlet.jsp.tagext.JspTag _activeTag = null;
              try {
              {_writeText(response, out, _wl_block0, _wl_block0Bytes);}
              } catch ( Throwable t ){
              if( t instanceof javax.servlet.jsp.SkipPageException )
              {throw (javax.servlet.jsp.SkipPageException)t;}
              if( t instanceof java.io.IOException )
              {throw (java.io.IOException)t;}
              if( t instanceof IllegalStateException )
              {throw (IllegalStateException)t;}
              if( t instanceof javax.servlet.jsp.JspException )
              {throw (javax.servlet.jsp.JspException)t;}
              throw new javax.servlet.jsp.JspException(t);
              finally {
              ((javelin.jsp.JspContextWrapper)jspContext).syncEndTagFile();
              Edited by Stephen Davison at 04/11/2008 9:02 AM

  • Content getting disappear after page load in safari

    Content of the webpage get dissappear after the page load in safari. I am currently using IOS7.1 in my ipad mini
    Url:
    http://wealthforumezine.net/ThinkBIGBusinessPerspective230314.html#.UzAF2PmSyrM
    http://wealthforumezine.net/FundFocusSBI180314.html#.UzAF6fmSyrM
    the website is devloped using HTML 4.
    Thanks in advance

    I have a similar problem in Leopard with Safari not loading pages correctly. I'm trying to troubleshoot now, so let me ask you some questions to see if its the same problem as mine.
    Are you using an administrator account? On my machine it only acts up on non-administrator account.
    Does Firefox or another web browser load the pages correctly? On my machine it has similar problems to Safari.

  • Spry Accordion - Tabs open and then close after page loads

    I am using a Spry Accordion menu driven from a database.
    The menu opens up during the page load and then closes.
    I'm using SpryAccordion.js 1.6.1
    And to open a preset tab, I'm using:
    <script type="text/javascript">
    <!--
    var Accordion1 = new Spry.Widget.Accordion("Accordion1",{useFixedPanelHeights:false, enableAnimation: false, defaultPanel: 0 });
    //-->
      </script>
    But, all of the tabs open and then close on page load.
    My page:   http://www.texashotjobs.us/00C01.aspx
    Any fix for this??
    Thanks, Ron

    Well to both thanks.  Actually I wasn't disappointed as I had a two part question...
    I tested the 1.6 JS and remembered that I had to modify the 1.4 so that tabs actually would link.  So I reverted back to 1.4.
    So, going to 1.6 fixed the open panel on load but "unfixed" the panel tab from linking.....
    So changing this in the 1.6 js fixed the link issue as well:
    Spry.Widget.Accordion.prototype.onPanelTabClick = function(e, panel)
        if (panel != this.currentPanel)
            this.openPanel(panel);
        else
            this.closePanel();
        if (this.enableKeyboardNavigation)
            this.focus();
    //    if (e.preventDefault) e.preventDefault();
    //    else e.returnValue = false;
    //    if (e.stopPropagation) e.stopPropagation();
    //    else e.cancelBubble = true;
    I t appears everything is working........
    Thanks, Ron Gaddis
    Visual Reality Productions

  • Cpu not releasing after page load

    I'm a newby to flash. I need to show movie clips based on the
    XML data. The problem is after page is loaded with flash file,
    still CPU is not getting released. What am I doing wrong? After
    page is loaded with the flash file, I want the CPU to go its
    original utilization.
    Here is the sample code.
    import flash.geom.Matrix;
    import flash.geom.Point;
    import flash.display.*;
    import flash.geom.*;
    import mx.services.*;
    _root.lineStyle(1, 0x0000FF, 100);
    var mcMapContent = map_sp.content;
    var my_xml:XML = new XML();
    my_xml.ignoreWhite = true;
    var number_fmt:TextFormat = new TextFormat();
    number_fmt.font = "NumFont";
    number_fmt.size = 4;
    var fileName:String;
    if (!fileName)
    fileName = "test1";
    if (_global.styles.List == undefined)
    _global.styles.List = new mx.styles.CSSStyleDeclaration();
    _global.styles.List.setStyle("themeColor", 0x3366CC);
    _global.styles.List.setStyle("color", 0x000000);
    _global.styles.List.setStyle("backgroundColor", 0xFFFFFF);
    _global.styles.List.setStyle("borderStyle", "solid");
    _global.styles.List.setStyle("borderColor", 0x000000);
    _global.styles.List.setStyle("rolloverColor", 0x5a6970);
    _global.styles.List.setStyle("scrollTrackColor", 0xEEEEEE);
    _global.styles.List.setStyle("selectionColor", 0xCCCCCC);
    my_xml.load("XML/" + fileName + ".xml");
    my_xml.onLoad = function(success)
    var currentNode:XMLNode = my_xml.firstChild.firstChild;
    var LoopI:Number;
    var tmpDepthLevel:Number;
    var X1:Number, Y1:Number, Length:Number, Width:Number;
    var Code_str:String;
    currentNode = currentNode.firstChild;
    tmpDepthLevel = mcMapContent.getNextHighestDepth();
    try
    for (var child_xmlnode = currentNode; child_xmlnode != null;
    child_xmlnode = child_xmlnode.nextSibling, i++)
    TotalVertex_int =
    Number(child_xmlnode.attributes.VERTEX_COUNT);
    X1 = child_xmlnode.attributes.X1;
    Y1 = child_xmlnode.attributes.Y1;
    Width = Number(child_xmlnode.attributes.WIDTH);
    Length = Number(child_xmlnode.attributes.LENGTH);
    Code_str = child_xmlnode.firstChild.nodeValue;
    var my_mc:MovieClip = mcMapContent.attachMovie("MyRect",
    Code_str, tmpDepthLevel, {Name:Code_str});
    tmpDepthLevel++;
    my_mc._x = X1;
    my_mc._y = Y1;
    my_mc._width = Width;
    my_mc._height = Length;
    newMainColor = new Color(my_mc.rect_mc);
    my_mc.Num_txt.setTextFormat(number_fmt);
    name_fmt.font = "NumFont";
    newMainColor.setRGB(0xFF99FF);
    my_mc.Num_txt._yscale = my_mc.Num_txt._yscale * (Width /
    Length);
    my_mc.Num_txt._y = (20 - my_mc.Num_txt._height);
    my_mc.Num_txt._x = 0;
    catch (myError:Error)
    trace("error caught: " + myError);
    finally
    //trace("No Error");

    I'm a newby to flash. I need to show movie clips based on the
    XML data. The problem is after page is loaded with flash file,
    still CPU is not getting released. What am I doing wrong? After
    page is loaded with the flash file, I want the CPU to go its
    original utilization.
    Here is the sample code.
    import flash.geom.Matrix;
    import flash.geom.Point;
    import flash.display.*;
    import flash.geom.*;
    import mx.services.*;
    _root.lineStyle(1, 0x0000FF, 100);
    var mcMapContent = map_sp.content;
    var my_xml:XML = new XML();
    my_xml.ignoreWhite = true;
    var number_fmt:TextFormat = new TextFormat();
    number_fmt.font = "NumFont";
    number_fmt.size = 4;
    var fileName:String;
    if (!fileName)
    fileName = "test1";
    if (_global.styles.List == undefined)
    _global.styles.List = new mx.styles.CSSStyleDeclaration();
    _global.styles.List.setStyle("themeColor", 0x3366CC);
    _global.styles.List.setStyle("color", 0x000000);
    _global.styles.List.setStyle("backgroundColor", 0xFFFFFF);
    _global.styles.List.setStyle("borderStyle", "solid");
    _global.styles.List.setStyle("borderColor", 0x000000);
    _global.styles.List.setStyle("rolloverColor", 0x5a6970);
    _global.styles.List.setStyle("scrollTrackColor", 0xEEEEEE);
    _global.styles.List.setStyle("selectionColor", 0xCCCCCC);
    my_xml.load("XML/" + fileName + ".xml");
    my_xml.onLoad = function(success)
    var currentNode:XMLNode = my_xml.firstChild.firstChild;
    var LoopI:Number;
    var tmpDepthLevel:Number;
    var X1:Number, Y1:Number, Length:Number, Width:Number;
    var Code_str:String;
    currentNode = currentNode.firstChild;
    tmpDepthLevel = mcMapContent.getNextHighestDepth();
    try
    for (var child_xmlnode = currentNode; child_xmlnode != null;
    child_xmlnode = child_xmlnode.nextSibling, i++)
    TotalVertex_int =
    Number(child_xmlnode.attributes.VERTEX_COUNT);
    X1 = child_xmlnode.attributes.X1;
    Y1 = child_xmlnode.attributes.Y1;
    Width = Number(child_xmlnode.attributes.WIDTH);
    Length = Number(child_xmlnode.attributes.LENGTH);
    Code_str = child_xmlnode.firstChild.nodeValue;
    var my_mc:MovieClip = mcMapContent.attachMovie("MyRect",
    Code_str, tmpDepthLevel, {Name:Code_str});
    tmpDepthLevel++;
    my_mc._x = X1;
    my_mc._y = Y1;
    my_mc._width = Width;
    my_mc._height = Length;
    newMainColor = new Color(my_mc.rect_mc);
    my_mc.Num_txt.setTextFormat(number_fmt);
    name_fmt.font = "NumFont";
    newMainColor.setRGB(0xFF99FF);
    my_mc.Num_txt._yscale = my_mc.Num_txt._yscale * (Width /
    Length);
    my_mc.Num_txt._y = (20 - my_mc.Num_txt._height);
    my_mc.Num_txt._x = 0;
    catch (myError:Error)
    trace("error caught: " + myError);
    finally
    //trace("No Error");

  • Using af:clientListener after page load

    Hi,
    I need to run a js function after* the page finishes loading.
    I tried to use <af:clientListener type="load" method="fillProjectList"/>, but the script starts running before the table on the page finished loading.
    The table has: clientComponent="true"
    How can I make the script to start runng only after all table components are loaded?
    Thank you,
    Nina

    Ah.. i guess it will not work as you cannot do any UI activity after the render response phase. May be try this
    Javascript into JSPX and run after page is loaded?

  • Javascript  before/after Page Load

    hi, i want to call javascript before or after page is loading,
    is it possible?

    Hi,
    Under Page Rendering--->
    Open the page definition
    Under --> Display Attributes
    change to 'Donot focus cursor'
    In Page html body attributes
    enter --> onload="set_focus();"
    bye
    Srikavi

  • Loading... spinner persists after page load complete

    Our site uses Ajax and web-services to build html content. At times, the spinning "Loading..." image continues endlessly, seemingly after the page load is complete. This behavior does not occur with Chrome, IE or Firefox. Using the Web Inspector, it appears that all images, xml docs, web-service calls, etc. have completed successfully. To see an example: http://www.bunkerhill.com/dev/website/WebMessages.aspx
    Any help is appreciated.
    TIA

    Is the site entirely Safari compatible? Maybe some part of it isn't working in Safari, and the browser is still attempting to make it work. I'm not a coder (I can barely do anything with HTML), so what I just wrote might be of no use to you.

  • Dynamic Action - Fire on Page Load problem

    Greeeting,
    i created report with dynamic action Event = page load and action = submit . Event scope = Bind,
    But it is submitting page continously , and i want to submit once..
    how i will handle this.. created example please click on link
    http://apex.oracle.com/pls/apex/f?p=20294:3:1276651806269601:::::

    Hi,
    >
    Earlier on you said:
    Page 1 Sales
    Page 2 Sales Detail
    items in sales page are product name id and rate.
    <b>Product name on Page1 is linked with sales detail page 2.</b>
    >
    How? From your query this relation is not evident.
    >
    Now you say:
    Parameters:
    1- From Date
    2- Date
    3- Choose Area
    >
    You logic is rather mixed up. What is it that you want to achieve? What are the default values for the 3 parameters, if any? Which value on Page 2 is being set while navigating from Page 1?
    Two wrongs do not make a right. So first of all abandon the DA that Sumbit Page on Page Load and focus on the fundamental issue related to your logic.
    The suggested modified query below is NOT WHAT YOU NEED FOR YOUR REQUIREMENT but I am posting it so that you can at least get the report running and then work to fix your logic.
    SELECT SS.OUTLET_ID,
      SS.CAT_ID,
      SS.ITEM_CDE,
      SS.ITEM_NME,
      SUM(DECODE(RETURN_IND,'N',ITEM_QTY,'Y',ITEM_QTY*-1)) QTY,
      SUM(DECODE(RETURN_IND,'N',ITEM_QTY,'Y',ITEM_QTY*-1)*ITEM_RTE) AMT,
      O.OUTLET_NME
    FROM
      (SELECT OSM.OUTLET_ID,
        PI.CAT_ID,
        PI.ITEM_CDE,
        PI.ITEM_NME ITEM_NME,
        OSM.RETURN_IND,
        OSD.ITEM_QTY,
        OSD.ITEM_RTE
      FROM OUTLET_PRICE OP,
        OUTLET_SALES_MASTER OSM,
        OUTLET_SALES_DETAIL OSD,
        POS_ITEM PI
      WHERE OSM.OUTLET_SALES_MASTER_ID = OSD.OUTLET_SALES_MASTER_ID
      AND OSM.OUTLET_ID                = OSD.OUTLET_ID
      AND OSD.OUTLET_PRICE_ID          = OP.OUTLET_PRICE_ID
      AND PI.ITEM_ID                   = OP.ITEM_ID
      /* AND OSM.OUTLET_ID                = :P2_SELECT_OUTLET
      AND OSM.CONSIDERED_DTE BETWEEN :P2_FROM AND :P2_TO */
      AND OSM.OUTLET_ID                LIKE NVL( :P2_SELECT_OUTLET,'%')
      AND OSM.CONSIDERED_DTE BETWEEN NVL(:P2_FROM,TRUNC(SYSDATE)-1) AND NVL(:P2_TO,TRUNC(SYSDATE))
      UNION ALL
      SELECT OSM.OUTLET_ID,
        PI.CAT_ID,
        PI.ITEM_CDE,
        PI.ITEM_NME ITEM_NME,
        OSM.RETURN_IND,
        OSD.ITEM_QTY,
        OSD.ITEM_RTE
      FROM OUTLET_PRICE OP,
        OUTLET_SALES_MASTER OSM,
        OUTLET_SALES_DETAIL OSD,
        ITEM I,
        ITEM_CATEGORY IC,
        POS_ITEM PI
      WHERE OSM.OUTLET_SALES_MASTER_ID = OSD.OUTLET_SALES_MASTER_ID
      AND OSM.OUTLET_ID                = OSD.OUTLET_ID
      --AND OSM.OUTLET_ID                = :P2_SELECT_OUTLET
      AND OSM.OUTLET_ID                LIKE NVL(:P2_SELECT_OUTLET,'%')
      AND OSD.OUTLET_PRICE_ID          = OP.OUTLET_PRICE_ID
      AND OP.ITEM_ID                   = I.ITEM_ID
      AND I.CAT_ID                     = IC.CAT_ID
      AND IC.TEMP_ITEM_ID              = PI.ITEM_ID
      /* AND OSM.CONSIDERED_DTE BETWEEN :P2_FROM AND :P2_TO */
      AND OSM.CONSIDERED_DTE BETWEEN NVL(:P2_FROM,TRUNC(SYSDATE)-1) AND NVL(:P2_TO,TRUNC(SYSDATE))
      )SS ,
      OUTLET O
    WHERE SS.OUTLET_ID = O.OUTLET_ID
    GROUP BY SS.OUTLET_ID,
      SS.CAT_ID,
      SS.ITEM_CDE,
      SS.ITEM_NME,
      O.OUTLET_NME
    ORDER BY ITEM_NMECheers,

  • Major annoyance - Safari switching tabs/windows after page load

    When I cmd-click on a link to open a page in a new tab, it starts to load the page. If I switch tabs or windows before the page is loaded, it will switch back to that tab/window when the page load is complete.
    Who thought this would be a good idea?!? This is the kind of impossibly poor user interface that I expect when I run Windows. Why has it infected my Mac? I DO NOT WANT MY SOFTWARE CHANGING MY INTERFACE ON ME!!! When I bring a tab or window to the front, I expect it to STAY in the front!!!!!
    PLEASE, FOR THE LOVE OF EVERYTHING SANE, FIX THIS NOW APPLE!!!

    BTW, this does not happen all the time - only on certain pages. A good example is the Washington Post. Click on an article, then switch to a different tab/window before the page completes loading. When the page load completes, it will switch your tab/window, bringing the article to the front. Very annoying.
    I suppose if could be an issue with the site using some severely twisted JavaScript. However, I have never seen this behavior before in Safari until very recently, and it does not happen in FireFox.

  • Text shifts after page load

    When viewing my site online, the page loads and then the text sometimes shifts and re-positions slightly. Long text blocks may even re-format and become one line less in height. This happens in Safari, Explorer, and Mozilla on Mac and Windows. This only happens occasionally but, where it happens, it is consistent and happens every time. I am using Arial standard font, left justified only, and default text settings for space and inset. So no special font or settings at issue. This happened with iWeb 08 as well as 09.
    Any ideas please ... it makes my site look so scruffy ...... :o(

    Sorry to be slow in coming back on this but I wanted to try Roddy's solution before troubling anybody further. Loosening the text boxes has indeed done the trick. The amount need to loosen is surprisingly large in some cases, and it took several attempts to get everything OK.
    Thank you both for replying so quickly. If you want see the results of your advice in a problem free site then go www.cambiguities.com. It is my first attempt at a site and is quite ambitious for a first go. I am a photographic illusion creator and it is my showcase. Who knows ..... you might enjoy it ...... ;o)
    Thanks again

  • ADF Question: Set focus in table after ppr

    Hi all,
    I am using JDeveloper 10.1.3.3 with ADF and BC.
    In my table I have two editable fields, itemCode and quantity.
    When I hit enter in the itemCode, I execute a method in the backing bean, and the table is ppr refreshed.
    After that, I want the focus to go to the next field, quantity.
    I have tried following this example: http://www.bloggingaboutoracle.org/archives/focussing-conditionally-in-a-table-after-a-partial-page-refresh
    However, the focusItem string never has the row index included. So the focus never gets set correctly.
    Next I tried doing it via javascript, changing the focus after the event by adding a partial target to a script tag that sets the focus. However, the row index at this time is not what it was at the time of entering the itemCode.
    It looks like the rowIndex (ie: form1:table1:rowIndex:quantity) is changing after the ppr event. At the beginning (when entering the item) it is 0, but after the ppr, it is 1 or 3 or something else...
    How can I get this row id? OR how can I go about setting the focus to that next field (quantity) after the ppr?
    Thanks,
    Heather

    Hi,
    the row index should always be in synch with the underlying binding. So if you get the current rows position in the iterator then you know its index in the table
    Frank

  • Web pages slow to load with IE11 and the cursor/mouse is very slow to work until after page loads

    Web pages are very slow to load, I hve run Norton Eraser and found no issues that would cause this

    New HP Pavilion three weeks ago.  After several attempts by the 'experts' I finally got a straight answer from a tech in the Philipines yesterday, 01-29-2015.  HP and Microsoft are working to resolve the issue of slow pages and a dead cursor until the next page finally loads.  You may have discovered that Google Chrome DOES NOT have this issue.  Comments about HP would not be allowed here so I will just say, use Chrome until the issue with IE 11 is resolved.

  • Navigating ADF Train to a specific stop on page load

    Hello friends,
    I am working on the GUI of an ADF web application, which requires the use of train component. It is possible to navigate the train component to a specific stop programmatically once the page containing the train component is loaded but as per our business scenario, I need to navigate the train to a specific stop (say 3rd stop for example) while loading the page.
    Is it possible to do so?
    I am using JDeveloper 11.1.1.7.0.
    Best Regards,
    Anshul

    Thanks Shri.
    That worked.
    Regards,
    Anshul

Maybe you are looking for