From jira-events at lists.jboss.org Wed Nov 19 09:08:38 2008 Content-Type: multipart/mixed; boundary="===============4053617936994333885==" MIME-Version: 1.0 From: Gal Rubinstein (JIRA) To: richfaces-issues at lists.jboss.org Subject: [richfaces-issues] [JBoss JIRA] Created: (RF-4987) ajax response faise Javascript XML parser without jTidy Date: Wed, 19 Nov 2008 09:08:38 -0500 Message-ID: <19451160.1227103718060.JavaMail.jira@cloud.prod.atl2.jboss.com> --===============4053617936994333885== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable ajax response faise Javascript XML parser without jTidy ------------------------------------------------------- Key: RF-4987 URL: https://jira.jboss.org/jira/browse/RF-4987 Project: RichFaces Issue Type: Bug Affects Versions: 3.2.1 Environment: win XP/Linux, jboss 4.2.2 GA + JDK 1.5u11 Reporter: Gal Rubinstein in web.xml we added the contex-param/init -param to remove jTidy Filer: --fragment--- javax.faces.STATE_SAVING_METHOD server org.richfaces.LoadScriptStrategy ALL org.richfaces.LoadStyleStrategy ALL org.ajax4jsf.COMPRESS_SCRIPT false org.ajax4jsf.SERIALIZE_SERVER_STATE false org.ajax4jsf.xmlparser.ORDER NONE org.ajax4jsf.xmlparser.NONE .* org.ajax4jsf.xmlfilter.forcenotrf false = RichFaces Filter richfaces org.ajax4jsf.Filter enable-cache true forceparser false = .......... --end fragment--- the JSP fragment causing this problem is apparently this (judging from from= the id inside response): --fragment--- <%@ include file=3D"simpleToggleMarkers.jsp"%> ..... -- end fragment--- a4j:log outputs: --fragment--- error[15:58:07,101]: Error parsing XML error[15:58:07,101]: Parse Error: XML Parsing Error: Whitespace is not allo= wed at this location. Location: Line Number 56, Column 123: ---------------------------------------------------------------------------= ------------------------------------------------^ --end fragment--- finding this fragment inside the log console we can see this: .... --fragment--- pvp.split(',');for (var i =3D 0,ii =3D 0;i < ps.length;i++,ii++) {var p =3D= document.createElement("input");p.type =3D "hidden";p.name =3D ps[i];p.val= ue =3D ps[i + 1];f.appendChild(p);adp[ii] =3D p;i +=3D 1;}};function jsfclj= s(f, pvp, t) {apf(f, pvp);var ft =3D f.target;if (t) {f.target =3D t;}f.sub= mit();f.target =3D ft;dpf(f);}; Create a New Project
< ...... (notice th '' id "matches" the one in jsp fragment --end fragment--- between '' and ' To: richfaces-issues at lists.jboss.org Subject: [richfaces-issues] [JBoss JIRA] Updated: (RF-4987) ajax response fails Javascript XML parser without jTidy Date: Thu, 20 Nov 2008 02:23:36 -0500 Message-ID: <6464816.1227165816723.JavaMail.jira@cloud.prod.atl2.jboss.com> In-Reply-To: 19451160.1227103718060.JavaMail.jira@cloud.prod.atl2.jboss.com --===============4405326195910708979== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable [ https://jira.jboss.org/jira/browse/RF-4987?page=3Dcom.atlassian.jira= .plugin.system.issuetabpanels:all-tabpanel ] Gal Rubinstein updated RF-4987: ------------------------------- Summary: ajax response fails Javascript XML parser without jTidy (= was: ajax response faise Javascript XML parser without jTidy) Description: = in web.xml we added the contex-param/init -param to remove jTidy Filer: --fragment--- javax.faces.STATE_SAVING_METHOD server org.richfaces.LoadScriptStrategy ALL org.richfaces.LoadStyleStrategy ALL org.ajax4jsf.COMPRESS_SCRIPT false org.ajax4jsf.SERIALIZE_SERVER_STATE false org.ajax4jsf.xmlparser.ORDER NONE org.ajax4jsf.xmlparser.NONE .* org.ajax4jsf.xmlfilter.forcenotrf false = RichFaces Filter richfaces org.ajax4jsf.Filter enable-cache true forceparser false = .......... --end fragment--- the JSP fragment causing this problem is apparently this (judging from from= the id inside response): --fragment--- <%@ include file=3D"simpleToggleMarkers.jsp"%> ..... -- end fragment--- a4j:log outputs: --fragment--- error[15:58:07,101]: Error parsing XML error[15:58:07,101]: Parse Error: XML Parsing Error: Whitespace is not allo= wed at this location. Location: Line Number 56, Column 123: ---------------------------------------------------------------------------= ------------------------------------------------^ --end fragment--- finding this fragment inside the log console we can see this: .... --fragment--- pvp.split(',');for (var i =3D 0,ii =3D 0;i < ps.length;i++,ii++) {var p =3D= document.createElement("input");p.type =3D "hidden";p.name =3D ps[i];p.val= ue =3D ps[i + 1];f.appendChild(p);adp[ii] =3D p;i +=3D 1;}};function jsfclj= s(f, pvp, t) {apf(f, pvp);var ft =3D f.target;if (t) {f.target =3D t;}f.sub= mit();f.target =3D ft;dpf(f);}; Create a New Project
< ...... = --end fragment--- probably caused because there is no CDATA surrounding the javascript = was: in web.xml we added the contex-param/init -param to remove jTidy Filer: --fragment--- javax.faces.STATE_SAVING_METHOD server org.richfaces.LoadScriptStrategy ALL org.richfaces.LoadStyleStrategy ALL org.ajax4jsf.COMPRESS_SCRIPT false org.ajax4jsf.SERIALIZE_SERVER_STATE false org.ajax4jsf.xmlparser.ORDER NONE org.ajax4jsf.xmlparser.NONE .* org.ajax4jsf.xmlfilter.forcenotrf false = RichFaces Filter richfaces org.ajax4jsf.Filter enable-cache true forceparser false = .......... --end fragment--- the JSP fragment causing this problem is apparently this (judging from from= the id inside response): --fragment--- <%@ include file=3D"simpleToggleMarkers.jsp"%> ..... -- end fragment--- a4j:log outputs: --fragment--- error[15:58:07,101]: Error parsing XML error[15:58:07,101]: Parse Error: XML Parsing Error: Whitespace is not allo= wed at this location. Location: Line Number 56, Column 123: ---------------------------------------------------------------------------= ------------------------------------------------^ --end fragment--- finding this fragment inside the log console we can see this: .... --fragment--- pvp.split(',');for (var i =3D 0,ii =3D 0;i < ps.length;i++,ii++) {var p =3D= document.createElement("input");p.type =3D "hidden";p.name =3D ps[i];p.val= ue =3D ps[i + 1];f.appendChild(p);adp[ii] =3D p;i +=3D 1;}};function jsfclj= s(f, pvp, t) {apf(f, pvp);var ft =3D f.target;if (t) {f.target =3D t;}f.sub= mit();f.target =3D ft;dpf(f);}; Create a New Project
>
< ...... (notice th '' id "matches" the one in jsp fragment --end fragment--- between '' and ' ajax response fails Javascript XML parser without jTidy > ------------------------------------------------------- > > Key: RF-4987 > URL: https://jira.jboss.org/jira/browse/RF-4987 > Project: RichFaces > Issue Type: Bug > Affects Versions: 3.2.1 > Environment: win XP/Linux, jboss 4.2.2 GA + JDK 1.5u11 > Reporter: Gal Rubinstein > > in web.xml we added the contex-param/init -param to remove jTidy Filer: > --fragment--- > > javax.faces.STATE_SAVING_METHOD > server > > > org.richfaces.LoadScriptStrategy > ALL > > > org.richfaces.LoadStyleStrategy > ALL > > > org.ajax4jsf.COMPRESS_SCRIPT > false > > > org.ajax4jsf.SERIALIZE_SERVER_STATE > false > > > org.ajax4jsf.xmlparser.ORDER > NONE > > > org.ajax4jsf.xmlparser.NONE > .* > > > org.ajax4jsf.xmlfilter.forcenotrf > false > = > > RichFaces Filter > richfaces > org.ajax4jsf.Filter > > enable-cache > true > > forceparser > false > > > = > .......... > --end fragment--- > the JSP fragment causing this problem is apparently this (judging from fr= om the id inside response): > --fragment--- > bodyClass=3D"toggle_panel_body" styleClass=3D"toggle_panel" > headerClass=3D"toggle_panel_header" id=3D"panel_of_my_projects_lis= t" > opened=3D"true"> > <%@ include file=3D"simpleToggleMarkers.jsp"%> > > columnClasses=3D"text_aligned_left,text_aligned_right" > styleClass=3D"toggle_panel_header_controls" columns=3D"2" > cellpadding=3D"0" cellspacing=3D"0" border=3D"0"> > value=3D"#{msg.title_my_projects}"> > id=3D"create_new_project_link" > actionListener=3D"#{ProjectListBean.doCreateNewProject}" > value=3D"#{msg.button_create_new_project}" > styleClass=3D"non_toggling_panel_header_link_last_on_right_seco= nd_level" > action=3D"projectDetailsBackground"> > > > > ..... > -- end fragment--- > a4j:log outputs: > --fragment--- > error[15:58:07,101]: Error parsing XML > error[15:58:07,101]: Parse Error: XML Parsing Error: Whitespace is not al= lowed at this location. > Location: Line Number 56, Column 123: > > -------------------------------------------------------------------------= --------------------------------------------------^ > --end fragment--- > finding this fragment inside the log console we can see this: > .... > --fragment--- > pvp.split(',');for (var i =3D 0,ii =3D 0;i < ps.length;i++,ii++) {var p = =3D document.createElement("input");p.type =3D "hidden";p.name =3D ps[i];p.= value =3D ps[i + 1];f.appendChild(p);adp[ii] =3D p;i +=3D 1;}};function jsf= cljs(f, pvp, t) {apf(f, pvp);var ft =3D f.target;if (t) {f.target =3D t;}f.= submit();f.target =3D ft;dpf(f);}; > Create a New Project
>
> >
< > ...... = > --end fragment--- > probably caused because there is no CDATA surrounding the javascript > = -- = This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: htt= ps://jira.jboss.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira =20 --===============4405326195910708979==-- From jira-events at lists.jboss.org Fri Dec 5 00:25:36 2008 Content-Type: multipart/mixed; boundary="===============5740790574626029505==" MIME-Version: 1.0 From: Nick Belaevski (JIRA) To: richfaces-issues at lists.jboss.org Subject: [richfaces-issues] [JBoss JIRA] Updated: (RF-4987) ajax response fails Javascript XML parser without jTidy Date: Fri, 05 Dec 2008 00:25:36 -0500 Message-ID: <4276397.1228454736493.JavaMail.jira@cloud.prod.atl2.jboss.com> In-Reply-To: 19451160.1227103718060.JavaMail.jira@cloud.prod.atl2.jboss.com --===============5740790574626029505== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable [ https://jira.jboss.org/jira/browse/RF-4987?page=3Dcom.atlassian.jira= .plugin.system.issuetabpanels:all-tabpanel ] Nick Belaevski updated RF-4987: ------------------------------- Workaround Description: = 1. Set com.sun.faces.externalizeJavaScript =3D true 2. Use NEKO parser if you don't want Tidy Fix Version/s: Future Priority: Minor (was: Major) Workaround: [Workaround Exists] > ajax response fails Javascript XML parser without jTidy > ------------------------------------------------------- > > Key: RF-4987 > URL: https://jira.jboss.org/jira/browse/RF-4987 > Project: RichFaces > Issue Type: Bug > Affects Versions: 3.2.1 > Environment: win XP/Linux, jboss 4.2.2 GA + JDK 1.5u11 > Reporter: Gal Rubinstein > Priority: Minor > Fix For: Future > > > in web.xml we added the contex-param/init -param to remove jTidy Filer: > --fragment--- > > javax.faces.STATE_SAVING_METHOD > server > > > org.richfaces.LoadScriptStrategy > ALL > > > org.richfaces.LoadStyleStrategy > ALL > > > org.ajax4jsf.COMPRESS_SCRIPT > false > > > org.ajax4jsf.SERIALIZE_SERVER_STATE > false > > > org.ajax4jsf.xmlparser.ORDER > NONE > > > org.ajax4jsf.xmlparser.NONE > .* > > > org.ajax4jsf.xmlfilter.forcenotrf > false > = > > RichFaces Filter > richfaces > org.ajax4jsf.Filter > > enable-cache > true > > forceparser > false > > > = > .......... > --end fragment--- > the JSP fragment causing this problem is apparently this (judging from fr= om the id inside response): > --fragment--- > bodyClass=3D"toggle_panel_body" styleClass=3D"toggle_panel" > headerClass=3D"toggle_panel_header" id=3D"panel_of_my_projects_lis= t" > opened=3D"true"> > <%@ include file=3D"simpleToggleMarkers.jsp"%> > > columnClasses=3D"text_aligned_left,text_aligned_right" > styleClass=3D"toggle_panel_header_controls" columns=3D"2" > cellpadding=3D"0" cellspacing=3D"0" border=3D"0"> > value=3D"#{msg.title_my_projects}"> > id=3D"create_new_project_link" > actionListener=3D"#{ProjectListBean.doCreateNewProject}" > value=3D"#{msg.button_create_new_project}" > styleClass=3D"non_toggling_panel_header_link_last_on_right_seco= nd_level" > action=3D"projectDetailsBackground"> > > > > ..... > -- end fragment--- > a4j:log outputs: > --fragment--- > error[15:58:07,101]: Error parsing XML > error[15:58:07,101]: Parse Error: XML Parsing Error: Whitespace is not al= lowed at this location. > Location: Line Number 56, Column 123: > > -------------------------------------------------------------------------= --------------------------------------------------^ > --end fragment--- > finding this fragment inside the log console we can see this: > .... > --fragment--- > pvp.split(',');for (var i =3D 0,ii =3D 0;i < ps.length;i++,ii++) {var p = =3D document.createElement("input");p.type =3D "hidden";p.name =3D ps[i];p.= value =3D ps[i + 1];f.appendChild(p);adp[ii] =3D p;i +=3D 1;}};function jsf= cljs(f, pvp, t) {apf(f, pvp);var ft =3D f.target;if (t) {f.target =3D t;}f.= submit();f.target =3D ft;dpf(f);}; > Create a New Project
>
> >
< > ...... = > --end fragment--- > probably caused because there is no CDATA surrounding the javascript > = -- = This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: htt= ps://jira.jboss.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira =20 --===============5740790574626029505==-- From jira-events at lists.jboss.org Mon Jan 26 08:28:54 2009 Content-Type: multipart/mixed; boundary="===============0653889830553258651==" MIME-Version: 1.0 From: Nick Belaevski (JIRA) To: richfaces-issues at lists.jboss.org Subject: [richfaces-issues] [JBoss JIRA] Resolved: (RF-4987) ajax response fails Javascript XML parser without jTidy Date: Mon, 26 Jan 2009 08:28:44 -0500 Message-ID: <32999704.1232976524407.JavaMail.jira@cloud.prod.atl2.jboss.com> In-Reply-To: 19451160.1227103718060.JavaMail.jira@cloud.prod.atl2.jboss.com --===============0653889830553258651== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable [ https://jira.jboss.org/jira/browse/RF-4987?page=3Dcom.atlassian.jira= .plugin.system.issuetabpanels:all-tabpanel ] Nick Belaevski resolved RF-4987. -------------------------------- Fix Version/s: 3.3.1 (was: Future) Resolution: Won't Fix Assignee: Tsikhon Kuprevich JSF 2.0 will address the problem by introducing XHTML markup. JSF 1.2 is HT= ML compatible, so filtering still should be used when standard components a= re used > ajax response fails Javascript XML parser without jTidy > ------------------------------------------------------- > > Key: RF-4987 > URL: https://jira.jboss.org/jira/browse/RF-4987 > Project: RichFaces > Issue Type: Bug > Affects Versions: 3.2.1 > Environment: win XP/Linux, jboss 4.2.2 GA + JDK 1.5u11 > Reporter: Gal Rubinstein > Assignee: Tsikhon Kuprevich > Priority: Minor > Fix For: 3.3.1 > > > in web.xml we added the contex-param/init -param to remove jTidy Filer: > --fragment--- > > javax.faces.STATE_SAVING_METHOD > server > > > org.richfaces.LoadScriptStrategy > ALL > > > org.richfaces.LoadStyleStrategy > ALL > > > org.ajax4jsf.COMPRESS_SCRIPT > false > > > org.ajax4jsf.SERIALIZE_SERVER_STATE > false > > > org.ajax4jsf.xmlparser.ORDER > NONE > > > org.ajax4jsf.xmlparser.NONE > .* > > > org.ajax4jsf.xmlfilter.forcenotrf > false > = > > RichFaces Filter > richfaces > org.ajax4jsf.Filter > > enable-cache > true > > forceparser > false > > > = > .......... > --end fragment--- > the JSP fragment causing this problem is apparently this (judging from fr= om the id inside response): > --fragment--- > bodyClass=3D"toggle_panel_body" styleClass=3D"toggle_panel" > headerClass=3D"toggle_panel_header" id=3D"panel_of_my_projects_lis= t" > opened=3D"true"> > <%@ include file=3D"simpleToggleMarkers.jsp"%> > > columnClasses=3D"text_aligned_left,text_aligned_right" > styleClass=3D"toggle_panel_header_controls" columns=3D"2" > cellpadding=3D"0" cellspacing=3D"0" border=3D"0"> > value=3D"#{msg.title_my_projects}"> > id=3D"create_new_project_link" > actionListener=3D"#{ProjectListBean.doCreateNewProject}" > value=3D"#{msg.button_create_new_project}" > styleClass=3D"non_toggling_panel_header_link_last_on_right_seco= nd_level" > action=3D"projectDetailsBackground"> > > > > ..... > -- end fragment--- > a4j:log outputs: > --fragment--- > error[15:58:07,101]: Error parsing XML > error[15:58:07,101]: Parse Error: XML Parsing Error: Whitespace is not al= lowed at this location. > Location: Line Number 56, Column 123: > > -------------------------------------------------------------------------= --------------------------------------------------^ > --end fragment--- > finding this fragment inside the log console we can see this: > .... > --fragment--- > pvp.split(',');for (var i =3D 0,ii =3D 0;i < ps.length;i++,ii++) {var p = =3D document.createElement("input");p.type =3D "hidden";p.name =3D ps[i];p.= value =3D ps[i + 1];f.appendChild(p);adp[ii] =3D p;i +=3D 1;}};function jsf= cljs(f, pvp, t) {apf(f, pvp);var ft =3D f.target;if (t) {f.target =3D t;}f.= submit();f.target =3D ft;dpf(f);}; > Create a New Project
>
> >
< > ...... = > --end fragment--- > probably caused because there is no CDATA surrounding the javascript > = -- = This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: htt= ps://jira.jboss.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira =20 --===============0653889830553258651==-- From jira-events at lists.jboss.org Tue Feb 10 10:32:32 2009 Content-Type: multipart/mixed; boundary="===============2620589075793153173==" MIME-Version: 1.0 From: Tsikhon Kuprevich (JIRA) To: richfaces-issues at lists.jboss.org Subject: [richfaces-issues] [JBoss JIRA] Closed: (RF-4987) ajax response fails Javascript XML parser without jTidy Date: Tue, 10 Feb 2009 10:05:01 -0500 Message-ID: <21586612.1234278302356.JavaMail.jira@cloud.prod.atl2.jboss.com> In-Reply-To: 19451160.1227103718060.JavaMail.jira@cloud.prod.atl2.jboss.com --===============2620589075793153173== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable [ https://jira.jboss.org/jira/browse/RF-4987?page=3Dcom.atlassian.jira= .plugin.system.issuetabpanels:all-tabpanel ] Tsikhon Kuprevich closed RF-4987. --------------------------------- > ajax response fails Javascript XML parser without jTidy > ------------------------------------------------------- > > Key: RF-4987 > URL: https://jira.jboss.org/jira/browse/RF-4987 > Project: RichFaces > Issue Type: Bug > Affects Versions: 3.2.1 > Environment: win XP/Linux, jboss 4.2.2 GA + JDK 1.5u11 > Reporter: Gal Rubinstein > Assignee: Tsikhon Kuprevich > Priority: Minor > Fix For: 3.3.1 > > > in web.xml we added the contex-param/init -param to remove jTidy Filer: > --fragment--- > > javax.faces.STATE_SAVING_METHOD > server > > > org.richfaces.LoadScriptStrategy > ALL > > > org.richfaces.LoadStyleStrategy > ALL > > > org.ajax4jsf.COMPRESS_SCRIPT > false > > > org.ajax4jsf.SERIALIZE_SERVER_STATE > false > > > org.ajax4jsf.xmlparser.ORDER > NONE > > > org.ajax4jsf.xmlparser.NONE > .* > > > org.ajax4jsf.xmlfilter.forcenotrf > false > = > > RichFaces Filter > richfaces > org.ajax4jsf.Filter > > enable-cache > true > > forceparser > false > > > = > .......... > --end fragment--- > the JSP fragment causing this problem is apparently this (judging from fr= om the id inside response): > --fragment--- > bodyClass=3D"toggle_panel_body" styleClass=3D"toggle_panel" > headerClass=3D"toggle_panel_header" id=3D"panel_of_my_projects_lis= t" > opened=3D"true"> > <%@ include file=3D"simpleToggleMarkers.jsp"%> > > columnClasses=3D"text_aligned_left,text_aligned_right" > styleClass=3D"toggle_panel_header_controls" columns=3D"2" > cellpadding=3D"0" cellspacing=3D"0" border=3D"0"> > value=3D"#{msg.title_my_projects}"> > id=3D"create_new_project_link" > actionListener=3D"#{ProjectListBean.doCreateNewProject}" > value=3D"#{msg.button_create_new_project}" > styleClass=3D"non_toggling_panel_header_link_last_on_right_seco= nd_level" > action=3D"projectDetailsBackground"> > > > > ..... > -- end fragment--- > a4j:log outputs: > --fragment--- > error[15:58:07,101]: Error parsing XML > error[15:58:07,101]: Parse Error: XML Parsing Error: Whitespace is not al= lowed at this location. > Location: Line Number 56, Column 123: > > -------------------------------------------------------------------------= --------------------------------------------------^ > --end fragment--- > finding this fragment inside the log console we can see this: > .... > --fragment--- > pvp.split(',');for (var i =3D 0,ii =3D 0;i < ps.length;i++,ii++) {var p = =3D document.createElement("input");p.type =3D "hidden";p.name =3D ps[i];p.= value =3D ps[i + 1];f.appendChild(p);adp[ii] =3D p;i +=3D 1;}};function jsf= cljs(f, pvp, t) {apf(f, pvp);var ft =3D f.target;if (t) {f.target =3D t;}f.= submit();f.target =3D ft;dpf(f);}; > Create a New Project
>
> >
< > ...... = > --end fragment--- > probably caused because there is no CDATA surrounding the javascript > = -- = This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: htt= ps://jira.jboss.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira =20 --===============2620589075793153173==-- From jira-events at lists.jboss.org Tue Feb 9 15:32:19 2010 Content-Type: multipart/mixed; boundary="===============0183847656134792083==" MIME-Version: 1.0 From: Dmytro Lisnichenko (JIRA) To: richfaces-issues at lists.jboss.org Subject: [richfaces-issues] [JBoss JIRA] Reopened: (RF-4987) ajax response fails Javascript XML parser without jTidy Date: Tue, 09 Feb 2010 15:32:19 -0500 Message-ID: <985413487.1265747539136.JavaMail.jboss@jira01.app.mwc.hst.phx2.redhat.com> In-Reply-To: 19451160.1227103718060.JavaMail.jira@cloud.prod.atl2.jboss.com --===============0183847656134792083== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable [ https://jira.jboss.org/jira/browse/RF-4987?page=3Dcom.atlassian.jira= .plugin.system.issuetabpanels:all-tabpanel ] Dmytro Lisnichenko reopened RF-4987: ------------------------------------ > ajax response fails Javascript XML parser without jTidy > ------------------------------------------------------- > > Key: RF-4987 > URL: https://jira.jboss.org/jira/browse/RF-4987 > Project: RichFaces > Issue Type: Bug > Security Level: Public(Everyone can see) = > Affects Versions: 3.2.1 > Environment: win XP/Linux, jboss 4.2.2 GA + JDK 1.5u11 > Reporter: Gal Rubinstein > Assignee: Tsikhon Kuprevich > Priority: Minor > Fix For: 3.3.1 > > > in web.xml we added the contex-param/init -param to remove jTidy Filer: > --fragment--- > > javax.faces.STATE_SAVING_METHOD > server > > > org.richfaces.LoadScriptStrategy > ALL > > > org.richfaces.LoadStyleStrategy > ALL > > > org.ajax4jsf.COMPRESS_SCRIPT > false > > > org.ajax4jsf.SERIALIZE_SERVER_STATE > false > > > org.ajax4jsf.xmlparser.ORDER > NONE > > > org.ajax4jsf.xmlparser.NONE > .* > > > org.ajax4jsf.xmlfilter.forcenotrf > false > = > > RichFaces Filter > richfaces > org.ajax4jsf.Filter > > enable-cache > true > > forceparser > false > > > = > .......... > --end fragment--- > the JSP fragment causing this problem is apparently this (judging from fr= om the id inside response): > --fragment--- > bodyClass=3D"toggle_panel_body" styleClass=3D"toggle_panel" > headerClass=3D"toggle_panel_header" id=3D"panel_of_my_projects_lis= t" > opened=3D"true"> > <%@ include file=3D"simpleToggleMarkers.jsp"%> > > columnClasses=3D"text_aligned_left,text_aligned_right" > styleClass=3D"toggle_panel_header_controls" columns=3D"2" > cellpadding=3D"0" cellspacing=3D"0" border=3D"0"> > value=3D"#{msg.title_my_projects}"> > id=3D"create_new_project_link" > actionListener=3D"#{ProjectListBean.doCreateNewProject}" > value=3D"#{msg.button_create_new_project}" > styleClass=3D"non_toggling_panel_header_link_last_on_right_seco= nd_level" > action=3D"projectDetailsBackground"> > > > > ..... > -- end fragment--- > a4j:log outputs: > --fragment--- > error[15:58:07,101]: Error parsing XML > error[15:58:07,101]: Parse Error: XML Parsing Error: Whitespace is not al= lowed at this location. > Location: Line Number 56, Column 123: > > -------------------------------------------------------------------------= --------------------------------------------------^ > --end fragment--- > finding this fragment inside the log console we can see this: > .... > --fragment--- > pvp.split(',');for (var i =3D 0,ii =3D 0;i < ps.length;i++,ii++) {var p = =3D document.createElement("input");p.type =3D "hidden";p.name =3D ps[i];p.= value =3D ps[i + 1];f.appendChild(p);adp[ii] =3D p;i +=3D 1;}};function jsf= cljs(f, pvp, t) {apf(f, pvp);var ft =3D f.target;if (t) {f.target =3D t;}f.= submit();f.target =3D ft;dpf(f);}; > Create a New Project
>
>
< > ...... = > --end fragment--- > probably caused because there is no CDATA surrounding the javascript > = -- = This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: htt= ps://jira.jboss.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira =20 --===============0183847656134792083==--