-
1. Re: s:formattedText breaking, and seamspace
hstang Jul 4, 2007 7:24 PM (in response to hstang)Sorry, I should provide a little more information:
In seamspace when I post a blog entry, let say: 32" TV
I get a screen with the following message:XML Parsing Error: mismatched tag. Expected: </q>. Location: http://localhost:8080/seam-space/blog.seam?name=awho&cid=6 Line Number 47, Column 11:32<q> TV</p> ----------^
and in my console:expecting DOUBLEQUOTE, found '?'
-
2. Re: s:formattedText breaking, and seamspace
saeediqbal1 Sep 11, 2007 5:07 PM (in response to hstang)i am facing similar issue
XML Parsing Error: mismatched tag. Expected: .
Location: http://localhost:8080/seam-blog/seam/index.xhtml
Line Number 37, Column 13:Okie dokke
------------^
please help resolve this. whats the point of having a text box when it cannot parse special characters.
thanks
Its the seam-blog example. -
3. Re: s:formattedText breaking, and seamspace
saeediqbal1 Sep 11, 2007 5:43 PM (in response to hstang)Here is the string i put in a blog post to reproduce the error ..
lets see if we can test this thing. I(* D&23= ' ' '" /a sdrfd
Okie dokke
-----
Please fix this Jboss Seam Team!!! looks bad -
5. Re: s:formattedText breaking, and seamspace
saeediqbal1 Sep 11, 2007 7:08 PM (in response to hstang)I am thinking of putting this method to save the day. Would you guys let me know what would be the best place to put it in ?
public static String stripNonValidXMLCharacters(String in) { StringBuffer out = new StringBuffer(); // Used to hold the output. char current; // Used to reference the current character. if (in == null || ("".equals(in))) return ""; // vacancy test. for (int i = 0; i < in.length(); i++) { current = in.charAt(i); // NOTE: No IndexOutOfBoundsException caught here; it should not happen. if ((current == 0x9) || (current == 0xA) || (current == 0xD) || ((current >= 0x20) && (current <= 0xD7FF)) || ((current >= 0xE000) && (current <= 0xFFFD)) || ((current >= 0x10000) && (current <= 0x10FFFF))) out.append(current); } return out.toString(); }
-
6. Re: s:formattedText breaking, and seamspace
shane.bryzak Sep 12, 2007 9:21 PM (in response to hstang)Literal double-quotes must be escaped with a backslash, i.e:
Today I bought a 32\" television
-
7. Re: s:formattedText breaking, and seamspace
matt.drees Sep 14, 2007 11:55 PM (in response to hstang)I think it might be helpful to provide seamtext validator. I'm working on one currently, actually, so if you guys think it'd be useful, I'll make a jira and upload what I have when I've tested it more.
-
8. Re: s:formattedText breaking, and seamspace
pmuir Sep 15, 2007 7:00 PM (in response to hstang)Please Matt do :) I don't think Christian has such a thing atm.