JavaScript Error with Tree2: NAV_COMMAND is null or not an object

ello all,
I am getting the following javascript error when I click on the + image to expand the root node:
'serverTree:org.apache.myfaces.tree.NAV_COMMAND' is null or not an object
Following is my jsp code
<f:view>
<h:form id="foo">
<t:tree2 id="serverTree" value="#{productBrowser.treeData}" var="node" varNodeToggler="t" clientSideToggle="false">
<f:facet name="productsRoot">
<h:panelGroup>
<t:graphicImage value="images/yellow-folder-open.png" rendered="#{t.nodeExpanded}" border="0"/>
<t:graphicImage value="images/yellow-folder-closed.png" rendered="#{!t.nodeExpanded}" border="0"/>
<h:outputText value="#{node.description}" styleClass="nodeFolder"/>
<h:outputText value=" (#{node.childCount})" styleClass="childCount" rendered="#{!empty node.children}"/>
</h:panelGroup>
</f:facet>
</t:tree2>
</h:form>
</f:view>
I looked at the source code of HtmlTreeRenderer.java and NAV_COMMAND is defined as follows:
private static final String NAV_COMMAND = "org.apache.myfaces.tree.NAV_COMMAND";
I looked in the myfaces.jar and did not find anything inside this path.
What am I missing?
Thanks in advance.

Dean,
Can you be a bit more specific? What it the difference between "my Application" and "my test application"? What are you doing differently when you are creating these buttons?

Similar Messages

  • Javascript error : 'xfa.sourceSet.nodes' is null or not an object.

    Has anyone seen this error when rendering a form in HTML while trying to make an ODBC connection with that form?
    Thanks!

    Pretty much the only ways you have with HTML are 1) Execute it on the server - must be running MS platform - using a Web Service or Data Connection or 2) use standard ADO on the client - if you can be sure your end-user is always going to be on a IE/MS platform. In the case of ADO, you are moving to a completely script orientated approach.
    Personally, I always use either a Web Service or make the call to the db before rendering the form through Form Server (i.e. prefill data into the HTML before ending it to the client)

  • Persistant Status Bar Notification ... error 'SP.UI.Status' is null or not an object

    I want to show a status bar that needs to be persistent on a page. for this I used the following in my master page
    function ShowStatusBarMessage(title, message)
    var statusId = SP.UI.Status.addStatus(title, message, true);
    SP.UI.Status.setStatusPriColor(statusId, 'yellow'); /* Set a status-color */
    HTML, call the JS method:
    <a onclick="ShowStatusBarMessage('Title'!','Awesome message!')">
    Display Status Bar message!
    </a>
    ref:
    http://www.zimmergren.net/archive/2010/03/17/sp-2010-dynamically-displaying-messages-to-your-users-with-the-notification-and-status-bar-areas-in-sharepoint-2010.aspx
    But what I want is
    to call the function on load. So I used pushed ny function to _spBodyOnLoadWrapper using _spBodyOnLoadFunctionNames.push("YourFunctionName");,
    it throws an error 'SP.UI.Status' is null or not an object
    Next I created and
    deployed a webcontrol and did a registerclientscript, that too gives me 'SP.UI.Status' is null or not an object
    // Define the name and type of the client scripts on the page.
    String csname1 = "AlertScript";
    Type cstype = this.GetType();
    // Get a ClientScriptManager reference from the Page class.
    ClientScriptManager cs = Page.ClientScript;
    // Check to see if the startup script is already registered.
    if (!cs.IsStartupScriptRegistered(cstype, csname1))
    StringBuilder cstext1 = new StringBuilder();
    cstext1.Append("<script type=text/javascript> alert('Hello World!');");
    cstext1.Append("var statusId = SP.UI.Status.addStatus('title', 'message', true);");
    cstext1.Append("SP.UI.Status.setStatusPriColor(statusId, 'yellow'); </");
    cstext1.Append("script>");
    cs.RegisterStartupScript(cstype, csname1, cstext1.ToString());
    What am I missing ?
    How can I get to show a status bar on load of any page, just as you get a health analyzer message when you get into the Central Admin?
    Thanks, Mano
    Mano Mangaldas | Blog : http://howtosharepoint.blogspot.com 

    Ok, for some reason, it is not working for me. Below are the code that didnt work for me
    <script type="text/javascript">
    function ShowStatusBarMessage(title, message)
    var statusId = SP.UI.Status.addStatus(title, message, true);
    SP.UI.Status.setStatusPriColor(statusId, 'red');
    ShowStatusBarMessage('Title!','Awesome message!');
    </script>
    This too didnt work
    <script type="text/javascript">
    function ShowStatusBarMessage()
    var statusId = SP.UI.Status.addStatus('Some title', 'Some message', true);
    SP.UI.Status.setStatusPriColor(statusId, 'red');
    _spBodyOnLoadFunctionNames.push("ShowStatusBarMessage");
    </script>
    I did try to register client script block programatically, that too didnt work
    String csname1 = "AlertScript";
    Type cstype = this.GetType();
    // Get a ClientScriptManager reference from the Page class.
    ClientScriptManager cs = Page.ClientScript;
    // Check to see if the startup script is already registered.
    if (!cs.IsStartupScriptRegistered(cstype, csname1))
    StringBuilder cstext1 = new StringBuilder();
    cstext1.Append("<script type=text/javascript>");
    cstext1.Append("var statusId = SP.UI.Status.addStatus('title', 'message', true);");
    cstext1.Append("SP.UI.Status.setStatusPriColor(statusId, 'yellow'); </");
    cstext1.Append("script>");
    cs.RegisterStartupScript(cstype, csname1, cstext1.ToString());
    Any help appreciated.
    But the below code works..
    <script type="text/javascript">
    function ShowStatusBarMessage(title, message)
    var statusId = SP.UI.Status.addStatus(title, message, true);
    SP.UI.Status.setStatusPriColor(statusId, 'yellow'); /* Set a status-color */
    </script>
    <a onclick="ShowStatusBarMessage('Title!','Awesome message!')" href="#">
    Display Status Bar message!
    </a>
    Thanks
    mano
    Mano Mangaldas | Blog : http://howtosharepoint.blogspot.com 

  • Error: 'document.wwv_flow.request' is null or not an object.

    I've problems with the buttons in my Application.
    When I create one and click I after, I've allways the Error Message: Error: 'document.wwv_flow.request' is null or not an object.
    But if I create the same butten on my test application, I don't have this error message.
    Whats wrong?
    Thanks
    Dean

    Dean,
    Can you be a bit more specific? What it the difference between "my Application" and "my test application"? What are you doing differently when you are creating these buttons?

  • Error 'this.node.parentNode is null or not an object' with search highlight in certain topics

    goto
    http://www.afas.nl/profithelp/2_8_2/SE/index.htm
    Click 'zoeken' (search)
    Be sure that 'Zoekresultaten markeren' (search highlight) is
    checked
    Type 'activa'
    Click the topic 'activa'
    An error is displayed in the bottom left corner:
    'this.node.parentNode is null or not an object'
    If search highlight is not used, the error is not displayed.
    Any ideas?

    I think I have it, but it's almost unbelieveable.
    In the activa topic, the word is highlighted up to a point.
    Coming to the next instance of activa, you have this code:
    <li class=p-BulletedList><p
    class=BulletedList><b><span style="font-weight:
    normal;">V:</b> v</span>aste activa waarop wordt
    afgeschreven (Dit is de standaard waarde) . . . </p>
    Note the superfluous <b> and </b> tags,
    especially with the <span> calling for normal font-weight.
    Suppose this is a valid string. Because the opening tags are
    <b><span . . .>,
    the closing sequence should be
    </span>...</b>
    I'm not sure exactly why the error does what it does.
    Perhaps this is a simple html error that happens to come in
    an awkward place, or
    Because the browser expects </span> first, it treats
    </b> as text, so the <b> never gets closed, which
    confuses the search highlight script.
    I've run into something like this before. Repeated
    application, changes and deletion of font attributes in
    approximately the same place sometimes results in confused tags.
    Similarly, when you apply a build tag to styled text, and perhaps
    change the font attribute, opening and closing tags get confused.
    It may depend on the precise locations where you started and ended
    your highlights during editing.
    You'd expect this to be a harmless html error, but in this
    case, it breaks the highlight code, I believe.
    You're in a better position to test this than I am, so I
    await your results.
    Harvey

  • Error Spry.Data.XMLDataSet is null or not an object

    Hi
    I try to use a dataset and a repeat list on a site
    But it wont show the list in top. There are two javascript
    errors. One of them says Spry.Data.XMLDataSet is null or not an
    object
    Whats wrong

    This one was solved. I copied the files in SpryAsset from a
    new one, into the folder on this site. Then the problem was
    solved

  • Button error - document.wwv_flow.p_request is null or not an object

    Hello
    I currently seem to be getting a page error with Internet explorer, whenever I click a button, the error is 'document.wwv_flow.p_request' is null or not an object, the button then stays disabled.
    The error doesn't seem to occur on all the pages I have created, but on most.
    Any ideas?
    Cheers ian

    I have just noticed that the problem seems to be related to the submit rather than the button itself, as the redirect buttons work, but anything that uses a submit does not work i.e select lists (with submit).
    Is this something that I can fix?

  • BPELConsole error message: 0.prettyDate is null or not an object

    We have successfully deployed the sample approval workflow. We modified that workflow and added an email task. The workflow was deployed and it launches and completes successfully. Via the BPELConsole, we can view the "audit" for that instance. However, when we view the "flow" for that instance, we get the error message:
    Error: Internal Bug (# 81)
    '0.prettyDate' is null or not an object
    I can't find any reference to "prettyDate" (i even searched for Julia Roberts, Jessica Biel, etc) to no avail. Any ideas on what the heck this means?
    To reiterate - all we changed was to add an Email task and the process otherwise behaves as usual.
    Our BPEL install is in its own Application Server instance. It is version 10.1.3.3.
    thank you,
    iggy.

    This is a bug - I know it happend on 10.1.2.
    You need to apply patch...I don't remember the number sorry.
    Try to find it in metalink.

  • Error On InfoViewApp: 'searchMenu' is null or not an object

    Hy, i have this problem: when i open My Favorites on InfoViewApp page, i receive this IE message : 'searchMenu' is null or not an object.Could you help me?
    P.S BO XI release 3.0
    Thank's  a lot.
    Sincerely yours
    Andrea Maraviglia

    This question i have posted on Business Object Administration section. Thank's

  • Error message "gReport.controls' is null or not at object"

    This comes up when on an interactive form, you select filter from the drop down and try to filter on a column.
    please help.
    Doug

    Hi Doug,
    I assume you mean "Interactive *report*" ;)
    It sounds as though either (A) the Apex javascript files are not being loaded or (B) there is some javascript (or perhaps other HTML tags) that is invalid and stopping other scripts from running properly.
    Are either of these likely?
    Andy

  • FABridge.flash.root() is null or not an object

    Hello everyone! I'm having a problem with Flex-Ajay Bridge in
    an aspx page. Days ago I could access flex variables from
    javascript without problems, but now I can´t. This is my flex
    code:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    xmlns="*" layout="absolute" height="194" width="374"
    creationComplete="init()">
    <fab:FABridge xmlns:fab="bridge.*" bridgeName="flash"
    id="flash"/>
    <mx:Script>
    <![CDATA[
    import mx.controls.Alert;
    public function init():void
    mx.controls.Alert.show("ready");
    ]]>
    </mx:Script>
    <mx:Label x="227" y="171" text="Probemos......"
    fontSize="14"/>
    <mx:TextInput x="140" y="27" id="pki"/>
    <mx:TextInput x="140" y="76" id="pkf"/>
    <mx:TextInput x="140" y="122" id="nc"/>
    <mx:Label x="27" y="29" text="PKI" fontSize="14"/>
    <mx:Label x="27" y="78" text="PKF" fontSize="14"/>
    <mx:Label x="27" y="123" text="Max. Carriles"
    fontSize="14"/>
    </mx:Application>
    It's just some text boxes and labels. I want to access those
    labels from javascript, so I wrote in my html page this:
    <html xmlns="
    http://www.w3.org/1999/xhtml"
    >
    <head runat="server">
    <title>Inventario de Carriles con Flex</title>
    <script
    src="JS/FABridge.js"type="text/javascript"></script>
    <script type="text/javascript" language="javascript">
    function setMessage()
    var flexApp = FABridge.flash.root();
    alert("1");
    alert("2");
    flexApp.pki().setText("1");
    flexApp.pkf().setText("2");
    flexApp.nc().setText("3");
    </script>
    </head>
    <body>
    <form id="form1" runat="server">
    <div>
    <table>
    <tr>
    <td>
    <object
    classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="374"
    height="194" >
    <param name="movie" value="FlexApp\Inventario.swf"/>
    <param name="quality" value="high"/> <
    <embed src="FlexApp\Inventario.swf" width="374"
    height="194" align="middle" quality="high" pluginspage="
    http://www.macromedia.com/go/getflashplayer"
    type="application/x-shockwave-flash"></embed>
    </object>
    </td> (...............)
    When I click in the button, the js fuction starts executing
    but when it tries to initialize the flexApp variable it shows an
    error: flexApp.flash.root() is null or not an object.......... can
    you please help me? I tried everything and didn't manage to solve
    this problem, I know that the flex .swf is initialized but I don't
    know why the javascript can't access it :(
    Does someone knows what can I do in order to solve this???
    Thanks!!!
    Regards,
    Mariana

    Hi,
    javascript isn't made by sun, so you won't find it here, but google can help you out:
    http://www.google.se/search?hl=sv&ie=UTF-8&q=javascript+forum&btnG=S%C3%B6k&meta=
    /Kaj

  • UIX Javascript Error with Date Picker

    Hi all,
    I am using JDeveloper 10.1.2.1.0 with JHeadstart 10.1.2.2.32 to create UIX pages. I have a page with a filter by search field. If I select the date picker on this page in IE version 6 or 7, I get the following javascript error:
    Error: 'length' is null or not an object
    I have found this in the Common2_2_20.js, which is part of the jslibs
    function _accumulateNumber(
    a0,
    a1
    var a2=a0.currIndex;
    var a3=a2;
    var a4=a0.parseString;
    ***var a5=a4.length;***
    if(a5>a3+a1)
    a5=a3+a1;
    var a6=0;
    while(a3<a5)
    var a7=parseDigit(a4.charAt(a3));
    if(!isNaN(a7))
    a6*=10;
    a6+=a7;
    a3++;
    else
    break;
    if(a2!=a3)
    a0.currIndex=a3;
    return a6;
    else
    return(void 0);
    }With Firefox 1.5.0.4, I can get the date selector window to open, but when I select a date value, I get this javascript error:
    a0.select() is not a function
    I have found this in the Common2_2_20.js also. Here is the code where the error is occuring.
    function _dfsv(
    a0,
    a1
    if((a0==(void 0))||(a1==(void 0)))
    return;
    a1+=_getTimePortion(a0);
    var a2=new Date(a1);
    var a3=_getDateFieldFormat(a0);
    var a4=a0.value;
    var a1=a3.format(a2);
    if(a0.value!=a1)
    if(a0.onchange!=(void 0))
    if(_agent.isIE)
    a0.onpropertychange=function()
    var a5=window.event;
    if(a5.propertyName=='value')
    a0.onpropertychange=function(){};
    a0.onchange(a5);
    a0.value=a1;
    else
    a0.value=a1;
    var a5=new Object();
    a5.type='change';
    a5.target=a0;
    a0.onchange(a5);
    else
    a0.value=a1;
    ***a0.select();****
    a0.focus();
    }I am able to use the date picker on other pages and even different parts of this page. The date search field is of type dateField.and is part of a switcher. Does anyone have any ideas as to why this is occuring or how I can work around it? Thanks in advance. I really appreciate all of your help.
    Susan

    Thanks for the reply. As a matter of fact, in my case the error happens in a UIX page generated by JHeadstart. I did some JavaScript debugging using the FireBug Firefox entension and I found that it is some JHeadstart JavaScript that causes this problem.
    The JHeadstart JavaScript passes on an array of input elements to the AFD JavaScript function and the problem arises when the select() method is called on the array, rather than an input element in the array.
    I will try to solve my issue by modifying the JHeadstart JavaScript code. Please see the JHeadstart forum somewhere in the near future for my post(s) about this :-)
    Thanks, Wouter

  • Javascript Error with UIX Page

    Hi all,
    I am using JHeadstart 10.1.2.2.32 with JDeveloper 10.1.2.1.0 to develop UIX pages. I have run into the following problem with one of my UIX pages. We have a page with a table view which uses sortable headers. In certain situations when using the sortable headers in IE 6.0.2900.2180, a javascript error appears. This does not occur using Firefox.
    It says:
    Line: 2894
    Char: 1
    Error: 'type' is null or not an object
    Code: 0
    URL: (the URL of the page)
    I have figured out that the error is occuring in the Common2_2_20.js file on the following line, which is part of the function _multivalidate:
    var a7 = a6.type; The error only occurs in the following situation. If the user has just logged into the system and certain rows in the table are read-only and others are editable. If you click on any of the sortable headers, it will sort fine the first time. However, if you click on the sortable header again, the javascript error appears. It only happens if you click on the sortable headers twice in a row.
    I have tried taking out the line of code, but then I can not sort the headers at all.
    I read in the forum that the error can occur because of the way IE handles the compression of javascript files. We changed the setting on the app server to not compress javascript files. I then undeployed and redeployed the application. However the same error is still occuring.
    If you need any more information, please let me know. Thanks in advance.
    Susan

    We found out that we had a custom script on the page that was interfering with script in the Common2_2_20.js. By moving the script to the end of our page, it solved our problem.
    Susan

  • Context Menu error: 'length' is null or not an object

    When we run some of our reports (BI 7.0) and right click on the table to display the context menu we get a javascript error in the bottom left of Internet Explorer. The context menu doesn't appear.
    Once you expand the error is  'length' is null or not an object. It doesn't affect all the reports in fact so far we've only discovered 2 reports with this problem although there may be more.
    The reports with problems have had their own individual web templates developed. We haven't developed much of our own Javascript via the script web item and definitely none that would affect the context menu. The only code we have opens help pages/useful web pages/other apps etc. via buttons.
    None of the reports shows an error when you validate in the WAD software.
    We are currently using IE6 (upgrading to IE8 soon) and we have recently applied SP21 on the Java Stack.

    Hi Fred
    Did SAP come back with an OSS note to correct this issue. I am not finding anything in the Service marketplace.
    Thanks
    Adrian

  • Please help!!  error: __EventTarget is null or not an object

    Hi,
    I am developing the business charts with dropdownlist in ASP.NET for our new plumtree portal.
    The portlets are working perfectly in the VS.NET dev environment, However, whenever I change the selection in the dropdownlist, it doesn't post back but I got an IE error which appears with a little yellow warning sign on the lower left corner of the IE window, which means, the error is on client side.
    The error : '_EVENTTARGET' is null or not an object .
    I have a feeling that there's something wrong with the javascript behind the sceen when ASP.NET controls try to plug in Plumtree web pages. Since I don't know how to access those Plumtree javascripts, can someone help me out here!!
    (If I right click on the web page to get the source code, here's what I found :
    <input type="hidden" name="__EVENTTARGET" value="" />
    <input type="hidden" name="__EVENTARGUMENT" value="" />
    <input type="hidden" name="__VIEWSTATE" value="...................." />
    <script language="javascript" type="text/javascript">
    <!--
         function __doPostBack(eventTarget, eventArgument) {
              var theform;
              if (window.navigator.appName.toLowerCase().indexOf("microsoft") > -1) {
                   theform = document.Form1;
              else {
                   theform = document.forms["Form1"];
              theform.__EVENTTARGET.value = eventTarget.split("$").join(":");
              theform.__EVENTARGUMENT.value = eventArgument;
              theform.submit();
    // -->
    </script>
    Thank you in advance.

    I was also running in the same issue with slightly different settings/environment.
    I had couple of portlets written in .Net on one page. One was written in .Net 1.1 and other one was .Net 3.5 with Ajax Extender controls. (Both the apps run fine without portal - ALUI 6.1 environment)
    Couple of the link buttons were generating the same error '__EVENTTARGET' is null or not an object , these link buttons were trigger to an update panel.
    I tried registering the __EVENTTARGET with the link buttons from the code behind, making the form names same ... .. but nothing helped.
    In my case I had to change the asp:LinkButton to asp:Button to avoid __EVENTTARGET generation for the controls.
    __EVENTTARGET is only generated for autopostback controls (or in other words controls that do not have submit behavior by default). It is not required for asp:Button.
    HTH!
    Avinash
    Edited by asolvent at 03/12/2008 4:08 PM

Maybe you are looking for

  • Reverse Proxy for SharePoint 2013

    Hi, I need to setup SharePoint 2013 environment which needs to be accessible from mobile devices e.g. iPAD/Android, for reverse proxy, I am looking at apache or IIS ARR since UAG is going to be deprecated. So far any one setup apache (on RHEL 6.x) or

  • Why can't I serve a webpage from my Mac?

    I cannot for the life of me figure out how to place a website at Hard Drive>Library>Webserver>Documents and then be able to reach that website from anywhere other than the actual Mac it's sitting on (and even that's iffy sometimes). Here's what I'm d

  • How can I install my printer HP Photosmart Premium C310 e-All-in-One printer without CD?

    I got it 2 weeks ago, but my laptop don't have CD-drive. When I go to  Software & Driver downloads  and write my type C310b it always open me for type C310a with note:If your operating system is not listed, HP does not have software or driver downloa

  • How to insert and retrieve zip files in to blob column in oracle database?

    Hi All, I have a requirement where i need to insert zip files to BLOB and retrieve them. Please suggest me any good example or redirect me to them.

  • Problem with access sequence

    Hi guys, We have a typical problem.  When i verify a condition type 'A' through MM path, MM-->purchasing >conditions->define price determination process -->define condition types,the accesss sequence shown for the condition type is 'X'.  But when i g