Facelets: Issue with   and other special characters

We are trying to use facelets for our JSF based project. If we use   in the included jsf pages these are not rendered properly in the resultant page. The resulting page eats all the  
layout file:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
<f:loadBundle basename="bundle.MessageBundle" var="res" />
<head>
<title>
<ui:insert name="title">Foo</ui:insert>
</title>
<sm:html-base target="_top" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="styles/default.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="scripts/main.js" />
</head>
<frameset rows="80,*,22" cols="*" framespacing="0" frameborder="no" border="0">
<ui:insert name="header">
<frame name="header" src="common/header.jsf" scrolling="no" noresize="yes" />
</ui:insert>
<frameset rows="*" cols="187,*" framespacing="0" frameborder="no" border="0">
<frame name="navigation" src="tree/tree.jsf" scrolling="auto" />
<ui:insert name="content">
<frame name="content" src="" scrolling="yes" />
</ui:insert>
</frameset>
<ui:insert name="footer">
<frame name="footer" src="common/footer.jsp" scrolling="no" noresize="yes" />
</ui:insert>
</frameset>
<noframes>
This browser does not support frames
</noframes>
</html>
~
In header.jsf
<td align="right" valign="middle" nowrap="yes">Start  <img src="images/seperatorGrey.gif"/>  Tools  <img src="images/seperatorGrey.gif"/>  Support  <img src="images/seperatorGrey.gif"/>  Logoff  </td>

Thank you both for replies ....
Since these urls are generated through code, what is the best way to go about it ?
Could you please explain a little about using of hash map in this case?
and excpet using escape characters, is there any other way to do it ?
Thanks again

Similar Messages

  • Capturing returns and other special characters

    Greetings,
    I'm curious to know what is 'normally' done to capture
    returns and other special characters from textareas. I want my user
    to be able to insert 'control' characters into the text area to
    allow them to provide some structure to the information they're
    entering. At the moment, I'm processing the text char by char and
    working out if it's an 'enter' or whatever, then appending a
    '<br />' to the string before I store it and so on.
    Is there a more established way to do this sort of
    thing?

    Use the replace function to replace either chr(10) or chr(13)
    with a break tag. It's using cold fusion functions to accomplish
    the same thing you appear to be doing manually.

  • E72: Swedish and other special characters not work...

    When I send mail through MfE, swedish and other special characters do not reach the recipient, they are just ignored. No blanks or nothing. Every word with a swedish character ends up one letter short.
    Before the firmware upgrade this was intermittent, happening only on about half of my mails.
    Now I upgraded yesterday, and it seems the problem is now permanent.
    Have seen similar posts from E75 and E90 owners, their problems seem to have been fixed by newer firmware.
    Our setup is: Exchange 2003, Portwise authentication.
    All other phone models work fine, like iPhone, E71 etc.
    /Sebastian

    After some testing I found out that if I use swedish chars in the subject line, it works fine. Even in the mail body.
    If I don't use swedish chars in the subject, they won't work in the body. I either get garbage or nothing where the swedish chars should be.
    The problem doesn't exist at all in my private IMAP mail account.
    Could someone who uses Mail for Exchange and have special chars in their alphabet (swedish, finnish, german, hungarian etc) pls tell me how it's working out for you?
    Message Edited by Seb_Martin on 28-Jan-2010 11:15 AM

  • 10g won't recognize ellipsis and other special characters.

    I'm trying to insert data into both VARCHAR2 and CLOB columns that contains characters such as ellipsis and other special characters. Oracle doesn't recognize the characters and just converts it to garbage. Is there a way to make Oracle easily recognize these characters?
    For example, it won't recognize the following ellipsis in the string:
    "Here we are … right now."

    My bad...I did look at the national character set instead.
    When I performed theq query you posted, I got the following:
    NLS_CHARACTERSET
    WE8MSWIN1252
    NLS_NCHAR_CHARACTERSET
    AL16UTF16
    I hope this new information helps. Also, the tool involved is SQL *Plus, but I'm currently concentrated on getting the insert to work via JDBC. Thanks in advance.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Storing carriage return and other special characters in a TestStand variable and passing to LabVIEW

    I am using TestStand step to call a LabVIEW VI that writes commands to a serial device.  The device expects a carriage return at the end of the command.  I can create a constant string in TestStand with the carriage return, e.g., "ATA\x0D" and pass that to a LabVIEW string control which shows ATA\r and the VI works properly.
    To provide consistency and flexibility in my code, I want to store the terminator character(s) in a TestStand variable.  However, when I try to use an expression to create the command string, i.e. "ATA" + "Locals.Terminator", where Locals.Terminator is set to "\x0D", my LabVIEW VI string control shows "ATA\\x0D" which doesn't work.  And when I try Locals.Terminator set to "\r", the LabVIEW string control shows "ATA\\r" which doesn't work either.
    Is there a way to store special characters in a TestStand variable and pass them to LabVIEW as special characters?  I saw in another post that if you edit the TestStand variable by pressing Cntl-Enter, it will store  the newline \n properly and it can be sent to LabVIEW - that works for me as well for \n.  But  I need to send a carriage return.
    I've attached my test sequence and the corresponding LabVIEW VI with a string control.
    Hans
    Attachments:
    Special Chars.seq ‏27 KB
    String Passing.vi ‏13 KB

    Hi Hans, 
    Thanks for your detailed explanation and examples.  In TestStand, change the String parameter's String Type to Binary String instead of ASCII.  Then it will pass the desired value.
    Cheers,
    David Goldberg
    National Instruments
    Software R&D

  • LAMBDA and other SPECIAL CHARACTERS

    Hello,
    Does someone know how to put in a lambda character? I have Framemaker 7.0 and the document I'm working on is non-structured. OS is Win XP Pro. All help and suggestions are greatly appreciated!!!

    Hi Bear,
    You could also try using the Equations pallete to insert the lambda symbol in para text. Here are the steps you could try:
    1. Place the cursor where you want to insert the character.
    2. Select Special > Equations
    3. From the Equations drop-down list, select New Small eqaution. An Eq frame is added with a ? mark.
    4. Click the lambda symbol from the buttons in the Equations palette. ? is replaced by the lambda symbol.
    5. Shrinkwrap the equation shortcut Esc m p.
    This should insert just the lambda character inline with the para text.
    Hope this helps.

  • I have set up my work Exchange email/calendar. After setting up I am getting passcode expired message and asking for changing the passcode with a 16   digit and 4 special characters. No combination of numberic, alphanumeric, special characters works. Help

    I have set up my work Exchange email/calendar. After setting up I am getting passcode expired message and asking for changing the passcode with a 16 +  digit and 4 special characters. No combination of numberic, alphanumeric, special characters is working. Help!!

    I have set up my work Exchange email/calendar. After setting up I am getting passcode expired message and asking for changing the passcode with a 16 +  digit and 4 special characters. No combination of numberic, alphanumeric, special characters is working. Help!!

  • I am with error of special characters in the hour to matter given in BI 7

    Good afternoon, I am with error of special characters in the hour to matter given in BI 7
    <a href="http://img234.imageshack.us/my.php?image=erroau3.jpg" target="_blank"><img src="http://img234.imageshack.us/img234/4083/erroau3.th.jpg" border="0" alt="Free Image Hosting at www.ImageShack.us" /></a>

    OK....!!!!!
    just download the Excel file (*.xls) and try open with Word-MS. In the document search by the string that you have mentioned in the question. (Use Ctrl +F).
    If you see something like "ABC bla bla ba & instead of  &amp ,  then you have to pass the data through the code I've mentioned.
    You can get more details on encoding special characters UTF-8 in Google.com or Sun Websites etc.
    You can also encode the & in hexadecimal format to get the desired output.

  • I want to download pictures from my iphone to my new computer.  I already have itunes on my pc. I need to download itunes on my new laptop, will this create issues with my other itunes?

    I want to download pictures from my iphone to my new laptop.  I already have itunes on my pc. I need to download itunes on my new laptop, will this create issues with my other itunes?

    m-cp wrote:
    I want to download pictures from my iphone to my new laptop.
    -> iOS: Importing personal photos and videos from iOS devices to your computer
    I need to download itunes on my new laptop, will this create issues with my other itunes?
    No.

  • Vbscript to rename files and replace special characters

    Dear Exprt,
    would you please help to add addtional requirement for rename and replace special characters for file
    by the below script i can re name.
    strAnswer = InputBox("Please enter folder location to rename files:", _
        "File rename")
        strfilenm = InputBox("Enter name:", _
        "Rename Files")
    Set FSO = CreateObject("Scripting.FileSystemObject")
    Sub visitFolder(folderVar)
        For Each fileToRename In folderVar.Files
            fileToRename.Name = strfilenm & fileToRename.Name
        Next
        For Each folderToVisit In folderVar.SubFolders
            visitFolder(folderToVisit)
        Next
    End Sub
    If FSO.FolderExists(strAnswer) Then
        visitFolder(FSO.getFolder(strAnswer))
    End If
    [email protected]

    Thx would you please look below what wrong in its run  nothing happend no error
    strAnswer = InputBox("Please enter folder location to rename files:", _
        "Test")
        strfilenm = InputBox("Enter name:", _
        "Rename Files")
    Set FSO = CreateObject("Scripting.FileSystemObject")
    Set regEx = New RegExp
    'Your pattern here
    Select Case tmpChar
    Case "&"
    changeTo = " and "
    Case "/"
    changeTo = "_"
    Case Else
    changeTo = " "
    End Select
    regEx.Pattern = tmpChar 
    Sub visitFolder(folderVar)
        For Each fileToRename In folderVar.Files
            fileToRename.Name = strfilenm & fileToRename.Name 
            fileToRename.Name = regEx.Replace(fileToRename.Name, tmpChar)
        Next
        For Each folderToVisit In folderVar.SubFolders
            visitFolder(folderToVisit)
        Next
    End Sub
    [email protected]

  • Getting rid of single quotes and other bad characters

    Hello All-
    I am writing a servlet that takes a value from a form, and saves it to a database. However, when single quotes, and other illegal characters are entered, i get all sorts of errors. I am certain their is some function that would take care of all of this.
    Help!

    Hi there,
    When you try to insert single quotes into the database it gives an error or problem because a single quote is a reserved character in the database.
    If you want to store a single quote or any other character that is reserved in the database then you need to find out how to escape that reserved character.
    One option is to use the single quote twice, so instead of ' , use '' (not double quote but , type single quote twice).
    Another option is to use HTML entity code for single quote
    "Message was edited by:
    appy77

  • HT1146 Just started using Apple mail.  Trying to set up email folders with Company/Company P.O. and it won't work.  Went to Edit and added special characters and it still won't work.  What am I doing wrong or can this not be done.

    Just started using apple mail.  Trying to set up email folders with example:  Company/Company P.O.  It won't let me do it.  It will not allow / or . .  What am I doing wrong or can this not be done.  I tried to use the Edit menu and adding the special characters, but it still won't work.  Please advise.  mmather

  • Second s5 update has made wifi and data run simutaniously, being charged for data only way to turn off Data is to go to settings. I had same issue with my other phone. Recieved two replacement phones the SIM card did not work on replacements took phone ba

    Wifi and Data running simultaneously. Data was being charged to my account even though I was on WIFI. No one can fix the issue. I have wasted 8 hours of my life and went and returned my phone and got a new one yet after the last update I now have WIFI and Data showing that they are running simultaneously.  I have looked at numerous message boards and turned off Caller ID don't have Volte on my phone but do get an error with Visual Voice Mail. I don't want any of these services, you are not helping your customers Verizon or Samsung with forcing us to update. I tried not to update my NEW phone that I had to get from Costco because of this exact same stupid issue happen on my last one. But every time I said NO to update the next time I did anything on the phone the UPDATE would pop up again. I would say NO it would come back. I was doing a text and it came up and I hit update not wanting to and then my phone began updating on a low battery. I had to rush to put on charge and then my WIFI and Data came back on together with arrows on all going up and down. I HATE the lack of support I get from SAMSUNG and VERIZON... Verizon washes their hands and say these are not Updates even though these are the features we have on all our phones like Visual Voice Mail and Volte...

    I did look at the Settings/Cellular to check the applications.  This is one of the steps I did with the person from Verizon who was an "iPhone Specialist".  And he didn't see anything unusual.  And I can honestly tell you they have very minimal number of apps on their phones.
    When I went to the Apple Store the first time with this problem, they had me update the phones iOS systems to see if this would correct the problem.  They were each running older versions but different versions.  One son had one update to do and the other had a couple of updates needed.  So, the problem started before they were updated and they weren't even on the same update.  And nothing changed after we did the updates.
    I didn't reboot the router and modem, because I'm not having any other issues with my phone, my husband's phone, our iPad, xbox, PS3, or laptops.  Would the wifi only affect their phones?

  • Dynamic Images in PDF and Escaping Special Characters

    I used the following to create my own PDFs with dymnamic images:
    http://marcsewtz.blogspot.com/2012_02_01_archive.html (Dynamic Images in PDF - What 32k Limit? )
    I have installed this application on Oracle's free workspace to test.
    The issue I am having is that when there is a special character in the description, such as <>'"& then the the PDF will not open. I have tried using the dmbs_xmlgen.convert to convert the description but haven't had any luck.
    I'm a complete novice with xml. Any help with this is greatly appreciated.
    Thanks,
    Glen

    I have been able to find a solution, but it's not completely perfect. I have changed the "description" field as follows:
    XMLCdata(replace(description,''&'',''and'')) description,
    The characters greater than (>), less than (<), single qoute('), and double quote (") can now all be in the description and will not cause errors. For some reason, I couldn't get the & not to give an error no matter what I tried, so I just replaced the & with the word "and". This solution will work for my needs, but it would be nice to be able to get the & to display.
    Does anyone know of a way to get the & to display correctly?
    Thanks again,
    Glen
    The complete code I am using is below:
    declare
    l_print_layout clob;
    l_xml_data clob;
    begin
    -- load print layout from database
    for c1 in (
    select layout from eba_pdfimg_layouts where id = :P1_LAYOUT
    ) loop
    l_print_layout := wwv_flow_utilities.blob_to_clob(c1.layout );
    end loop;
    -- generate XML data
    for c2 in (
    select dbms_xmlgen.getxml('
    select
    id,
    file_name,
    mime_type,
    XMLCdata(replace(description,''&'',''and'')) description,
    -- description,
    blob2clobase64(image,''Y'') image
    from eba_pdfimg_images
    ') xml_data from dual
    ) loop
    l_xml_data := c2.xml_data;
    end loop;
    -- download print document
    wwv_flow.g_page_text_generated := true;
    apex_util.download_print_document (
    p_file_name => 'image_demo',
    p_content_disposition => 'ATTACHMENT',
    p_report_data => l_xml_data ,
    p_report_layout => l_print_layout,
    p_report_layout_type => 'rtf',
    p_document_format => :P1_FORMAT
    end;

  • Epub conversion changing " and ' to special characters

    I am having an issue with one chapter of a book that I am converting to epub, all other chapters convert fine. Files are being imported from a Word file into InDesign, formatted and converted to .epub. Here is the issue I am having"
    The Hebrews used this practice as well in centuries to come. They worshipped at “high places” prior to the construction of the Temple. The Temple itself was erected on a high mountain in its region.
    is showing up like this in the epub file:
    The Hebrews used this practice as well in centuries to come. They worshipped at “high places� prior to the construction of the Temple. The Temple itself was erected on a high mountain in its region.
    notice the symbols instead of quotes. That is happening for every quotation or apostrophe in the chapter.

    Unless you've encountered a bug in InDesign, if the characters show up the same on the screen, they should be exporting the same.
    It does seem likely you've encountered a bug, but I think it's a lot more likely the bug is in the EPUB export code, which is new and rather fragile, to the point where it's been completely rewritten for CS5.5, I seem to recall hearing.
    But OK, let's do some tests.
    For one thing, highlight the characters in question in InDesign and check the Info panel -- are they the same unicode value?
    Next, let's find hte smallest reproducible test case that causes this.
    So, working with a copy of your document/book, first try combining two chapters into a single INDD file and seeing if you can reproduce the problem.
    If not, next make a book with only two INDD files and make the problem happen.
    Then delete as much as you can of the surrounding text until you can still make the problem happen.
    Then report back.
    If you can share such a file, we can probably figure it out.
    As noted above, the EPUB export code is fragile. That's because Adobe used it as an example of how components of InDesign can be written in JavaScript rather than in C++, as a guide for how to extend InDesign. One advantage of that is the epub javascript source code is available (in the indesign sdk), so if we're feeling sufficiently enthusiastic, we can inspect the source code, modify it add instrumentation to tell us what is going on, and perhaps even fix the problem in there.
    I'm not that enthusiastic, but I'll willing to at least look at it if all else fails. I gather you've got a deadline?

Maybe you are looking for