Document.forms[...].__EVENTTRAGET is null...

Hello all (this is my first post, so please be kind ;o)
I'm having trouble with hosting my application in a portlet. It's quite a large app, and has a number of buttons and links on it, but I think these are all rendered correctly, and the first time I post back my form it all works correctly, and the page reappears as it should do. When I press a button for the second time, I get the error described in the title.
I've done some poking around in the jscript debugger, and found that the second time the page is rendered, another form has been introduced with the same name as the first, and that is what causes the error message. The content of the first form is nearly the same both times (a spurious DIV close tag is introduced near the end), and the second form matches exactly the end of the first form, and includes the definition of the PTSetValidationSummaries_419 function and PT_VALIDATORS_SUM_419 hidden field.
Does anyone have any ideas? Needless to say, the app works fine outside of the portal. It's not a buffer overrun problem is it (my form is about 1600 bytes) ?
Thanks
Martin

You're right Jonathan, I was running 2.1, but now that I've upgraded to 2.2 my application jumps out of the portal every time I press a button or click a link. The only change that I had made was to the line in the web.config. I've cut down the HTML generated to about 10 lines (plus viewstate) but I can't see what's wrong. Any more ideas

Similar Messages

  • Text Content of Document is returned as null

    Hi All,
    I am trying to use the JTidy parser to parse an input HTML string. But when I am trying to type the content of the Document, it is returning null. I am new to DOM parsing, so is there anything that I am doing wrong? Any pointer will be very helpful.
    Here is my code:
    public static void main(String[] args) {
              String rawHtml = "<p class=\"MsoNormal\" style=\"text-autospace:none;\"><font color=\"black\"><span style=\"color:black;\">???</span></font><b><font color=\"#7f0055\"><span style=\"color:#7f0055;font-weight:bold;\">private</span></font></b><font color=\"black\"><span style=\"color:black;\"> String parseDescription</span></font><font>";
              Tidy tidy = new Tidy();     //obtain a new Tidy parser instance
              tidy.setPrintBodyOnly(true);
              ByteArrayOutputStream baos = new ByteArrayOutputStream();
              PrintStream ps = new PrintStream(baos);
              byte[] bytes = rawHtml.getBytes();
              ByteArrayInputStream bais = new ByteArrayInputStream(bytes);
              //returns HTML Document
              Document htmlDoc = tidy.parseDOM(bais, ps);
              String docText = htmlDoc.getTextContent();
              try {
                   System.out.print(baos.toString("UTF8"));
                   System.out.println();
                   try {
                        System.out.print(docText);
                   } catch (DOMException e) {
                        // TODO Auto-generated catch block
                        e.printStackTrace();
              } catch (UnsupportedEncodingException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
    Here is the output:
    line 1 column 302 - Warning: missing </font>
    line 1 column 302 - Warning: trimming empty <font>
    line 1 column 303 - Warning: inserting missing 'title' element
    InputStream: Document content looks like HTML 4.01 Transitional
    3 warnings, no errors were found!
    You are recommended to use CSS to specify the font and
    properties such as its size and color. This will reduce
    the size of HTML files and make them easier to maintain
    compared with using <FONT> elements.
    <p class="MsoNormal" style="text-autospace:none;"><font color=
    "black"><span style="color:black;">???</span></font><b><font color=
    "#7F0055"><span style=
    "color:#7f0055;font-weight:bold;">private</span></font></b><font
    color="black"><span style="color:black;">String
    parseDescription</span></font></p>
    null

    getTextContent() is a dom level 3 recommendation, it may not be supported by every dom parser - and it is not by JTidy (yet). One way to do it is to write your own method to get the same. But you sure can chain the now well-formed output of JTidy to a full-fledged dom parser, say, such as oracle.xml.parser.v2.DomParser. The detail can be done like this.
    [0] Add oracle xdk's xmlparserv2.jar to the classpath.
    [1] Add the import to the program for convenience.
    import import oracle.xml.parser.v2.*;[2] Then the chaining to get the getTextContent() available.
    DOMParser parser=new DOMParser();
    try {
        parser.parse(new ByteArrayInputStream(baos.toByteArray()));
        Document xdoc=parser.getDocument();
        System.out.println(xdoc.getDocumentElement().getTextContent());
    } catch (Exception e) {
        e.printStackTrace();
    }[3] With xdoc, you can do more things to your liking as it is now a full-fledged dom tree.

  • Using Document form varable results in failed unmarshalling message java.io.eofexception

    Hi,
      I'm on LiveCycle ES 8.2. For PDF submit forms from workspace, I assigned the servername for submit as URL:
    http://adobe1234:8080/workspace-server/submit.
    We are using Document Form variable for this process. The reason is the forms will be digitally signed at each stage and we dont want to loose their signatures if forms go next stage.
    This works perfect when I submit the form.
    Now, we will be moving all the existing instances to new server and I want this URL to be server independent.
    I take off this URL and kept it blank and try to submit from workspace. Nothing happens if I click submit and the form stays at the same place.
    I see the following error in the log file:
    2012-03-29 15:07:17,541 ERROR [org.jgroups.protocols.UDP] failed unmarshalling message
    java.io.EOFException
              at java.io.DataInputStream.readShort(Unknown Source)
              at org.jgroups.Message.readFrom(Message.java:630)
              at org.jgroups.protocols.TP.bufferToMessage(TP.java:973)
              at org.jgroups.protocols.TP.handleIncomingPacket(TP.java:829)
              at org.jgroups.protocols.TP.access$400(TP.java:45)
              at org.jgroups.protocols.TP$IncomingPacketHandler.run(TP.java:1296)
              at java.lang.Thread.run(Unknown Source)
    I have to avoid using this URL in the form as I will be moving my system to new domain & DNS and for any existing process instances, if they try to submit the form, that will error out as the URL is pointing to another server.
    Your help is highly appreciated.
    Thanks,
    kc

    I don't think I read your first post thoroughly. I see now you are setting the URL to prevent the form from appearing altered. I don't use digital signatures, but can see the potential problem. My first thought was to put JavaScript in the form to set the URL, but that would likely cause the same problem. I probably can't be of much help with no experience using the digital signatures. Our forms are considered 'Signed' if a logged in user clicks approve. Have you deleted the Form Bridge and readded? There may be differences with the one in ES2.
    I think you are also saying you can't set the URL server side before rendering the form because processes will launch under one domain then get changed later.
    If you were able to use JavaScript to determine which URL to submit to, you could put that code in the Form Bridge code and I would think that would submit. The form is not being altered by the code. This is assuming the code snippet I copied out of the form bridge is really what is called.
    /** Invoke the standard Submit action */
    function submitAction(doc, url, type) {
        if ( BRIDGE_SUBMIT_URL  != null ) url  = BRIDGE_SUBMIT_URL;
        if ( BRIDGE_SUBMIT_TYPE != null ) type = BRIDGE_SUBMIT_TYPE;
        if ( type == null ) type = "PDF";
        if (url != null) {
            setFocus(null);  // force current field focus out in 8.1 + readers (null op in previous versions)
    //      doc.submitForm({cURL: url, bEmpty: true, cSubmitAs: type, cCharset: "utf-8"});   
            doc.submitForm({cURL: url, cSubmitAs: type});   

  • How to fix 'self.document.form1.title' is null

    I am new to JSP
    When trying custom_jsp/samples/w4/w4_form.jsp, w4_view.jsp and w4_form_buttons.jsp
    after pressing OK button, status bar appear 'self.document.form1.title' is null
    1. How to fix it?
    2. In the custom form, Where do the textbox value store? How to store? Any samples?

    Does your form and entry definition that is using this form have an element called 'title'. 'firstName' and 'lastName' (internal field names). It seems like there is a javascript routine called mySubmit() which gets executed when you hit the OK button. The mySubmit() routine is trying to set the entry's title to the firstName + lastName. This seems to be defined in w4_form_buttons.jsp.

  • Document.form.element.value

    Hi All,
    I'm very new to javascript and had a quick question!  Her is a sample of my code.
    <script language="JavaScript" type="text/javascript">
                      function fnShowText(txt)
                        var x = document.getElementById(txt);
                        var e = document.getElementById(txt).name;
                        var sText = x.options.value;
                        var f = e.concat("b");
                        for (i=0; i<mainform.elements.length; i++)
                           if (mainform.elements<i>.name == f)
                         document.forms[0].elements<i>.value = sText;
                    </script>
    I know what the value of elements is, but I want this script to be dynamic.  Instead of looping through all the elements to find the value 'i' like I am currently doing it.  This is bad response time.  Is there a way to skip the looping and make this call dynamically if I already have the name of the element?
    Thanks in advance!
    Eric
    By the way there is a 'i' after elements but for some reason it isn't showing up on this board.

    if you have a input tag in your html page you can go about it the following ways.
    <input type=text name="t1" id="t1"></input>
    <script>
    document.getElementById("t1").value = "here";
    document.getELementsByName("t1")[0].value = "there";
    </script>
    getElementsByName brings back an array.
    getElementByID gets back one object.
    You should test your taget browsers with both of these.  I know that IE works fine with getID, but others do not.

  • How to get a pdf document out of a Document form

    Hi all,
    I have a question of how to get the actual PDF out of a Document Form, when I take the @document value I only get some xml representation of the form, but I need to get the actual PDF.
    Thanks in advance
    Sincerely
    Kim

    The @document is the way to get the PDF out from the DocumentForm varibale. If you get just the data, it's because the DocumentForm was populated with just the data in the first place.
    Make sure you submit PDF from your form and not just the data.
    Jasmin

  • Javascript - document.forms[0].elements

    Hi,
    I'm trying ...
    var els = document.forms[0].elements;
    for(var i=0; i < els.length ; i++) {
       var compVal = els[i].alt;
    Its working in IE but not in Safar. Any alternative. Please help?

    http://www.w3schools.com/TAGS/att_input_alt.asp  says 'alt' is not supported in Safari.
    Any other function to access alt attribute in Javascript. If not, How can I do in jQuery..

  • MIGO - MB02 - MB90 Print material document forms

    Hi,
    I want to print out a material document form associated to material transfer within the same plant. Movement 311/411 & 415.
    As for today the procedure is to create the material doc (MIGO) -> declare the message associated (MB02) -> print (MB90). Is there a way to suppress the MB02 transaction by adding a button to MIGO? (or any other better way).
    Thanks in advance... points awaiting.
    Garcia

    Hi,
    II. Pls check the below settings for GR Print out:
    1. Maintain the Printer Name in SPRO->Matl Mgmt->Inv Mgmt and Phy Inv->Print Control->Gen Settings->Printer Setting
    2. Ensure that in SPRO->Matl Mgmt->Inv Mgmt and Phy Inv->Print Control->Gen Settings->Item Print Indicator, 1 stands for Matl Doc print out
    3. In SPRO->Matl Mgmt->Inv Mgmt and Phy Inv->Print Control->Gen Settings->Print Version, maintain Print Version 2
    4. In SPRO->Matl Mgmt->Inv Mgmt and Phy Inv->Print Control->Maintain Print Indicator for GI/Transfer Posting Documents
    5. In SPRO->Matl Mgmt->Inv Mgmt and Phy Inv->Output Determination->Maintain Output Types, for the Output types WE01, WE02 and WE03, ensure the foll:
    a. Default Values: Dispatch Time is 3 or 4 as per reqmt. and Tr medium is 1
    b. Print Parameter is 7
    6. In SPRO->Matl Mgmt->Inv Mgmt and Phy Inv->Output Determination->Printer Det->Pr Det by Pl/StoLoc, maintain the Output device for all your Plants
    7. Go to MN21, for Tr Type WE, Print Version 3, maintain Print Item as 1.
    Now the settings are ready for Printing Material  doc
    8. While doing MIGO, ensure that in General Tab, you get "3 Collective Slip" beside the Print Indicator and you tick mark the field.
    9. Now depending on the setting in 5a, the Matl doc is printed. If it is 3, you have to print it using MB90. If it is 4, it is printed immediately.
    Regards,
    Manish

  • Sign in document forms??

    Where are the sign in document forms?

    I have no idea how Citibank sends out its PDF files. If you're in a Mail, you'll see a PDF appear in the body of the mail. Click on it and it will open in Mail. Then click the Share button and choose Open In and select Adobe Reader.
    If you're in Safari, the web browser, click on the link to the PDF file. It will open up in Safari. Click the Open In button and select Adobe Reader.
    Adobe has absolutely nothing to it at all. It's between you and Citibank.
    If you're having problems, I'd suggest calling Citibank support (good luck with that!)

  • Document.forms.j_id_id19['jsfcrud.currentVhtyp'] has no properties

    I am getting the below error when i click to edit an object in the jsf crud table.
    document.forms.j_id_id19['jsfcrud.currentVhtyp'] has no properties

    I am using netbeans with glassfish
    Product Version: NetBeans IDE 6.1 (Build 200805300101)
    Java: 1.6.0_06; Java HotSpot(TM) Client VM 10.0-b22
    System: Windows XP version 5.1 running on x86; Cp1252; en_GB (nb)
    the application when constructed through the wizard worked ok adding entity classes from database and then jsf pages from entity classes.
    after adding jsf bean session managed and adding handling code for creating a login form it has now started giving the error mentioned earlier
    document.forms.j_id_id19['jsfcrud.currentVhtyp'] has no properties
    JSF version 1.2_04
    Manifest-Version: 1.0
    Ant-Version: Apache Ant 1.7.0
    Created-By: 1.5.0_14-b03 (Sun Microsystems Inc.)
    Edited by: jazzman2 on Jul 4, 2008 12:26 AM

  • Document Form Settings

    Is there a quick way to copy over the Document Form Settings for multiple users at the same time?
    thx,
    Richard

    Hi Richard Pagé,      
    Currently it is not possible to copy Form Settings from one user to
    another user within the same database, please kindly refer to attached
    Note 1136539.but you can copy the settings from one database to another database using Copy Express add-on.
    Van Xue
    SAP Business One Forums Team

  • Opener.document.forms.wwv_flow.supplier has no properties

    I'm trying to pass a value from a Popup page to a multi-row report (tabular form).
    and I'm getting the error, which you can read in my subject line of this posting.
    I don't know what the error is telling me when it reads: SUPPLIER has no properties.
    the javascript is as follows:
    opener.document.forms["wwv_flow"].supplier['f01_0008'].value = passVal1; close()...
    where SUPPLIER is the item in the Tabular Form to receive the value I'm passing back from the popup page.
    and
    f01_0008 is the identifier for the row in the tabular form to passback to.
    Can anyone help me here?

    Hi Carl. Thanks for your reply. I'm really floundering around here with this.
    I don't really know how to write javascript, but am using what I find available and trying to adapt it to my application.
    I found an example in the forum that seemed to be an exact match to what I was trying to do, but it was incomplete.
    This is the code that I've got in the HTML header of my Popup page:
    <script language="JavaScript">
    function passBack(passItem1, passVal1)
    opener.document.forms["wwv_flow"].supplier['&P143_ITEM.'].value = passVal1; close();
    </script>
    P143_ITEM is a hidden item on the popup page that contains the rownumber from the tabular form on the calling page.
    SUPPLIER is a column in the row of the calling page.
    And is where I want to pass the value To from the popup page.
    When I drag my cursor over the hyperlink text on the Popup page,
    Then the information I see at the bottom of the page is this:
    javascript:passBack('f01_0006','Graybar Electric Co.');
    It appears to be correct.
    Where F01_0006 is the row where I want to pass the value GRAYBAR ELECTRIC CO.
    The problem seems to be that I cannot specify the Column where I want to pass
    'Graybar Electric Co.' to. (ie: the column SUPPLIER)
    If you have any ideas, it would be greatly! appreciated.
    Thanks- Gary

  • Next record on Business Document Forms

    Hi all,
    I would like to make some settings on Business Document Forms regarding the current showing record. How will I know another record is presented to the user in the form? (E.g. user clicks Next/Previous etc.)
    Version: 2004 C, PL 49
    Thank you for your suggestion
    Best regards,
    Daniel Martinec

    Hi Daniel,
    I'm not aware how the 2004 C version behaves. I'd never tried to use the datasource load (there must be datasources to load in order to let this work).
    I'd rather suggest to capture the menuclicks.
    <b>Code (C#):
    public void HandleMenuEvents(ref MenuEvent pVal, out bool BubblesEvent)
      /* Previous or next records */
      if(((pVal.MenuUID == "1288") || (pVal.MenuUID == "1289") || (pVal.MenuUID == "1290") || (pVal.MenuUID == "1291")) && !pVal.BeforeAction && (SBO_Application.Forms.ActiveForm.Type == YOUR_FORM_TYPE))
        /* ADD YOUR LOGIC HERE */
    Hope it helps...
    Rowdy

  • 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?

  • 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?

  • Using FF ver 3.6.23 when trying to use a "Finish button" the java console provides error: document.forms 0 .submit and I cannot submit the document

    document.forms[0].action=AWURL;
    document.forms[0].elements["WWWACTION"].value='APPLY';
    //12-1TEDHRQ - identify the action as legitimate, to avoid the warning popup
    legitimateAction = true;
    //12-1TEDHRQ - eof
    document.forms[0].onsubmit();
    formatHTML();
    /* GIT remmed-out*/ //document.cookie = "AWIZ_PREVIEW_MODE=ON; domain=oraclecorp.com; path=/";
    /* GIT Version */
    document.cookie = "AWIZ_PREVIEW_MODE=ON; domain=oracle.com; path=/";
    /* eof GIT Version */
    // alert ('Cookie Set ' + readCookie('AWIZ_PREVIEW_MODE'));
    document.forms[0].submit();
    }

    Your PHP script is not secured at all. I would recommend using Forms To Go (http://www.bebosoft.com/products/formstogo/overview) to create the PHP script.
    The unregistered version can be used for free. It will get you up and running in no time.
    In your HTML form,remove enctype="multipart/form-data" from this:
    <form action="contactformprocess_original_db.php" method="post" enctype="multipart/form-data" name="form1" id="form1" target="ifr">
    enctype="multipart/form-data" is only required if you have a file upload field in the form.

Maybe you are looking for