Problem with nested CDATA sections in scripts in a PPR

2010-07-12 Thread Bruno Aranda
Hi, I have a partial response that contains invalid syntax because CDATA sections are nested. For example, in my app this code is generated in the partial response: ?xml version=1.0 encoding=UTF-8?partialResponsecomponentscomponentideditorForm/idoutput![CDATA[form id=editorForm name=editorForm

Re: Problem with nested CDATA sections in scripts in a PPR

2010-07-12 Thread Werner Punz
Hi Bruno, please file a bugreport on it. We should fix this before 2.0.1 this is a bug in the ppr responsewriter on the server side. I was fixing exactly this issue a few months ago, maybe we have some regression bug here. Werner Am 12.07.10 14:48, schrieb Bruno Aranda: Hi, I have a

Re: Problem with nested CDATA sections in scripts in a PPR

2010-07-12 Thread Werner Punz
Never mind, I will file it myself. Werner Am 12.07.10 15:33, schrieb Werner Punz: Hi Bruno, please file a bugreport on it. We should fix this before 2.0.1 this is a bug in the ppr responsewriter on the server side. I was fixing exactly this issue a few months ago, maybe we have some

Re: Problem with nested CDATA sections in scripts in a PPR

2010-07-12 Thread Werner Punz
Hi Bruno can you file a snippet of the original xhtml markup into https://issues.apache.org/jira/browse/MYFACES-2811 Werner Am 12.07.10 15:33, schrieb Werner Punz: Hi Bruno, please file a bugreport on it. We should fix this before 2.0.1 this is a bug in the ppr responsewriter on the server

Re: Problem with nested CDATA sections in scripts in a PPR

2010-07-12 Thread Bruno Aranda
No no, it is already filed! :) https://issues.apache.org/jira/browse/MYFACES-2812 Cheers, Bruno On 12 July 2010 14:42, Werner Punz werner.p...@gmail.com wrote: Never mind, I will file it myself. Werner Am 12.07.10 15:33, schrieb Werner Punz: Hi Bruno, please file a bugreport on it. We

Re: Problem with nested CDATA sections in scripts in a PPR

2010-07-12 Thread Bruno Aranda
I will create a simple test case, Cheers, Bruno On 12 July 2010 14:47, Werner Punz werner.p...@gmail.com wrote: Hi Bruno can you file a snippet of the original xhtml markup into https://issues.apache.org/jira/browse/MYFACES-2811 Werner Am 12.07.10 15:33, schrieb Werner Punz: Hi

Re: Problem with nested CDATA sections in scripts in a PPR

2010-07-12 Thread Werner Punz
Hi Bruno, can you drop the snippet of the original jsf code also, I need to setup a testcase and also need to know which component is at fault here. I rechecked our code, theoretically this should be covered in our PartialResponseWriterImpl, I suspect primefaces running its own responseWriter

Re: Problem with nested CDATA sections in scripts in a PPR

2010-07-12 Thread Werner Punz
Superb, as I said I am not entirely sure if myfaces is at fault here, my personal guess goes towards a custom partial response writer on the PrimeFaces side, but I am guessing here, because we have fallback code in our ppr responseWriter which exactly should cover what we have here:

Re: Problem with nested CDATA sections in scripts in a PPR

2010-07-12 Thread Bruno Aranda
I think you may be right, I have tried to test cases (attached to the JIRA ticket). One using a primefaces button and the other using a jsf standard button, and the latter works as expected. Bruno On 12 July 2010 15:03, Werner Punz werner.p...@gmail.com wrote: Superb, as I said I am not

Re: Problem with nested CDATA sections in scripts in a PPR

2010-07-12 Thread Marcus Büttner
Hi, I've a similar problem with primefaces and myfaces. The standard f:ajax to rerender a component works as espected but p:ajax do not update other primefaces components. I've posted it to the primefaces forum but with mojarra it seems to work. my example: h:form id=myForm

Re: Problem with nested CDATA sections in scripts in a PPR

2010-07-12 Thread Bruno Aranda
Yes, it looks to me like the same thing. That is the thread in the primefaces forum: http://primefaces.prime.com.tr/forum/viewtopic.php?f=3t=3265p=15035 On 12 July 2010 15:21, Marcus Büttner m...@buett.at wrote: Hi, I've a similar problem with primefaces and myfaces. The standard f:ajax to

Re: Problem with nested CDATA sections in scripts in a PPR

2010-07-12 Thread Bruno Aranda
The bug seems to be that primefaces tries to use the HtmlResponseWriterImpl instead of the PartialResponseWriterImpl... Bruno On 12 July 2010 15:28, Bruno Aranda brunoara...@gmail.com wrote: Yes, it looks to me like the same thing. That is the thread in the primefaces forum:

Re: Problem with nested CDATA sections in scripts in a PPR

2010-07-12 Thread Werner Punz
Hi Bruno you found out the same thing as I did locally here. I read the third page The issue is, that Primefaces rolls out its own partial request/ response mechanism instead of utilizing the jsf2 infrastructure and he made the same mistake we did originally by relying on the ResponseWriter

Re: Problem with nested CDATA sections in scripts in a PPR

2010-07-12 Thread Werner Punz
He cannot really uses the partialresonsewriterimpl, because he rolls his own custom ppr protocol, but he also has to add the fixups we did for the ppr responsewriter (were control over cdata blocks were removed from the users hands to some degree) The fixup is relatively easy but induces a

Re: Problem with nested CDATA sections in scripts in a PPR

2010-07-12 Thread Matthias Wessendorf
It's a little bit lame that the primefaces guys never run their tests with MyFaces. -Matthias On Mon, Jul 12, 2010 at 7:21 AM, Marcus Büttner m...@buett.at wrote: Hi, I've a similar problem with primefaces and myfaces. The standard f:ajax to rerender a component works as espected but p:ajax

Re: Problem with nested CDATA sections in scripts in a PPR

2010-07-12 Thread Werner Punz
Well the problem also is on Mojarra, it simply slept through. Primefaces seems to run its own ajax cycle anyway and for now does not leverage in this area what jsf2 has to offer otherwise the bug would not have occurred. Werner Am 12.07.10 19:17, schrieb Matthias Wessendorf: It's a little