Unterminated String Constant error generated by JSF

I'm getting the error in javascript and not being able to figure it out. It is caused by <h:outputLink> tag trying to load HTML page in IE6 browser.
I'm attaching this page and hopefully someone would come up with a solution. Thanks a lot in advance.
<head>
<script type="text/javascript">
function doPopup(value){
popup = window.open("mqClientSetting.faces?applid="
+ value,"popup","height=605,width=620,toolbar=no,menubar=no,"
+ "scrollbars=yes");
popup.focus();
</script>
<link href="styles.css" rel="stylesheet" type="text/css"/>
<title>MQ Browser</title>
</head>
<table class="mqHeader">
<tbody>
<tr>
<td><img src="/MqBrowser/IBM_logo.gif" /></td>
<td><img src="/MqBrowser/shakehands.jpg" /></td>
<td><img src="/MqBrowser/ABN_logo.gif" /></td>
</tr>
</tbody>
</table>
<hr>
<body>
<form id="j_id_id17" name="j_id_id17" method="post" action="/MqBrowser/mqClientApplications.faces" enctype="application/x-www-form-urlencoded">
<input type="hidden" name="j_id_id17" value="j_id_id17" />
<input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="j_id35:j_id36" />
<div style="overflow:auto; width:100%; height:400px;" align="center">
<table class="borders">
<caption class="mqchanCaption">ABN AMRO business MQ applications</caption><thead>
<tr>
<th class="mqchanHeader" scope="col">Application</th>
<th class="mqchanHeader" scope="col">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a href="# onclick="doPopup('
CRIS');return false;">
CRIS</a></td>
<td>cris
</td>
</tr>
<tr>
<td><a href="#" onclick="doPopup('
GLOBAL NETTING');return false;">
GLOBAL NETTING</a></td>
<td>TF
</td>
</tr>
</tbody>
</table>
</div>
</form>
</body>

<a href="#" onclick="doPopup('
CRIS');return false;">
<a href="#" onclick="doPopup('
GLOBAL NETTING');return false;">Remove those linebreaks.
This is likely just custom code and not generated by JSF (at least, I never heard of a Javascript doPopup() function in JSF). If it is actually generated by JSF, then rise a bugreport at the site of the component manfacturer.

Similar Messages

  • Unterminated String Constant error

    I am getting this error on clicking any of the record in the tree list view
    Anyone is aware of this issue with OTM
    Thanks
    Gajananp

    Post the HTML/JS code generated by the JSF and we will be able to pinpoint the cause much more quickly.

  • Help unterminated string constant error?

    I have been working with after effects and I was trying to make a wiggle effects, I watched a tutorial about how to do it, I followed everything correctly, but I got an error.. Can anyone help me out, I entered this as expression (it was in video description)
    minAudio = 0;
    maxAudio = 100;
    minStretch = 90;
    maxStretch = 120;
    audioLev = thisComp.layer("Sound Keys").effect("Sound Keys")("Output 1”);
    s = linear(audioLev, minAudio, maxAudio, minStretch, maxStretch);
    [s,s]

    Well ...
    1. This is the InDesign forum ...
    2. You may have cropped the image to not include your entire screen.
    3. Using the ESTK editor, you could have seen this with the syntax highlighting,
    and finally 4. the error message tells you what line it is on.
    The very last double quotation mark is a curly one, not a straight. Strings in Javascript may only use straight quotes.

  • When you run Muse 2014 get an error unterminated string constant. Reinstalling does not help. System: Win8.1RU. Help!!!

    When you run Muse 2014 get an error unterminated string constant. Reinstalling does not help. System: Win8.1RU. Help!!!

    Is this occurring on launch? Can you post a screenshot? This isn't an error I recall being reported before.

  • Unterminated string literal error every time firefox opens a page.

    Every time firefox opens a new page, the error pops up. It says Javascript error at the top of the error window - and the error is "unterminated string literal. It very annoying, some pages have multiple instances of the error window popping up on top of each other. I reloaded the program, no changes. I am ready to give up and go to Chrome (which does not have the error)

    This issue can be caused by an extension that isn't working properly.
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe Mode start window.
    If it works in Safe Mode and in normal mode with all extensions (Firefox/Tools > Add-ons > Extensions) disabled then try to find which extension is causing it by enabling one extension at a time until the problem reappears.
    Close and restart Firefox after each change via "Firefox > Exit" (Windows: Firefox/File > Exit; Mac: Firefox > Quit Firefox; Linux: Firefox/File > Quit)
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Unterminated String constant javascript error while handling textarea in ja

    hi,
    my code is -->
    <textarea class = "ipfield" rows="2" cols="80" name = "ruleDesc" id = "ruleDesc" onchange="setIsEdited()"><c:out value="${ruleDesc}" escapeXml="false"/></textarea>
    on click of cancel it should be reseated to previously present in ModelAnd View(MAV) object
    code is document.getElementById('ruleDesc').value = '<c:out value="${ruleDesc}" escapeXml="false"/>';
    but m getting javascript error while setting tht one
    i view tht source in IE.
    that is because of
    it looks like ->
    document.getElementById('ruleDesc').value = 'this is the data from database
    ok ?'
    if there is \n in database it will go to next line because of that *'* after document.getElementById('ruleDesc').value is not completed
    can u please help me about that problem.
    thanx in advance.

    Actually seeing as we are talking javascript at this point, the correct escape would be to escape the \n character. ie produce it as the characters \ and n.
    I would recommend using [StringUtils.escapeJavascriptString|http://commons.apache.org/lang/api-release/org/apache/commons/lang/StringEscapeUtils.html#escapeJavaScript(java.lang.String)] from the [apache commons|http://commons.apache.org/lang/]
    Cheers,
    evnafets

  • Generating javascript from method ...getting unterminated string literal er

    Hello all,
    I am attempting to generate several links on a jsp that are generated by a method in my class file. Each link has an onmouseover event that will display a popup box that I got from dynamicdrive.com.
                    sb.append("<a href='#' onclick=openChatWindow('");
                    sb.append(roomName.getName()+"')  onMouseover=showmenu(event,"+getRoomOccupants(connx,roomName.getName())+") onMouseout=delayhidemenu()>");
                    sb.append(roomName.getName());
                    sb.append("</a><br><br>");The above code generates an "invalid xml syntax" error, the resultant html code viewed in firefox's js dubug window is:
    <p align="left">
    69 <h5>Available Chat Rooms</h5><br><a href='#' onclick=openChatWindow('aroom') onMouseover=showmenu(event,<p align=left><b>Empty</b></p>) onMouseout=delayhidemenu()>aroom</a><br><br><a href='#' onclick=openChatWindow('room2') onMouseover=showmenu(event,<p align=left><b>Empty</b></p>) onMouseout=delayhidemenu()>room2</a><br><br>
    70 </p>I also tried to add apostrophes within the mouseover event like so:
                    sb.append("<a href='#' onclick=openChatWindow('");
                    sb.append(roomName.getName()+"') onMouseover=showmenu(event,'"+getRoomOccupants(connx,roomName.getName())+"') onMouseout=delayhidemenu()>");
                    sb.append(roomName.getName());
                    sb.append("</a><br><br>");Now I get an "unterminated string literal" error and the resultant html code is:
    <p align="left">
    69 <h5>Available Chat Rooms</h5><br><a href='#' onclick=openChatWindow('aroom') onMouseover=showmenu(event,'<p align=left><b>Empty</b></p>') onMouseout=delayhidemenu()>aroom</a><br><br><a href='#' onclick=openChatWindow('room2') onMouseover=showmenu(event,'<p align=left><b>Empty</b></p>') onMouseout=delayhidemenu()>room2</a><br><br>
    70 </p>I know this is a syntax error but I cant figure it out.
    TIA!

    Try adding double quotes around the handler bodies. Example
    onMouseOver="showmenu(event, '....');"The forum syntax highlighter does not show any single quote mismatches.

  • Build a querystring within class file throws js unterminated string literal

    Hello all,
    I have a page that is partially built from within a method.
    String theLink ="FeedFilePusher";//My servlet
                        itemGeoLink = "<a href='#' onclick=top.alertMe('"+theLink+"')>CLICK</a>";The above works fine.
    The problem is that I need to pass a querystring to this servlet.
                        String theLink ="FeedFilePusher?title=" + itemTitle + "&summary=" + itemDesc + "&link=" + entry.getLink() + "&updated=" + itemDate;
                        itemGeoLink = "<a href='#' onclick=top.alertMe('"+theLink+"')>CLICK</a>";When I add the querystring values it throws a unterminated string literal error from within firefox.
    I tried to encode the ? and the & but that didnt work.
    Any ideas on how to do this?
    Here is the simple javascript function called alertMe.
    function alertMe(url)
        document.getElementById('mapframe').src = url;
        closeBubble();
    }TIA!

    Check if the resulting link has any ' or accented letters (����). That sometimes causes that error (at least i've seen it like.. 1000000 times writing spanish applications lol)
    Also, the URL.encode() method might help.

  • Htmlconvertor gives "unterminated string" in generated Javascript?

    The code generated by the htmlconvertor.exe program gives the following:
    however, IE says "unterminated string or constant on this line, particularly the NAME="VirtualVisIR" [the culprit]. Has anyone else had this problem - what is the solution?
    Thanks
    <SCRIPT LANGUAGE="JavaScript"><!--
        if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 976 HEIGHT = 520 NAME="VirtualVisIR"           codebase="http://java.sun.com/products/plugin/autodl/jinstall-1_4-windows-i586.cab#Version=1,4,0,0"><NOEMBED><XMP>');
        else if (_ns == true && _ns6 == false) document.writeln('<EMBED
             type="application/x-java-applet;version=1.4"
                CODE = "VirtualVisIR_Main.class"
                ARCHIVE = "virtualvisir.jar"
                NAME = "VirtualVisIR"
                WIDTH = 976
                HEIGHT = 520
                scriptable ="true"
             scriptable=false
             pluginspage="http://java.sun.com/products/plugin/index.html#download"><NOEMBED><XMP>');
    //--></SCRIPT>

    you need to remove all the line breaks after the EMBED tag... in other words it needs to be one long line like the document.writeln is for the OBJECT tag... i guess it's a bug in the htmlconverter...
    cheers!

  • SIT (nidll) Unterminated String Error

    Good day,
    I'm trying to build a model DLL in Simulink using NI SIT 4.0. The model builds using GRT and ERT (no auto config) fine (warnings galore but they are expected - unconnected inputs/outputs).
    When trying to build using nidll.tlc (either just autocoding or autocoding and linking to a DLL) I get an error which stops the build process:
    ### TLC code generation complete.
    ### Generating TLC interface API.
    ## SIT 4.0 Modifying PMS.c file
    Error: Inside: EXPRESSION Line: 8 Column: 76
    File: C:\SimulationInterfaceToolkit\ModelInterface\tmw\R14\..\nidll_codegen.tlc Line: 508 Column: 57
    Unterminated string
    Error: Inside: EXPRESSION Line: 8 Column: 105
    File: C:\SimulationInterfaceToolkit\ModelInterface\tmw\R14\..\nidll_codegen.tlc Line: 508 Column: 57
    Unterminated string
    Error: Inside: EXPRESSION Line: 8 Column: 77
    File: C:\SimulationInterfaceToolkit\ModelInterface\tmw\R14\..\nidll_codegen.tlc Line: 508 Column: 57
    syntax error
    Error: Inside: EXPRESSION Line: 8 Column: 76
    File: C:\SimulationInterfaceToolkit\ModelInterface\tmw\R14\..\nidll_codegen.tlc Line: 508 Column: 57
    Unterminated string
    ### Real-Time Workshop build procedure for model: 'PMS' aborted due to an error.
    I am confused as to which file it is referring to when it has the error.
    nidll_codegen.tlc - At the locations given is either the middle of text or nothing after a comment.
    PMS.c - looks incomplete (as expected) with a lot of whitespace and the locations reference nothing or a valid line of code (nothing to do with a string). All strings in this file are terminated. As this is the file being generated I doubt it is this file causing issues
    For reference all other C files and headers are created fine (sub units). We are using:
    MATLAB 7.4.0 (R2007a)
    NI SIT 4.0
    MS VC++ 6.0
    Any ideas most welcome and received with thanks!
    Regards,
    Rich

    Hi Richard,
    I know you have already verified you can built a Generic Real-Time model, however did you run the model without creating a make-file?
    In the log, an error message that results is a problem with the simulink model first and fore most. Have you determined what all the warnings are related to?
    Are you sure there is not a problem in the Simulink model?
    Please can you answer these questions and I will see what I can do for you.
    Regards
    JamesC
    NIUK and Ireland
    It only takes a second to rate an answer

  • Target="_blank  Error unterminated string literal

    Hello,
    I have used a example from Patrick Wolf and it won't work.
    http://www.inside-oracle-apex.com/opening-url-in-new-window/
    I need a pop_up window after pushing the button:
    Target is a: URL
    1- URL Target: http://www.google.nl/" target="_blank -- Don't work (Error unterminated string literal)
    2- URL Target: http://www.google.nl/ -- Works
    What is wrong(see number 1)?
    Thanks at advance.
    Walter

    Jari,
    It didn't work.
    On the rightside from my button I have now the next text : Google')">
    With Error- pointer on ' before <a:
    Fout: unterminated string literal
    Bronbestand: http://apex-o/pls/apex/f?p=160:190:8048856061349970::::FSESSION,FORMID:10752014578,
    Regel: 1, Kolom: 20
    Broncode:
    javascript:redirect('<a href=
    when I change 'Optional URL Redirect' field 'URL Target' to
    <a href=http://www.google.nl/ target=_blank'></a>
    I have the next Error:
    Fout: syntax error
    Bronbestand: http://apex-o/pls/apex/f?p=160:190:8048856061349970::::FSESSION,FORMID:10752014578,
    Regel: 1, Kolom: 66
    Broncode:
    javascript:redirect('<a href=http://www.google.nl/ target=_blank'></a>')
    It still not work. Do you have a solution.
    Walter

  • Simple javascript error unterminated string

    I am getting error message unterminated string.
    document.location.href='getname.cfm?buffer=#buffer#';">
    Any idea. thankx

    looks like you have a doublequote after your semi-colon?
    you might also want to enclose the #buffer# variable in a
    URLEncodedFormat() function.
    location.href =
    'getname.cfm?buffer=#URLEncodedFormat(buffer)#';

  • Unterminated  string error

    I get unterminated string error and not ideal how to fix it <p><form>
                            <c:forEach var="year" items="${sessionScope.studentUpdate}">
    <input type="button" value="show information" onclick="openNewInsert('PaymentInfor?search=<c:out value="${year.student_id}"/>')">
                      </c:forEach></p></form>

    if I only have <input type="button" value="show information" onClick="openNewInsert('')"> it did not show the Unterminate error , even I just use
    <input type="button" value="show information" onClick="openNewInsert('Hello.jsp')">, but when I add PaymentInfor?search=<c:out value="${year.student_id}"/> it get error
    ...I still don't get it

  • What is the difference between String Constant and Empty String Constant

    What is the difference between string constant which does not contain any value and the Empty string constant?
    While testing a VI which contain a normal string constant in VI analyzer, it gives error to change string constant with the empty string constant?
    Please Reply
    prabhakant
    Regards
    Prabhakant Patil

    Readability.
    Functionally, they are the same. From a coding standpoint, the Empty String Constant is unambiguous.
    It is empty and will always be; good for initialization. Also, because you can not type a value into and Empty String Constant, someone would need to conciously replace it to set a 'default' value that is something other than NULL.
    Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
    If you don't hate time zones, you're not a real programmer.
    "You are what you don't automate"
    Inplaceness is synonymous with insidiousness

  • String constants

    String str = "Hello " + "World";
    If I write like the above, how many string objects are created? One or Three? I am asking this because somewhere I found an advice that we should use a StringBuffer and its append() method to concatenate strings in order to reduce the number of string constants generated when we want to create a long string and it does not fit into a single line (hence break it up into multiple lines) or dynamically create a string depending on several conditions. Like the following:
    String sql = "INSERT INTO MYTAB "
    + "( x, y, z)"
    + " VALUES(1,2,3)";
    The above can be done as below:
    StringBuffer sb = new StringBuffer();
    sb.append( "INSERT INTO MYTAB " );
    sb.append( "( x, y, z)" );
    sb.append( " VALUES(1,2,3)" );
    It was advised that, in such cases, StringBuffer should be used since it maintains an array internally and does not create a new string every time a new string constant is appended.

    maity wrote:
    Well, thanks. One more question, is there any way that I can count the number of objects created by my java program when it is running?I would use a profiler if I wanted to know that. But why do you need to know?

Maybe you are looking for

  • Exporting to a .swf or .fla from InDesign CS6 - issues with timeline when opened in Flash.

    Hello, Looking for help with exporting files for Flash. I have tried both .swf and fla exports from InDesign for the animations I have created. The .swf file will play fine in Flash player but I am having no luck using the .swf or .fla file in Flash.

  • Installing iPod mini Softw my PC says not enough space onHD

    Hi, 1st time posting; I'm surprised by the huge amount of troubles people are experiencing with iPod mini. THE PROBLEM: my daughter bought iPod mini (4Gb) in July in the US (we live in Italy). When I try to install on my old PC the software from the

  • How to monitor background jobs automatically

    Hello, How to monitor background jobs automatically (we have more then 100+ jobs in a month and some jobs are repeating 4 - 5 times in a same day )  Now i am searching any salutation for monitor background jobs automatically Let me know the  options

  • READ statement problem-URGENT.

    hai experts, I am facing problem with read statement. <b>read table itab with key f1 = '10'."it works.</b> But, now i store value '<b>10'</b> in variable <b>f</b> and use it as follows. <b>read table itab with key f1 = f."it isn't working</b>. My req

  • Adobe Audition 3.0 only records in left channel

    Greetings!  I've got a Blue Yeti Pro mic hooked into an ART Tube MP Project Series USB pre-amp/interface (using XLR connection from mic - USB to computer).  When I record voice in Audition 3.0 it only records on the left channel for some reason.  I t