Re: [Trinidad 2] AJAX branch ready for testing

2010-04-21 Thread Matthias Wessendorf
On Tue, Apr 20, 2010 at 6:40 PM, Andrew Robinson andrew.rw.robin...@gmail.com wrote: On Tue, Apr 20, 2010 at 7:59 AM, Matthias Wessendorf mat...@apache.org wrote: on the pprDemos.jspx stuff, there is a bunch of tests for PPR, one of the has the header Command components with partialSubmit,

Re: [Trinidad 2] AJAX branch ready for testing

2010-04-21 Thread Matthias Wessendorf
Yes, the -Djsf=ri profile works (with the know exception), but default profile (with temporary using MyFaces 2.0.1-SNAPSHOT), I do get a full-page-refresh. See MYFACES-2666 -Matthias On Tue, Apr 20, 2010 at 6:40 PM, Andrew Robinson andrew.rw.robin...@gmail.com wrote: On Tue, Apr 20, 2010 at

Re: [Trinidad 2] AJAX branch ready for testing

2010-04-20 Thread Matthias Wessendorf
can you file a jira issue ? On Mon, Apr 19, 2010 at 7:37 PM, Andrew Robinson andrew.rw.robin...@gmail.com wrote: _ajaxOldDomElements is code in Page.js, this looks like a bug in Trinidad that needs to be fixed On Fri, Apr 9, 2010 at 8:52 AM, Matthias Wessendorf mat...@apache.org wrote:

Re: [Trinidad 2] AJAX branch ready for testing

2010-04-20 Thread Matthias Wessendorf
On Mon, Apr 19, 2010 at 11:58 PM, Andrew Robinson andrew.rw.robin...@gmail.com wrote: The branch is ready and the issues that were brought up in this thread as well as other issues have been resolved. Unless there are any objections, I will merge the changes into the trunk tomorrow. fine here.

Re: [Trinidad 2] AJAX branch ready for testing

2010-04-20 Thread Matthias Wessendorf
Ok, looks like you are talking about JSF2's JS/Ajax stuff. The term mojarra is slightly confusing, since I understand it as a specific dependency to that particular implementation. But looks like we do not have that, for the ajax stuff, which is great. -Matthias On Tue, Apr 20, 2010 at 9:05

Re: [Trinidad 2] AJAX branch ready for testing

2010-04-20 Thread Matthias Wessendorf
Checked Mojarra 2.0.1 and MyFaces 2.0.0 (out soon) - both have the NPE filed in TRINIDAD-1786 * Mojarra: -PPR on select* works (exception see above) - Command components with partialSubmit does _not_ work * MyFaces: - all PPR stuff does a full page-refresh I am fine in merging these bits to

Re: [Trinidad 2] AJAX branch ready for testing

2010-04-20 Thread Werner Punz
Btw. thanks guys for the effort, I think the tests also were a good indicator about the state of our javascripts. Which looked quite good btw. The main issues I have seen so far were on the spec level. We really need a queue control mechanism on the spec level and a timeout as well, hanging xhr

Re: [Trinidad 2] AJAX branch ready for testing

2010-04-20 Thread Werner Punz
Sorry - all PPR stuff does a full page-refresh wasn´t that a caching issue on the browsers side, because I was investigating that problem and could not reproduce it. Werner Am 20.04.10 09:26, schrieb Matthias Wessendorf: Checked Mojarra 2.0.1 and MyFaces 2.0.0 (out soon) - both have the NPE

Re: [Trinidad 2] AJAX branch ready for testing

2010-04-20 Thread Max Starets
Matthias, What do you mean when you say 'command components with partialSubmit do not work'? Thanks, Max On Apr 20, 2010, at 3:26 AM, Matthias Wessendorf mat...@apache.org wrote: Checked Mojarra 2.0.1 and MyFaces 2.0.0 (out soon) - both have the NPE filed in TRINIDAD-1786 * Mojarra:

Re: [Trinidad 2] AJAX branch ready for testing

2010-04-20 Thread Matthias Wessendorf
on the pprDemos.jspx stuff, there is a bunch of tests for PPR, one of the has the header Command components with partialSubmit, which does not work (in the trinidad demo) File (in SVN) is located there:

Re: [Trinidad 2] AJAX branch ready for testing

2010-04-20 Thread Andrew Robinson
Also, are you using JSF RI? MyFaces is known to be bad with Ajax. On 04/20/2010 08:50 AM, Max Starets wrote: Hey Matthias, This works for me: http://adc2100180.us.oracle.com:7101/trinidad-demo-context-root/faces/demos/pprDemos.jspx Are you seeing any errors? Is request showing up in Firebug

Re: [Trinidad 2] AJAX branch ready for testing

2010-04-20 Thread Werner Punz
Am 20.04.10 17:00, schrieb Andrew Robinson: Also, are you using JSF RI? MyFaces is known to be bad with Ajax. Ouch that hit me personally, because I and others spent a load of hours to make the our javascripts as good as possible as the spec allowed (with the help of some others). Actually

Re: [Trinidad 2] AJAX branch ready for testing

2010-04-20 Thread Werner Punz
Ok I did a testing on the RI the links do not work as well, but wont even go into the xhr part (I will add a fix here to be coherent to the RI in our scripts) what happens is that the links trigger an error jsf.ajax.request: source not set throw new Error(jsf.ajax.request: source not set);

Re: [Trinidad 2] AJAX branch ready for testing

2010-04-20 Thread Matthias Wessendorf
Hello Andrew, on my tryouts I used both, see here: http://markmail.org/message/onwsrqwfhu7ai67e -Matthias On Tue, Apr 20, 2010 at 5:00 PM, Andrew Robinson andrew.robin...@oracle.com wrote: Also, are you using JSF RI? MyFaces is known to be bad with Ajax. On 04/20/2010 08:50 AM, Max Starets

Re: [Trinidad 2] AJAX branch ready for testing

2010-04-20 Thread Andrew Robinson
Werner, sorry for the short reply on that email, the tone probably sounded bad. There are state saving problems when using MyFaces. Unfortunately it is bad enough to make it completely non-functional as all PPR post backs fail to restore the state from what I have seen. We have no such errors when

Re: [Trinidad 2] AJAX branch ready for testing

2010-04-20 Thread Andrew Robinson
I can see this page failing with JS errors in chrome. I'll have a look On Tue, Apr 20, 2010 at 7:59 AM, Matthias Wessendorf mat...@apache.org wrote: on the pprDemos.jspx stuff, there is a bunch of tests for PPR, one of the has the header Command components with partialSubmit, which does not

Re: [Trinidad 2] AJAX branch ready for testing

2010-04-20 Thread Matthias Wessendorf
Hello Andrew, the problem below is already fixed in the up-coming release, which I used to verify this. Let's merge your branch to trunk and work on it to get these other (minor) things fixed. On Tue, Apr 20, 2010 at 6:09 PM, Andrew Robinson andrew.rw.robin...@gmail.com wrote: Werner, sorry

Re: [Trinidad 2] AJAX branch ready for testing

2010-04-20 Thread Matthias Wessendorf
Hi Andrew, here is the ticket: https://issues.apache.org/jira/browse/MYFACES-2641 Looks like just a ticket for the _ajaxOldDomElements is missing, right ? http://markmail.org/message/tcoi36bneeultdx2 -Matthias On Tue, Apr 20, 2010 at 6:16 PM, Matthias Wessendorf mat...@apache.org wrote:

Re: [Trinidad 2] AJAX branch ready for testing

2010-04-20 Thread Andrew Robinson
On Tue, Apr 20, 2010 at 7:59 AM, Matthias Wessendorf mat...@apache.org wrote: on the pprDemos.jspx stuff, there is a bunch of tests for PPR, one of the has the header Command components with partialSubmit, which does not work (in the trinidad demo) Works fine for me using -Djsf=ri2 except for

Re: [Trinidad 2] AJAX branch ready for testing

2010-04-20 Thread Werner Punz
Actually Command components with partialSubmit works for me on both implementations. What does not work for me on both implementations is Command components with partialSubmit going to another page. Werner Am 20.04.10 18:40, schrieb Andrew Robinson: On Tue, Apr 20, 2010 at 7:59 AM, Matthias

Re: [Trinidad 2] AJAX branch ready for testing

2010-04-20 Thread Max Starets
Werner, __handlePprResponseAction() is meant to update the action URL on the form (this is what old Trinidad PPR always did). It's not supposed to do navigation. Max Werner Punz wrote: Am 20.04.10 17:00, schrieb Andrew Robinson: Also, are you using JSF RI? MyFaces is known to be bad with

Re: [Trinidad 2] AJAX branch ready for testing

2010-04-20 Thread Max Starets
Werner, I will look into the navigation issue. The expected behavior with Trinidad in this case is a redirect. Max Werner Punz wrote: Actually Command components with partialSubmit works for me on both implementations. What does not work for me on both implementations is Command

Re: [Trinidad 2] AJAX branch ready for testing

2010-04-20 Thread Max Starets
Werner, With the latest build, I can see the navigation happening with no issues when you choose Go to Trinidad demos home page on pprDemos.jspx. The response contains the following: ?xml version=1.0 encoding=utf-8? partial-responseredirect

Re: [Trinidad 2] AJAX branch ready for testing

2010-04-20 Thread Andrew Robinson
Ajax branch has been merged into the trunk. We'll keep hammering away on the problems that were found (most JSF2, not AJAX related) so we can hopefully stabilize the code for a release in the not too distant future.

Re: [Trinidad 2] AJAX branch ready for testing

2010-04-20 Thread Werner Punz
Ok then the issue is fixed, the redirect response looks ok to me. I will update tomorrow and will fix the missing no source error on my side so that we get the same behavior on both mojarra and myfaces regarding null sources. Werner Am 20.04.10 20:42, schrieb Max Starets: Werner, With the

Re: [Trinidad 2] AJAX branch ready for testing

2010-04-20 Thread Werner Punz
Am 20.04.10 21:22, schrieb Andrew Robinson: Ajax branch has been merged into the trunk. We'll keep hammering away on the problems that were found (most JSF2, not AJAX related) so we can hopefully stabilize the code for a release in the not too distant future. Hey Andrew sounds good, and feel

Re: [Trinidad 2] AJAX branch ready for testing

2010-04-19 Thread Andrew Robinson
_ajaxOldDomElements is code in Page.js, this looks like a bug in Trinidad that needs to be fixed On Fri, Apr 9, 2010 at 8:52 AM, Matthias Wessendorf mat...@apache.org wrote: looks like the 2.0.1 are just labeled as Mojarra 2.0.2 (SNAPSHOT 20091204) I now updated the pom to 2.0.2 and got this

Re: [Trinidad 2] AJAX branch ready for testing

2010-04-19 Thread Andrew Robinson
The branch is ready and the issues that were brought up in this thread as well as other issues have been resolved. Unless there are any objections, I will merge the changes into the trunk tomorrow. Note that Max added a switch to be able to turn off PPR through JSF at the agent level so that

[MyFaces 2] Version 2.0.0 does not work as well (was: Re: [Trinidad 2] AJAX branch ready for testing)

2010-04-14 Thread Matthias Wessendorf
Hi, when I (using the 2.0.0) navigate to this page http://localhost:8080/trinidad-demo/faces/demos/pprDemos.jspx I get a full page reload on every click. = works with Mojarra. -Matthias On Fri, Apr 9, 2010 at 2:55 PM, Matthias Wessendorf mat...@apache.org wrote:

Re: [MyFaces 2] Version 2.0.0 does not work as well (was: Re: [Trinidad 2] AJAX branch ready for testing)

2010-04-14 Thread Matthias Wessendorf
damn cache :-) I closed the issue On Wed, Apr 14, 2010 at 3:26 PM, Matthias Wessendorf mat...@apache.org wrote: Hi, when I (using the 2.0.0) navigate to this page http://localhost:8080/trinidad-demo/faces/demos/pprDemos.jspx I get a full page reload on every click. = works with Mojarra.

Re: [Trinidad 2] AJAX branch ready for testing

2010-04-09 Thread Matthias Wessendorf
hi, I gave it a quick try. Here are my results: Page: http://localhost:8080/trinidad-demo/faces/demos/clientBehaviorHolder.xhtml JSF_RI (Mojarra 2.0.2 (SNAPSHOT 20091204)) results: I entered some text and clicked submit via JSF Ajax Got this (in an alert JS box): httpError: The Http Transport

Re: [Trinidad 2] AJAX branch ready for testing

2010-04-09 Thread Matthias Wessendorf
I now checked this page: http://localhost:8080/trinidad-demo/faces/demos/pprDemos.jspx MYFACES_SNAPSHOT: = on any ajax action/click, I get these two alert() boxes: * TypeError: this._ajaxOldDomElements is null * malformedXML-- == I will file a bug against MyFaces JSF RI (2.0.2): == fine

Re: [Trinidad 2] AJAX branch ready for testing

2010-04-09 Thread Matthias Wessendorf
https://issues.apache.org/jira/browse/MYFACES-2654 On Fri, Apr 9, 2010 at 2:52 PM, Matthias Wessendorf mat...@apache.org wrote: I now checked this page: http://localhost:8080/trinidad-demo/faces/demos/pprDemos.jspx MYFACES_SNAPSHOT: = on any ajax action/click, I get these two alert()

Re: [Trinidad 2] AJAX branch ready for testing

2010-04-09 Thread Max Starets
Matthias, Are you getting the same results with Mojarra 2.0.1? Max Matthias Wessendorf wrote: hi, I gave it a quick try. Here are my results: Page: http://localhost:8080/trinidad-demo/faces/demos/clientBehaviorHolder.xhtml JSF_RI (Mojarra 2.0.2 (SNAPSHOT 20091204)) results: I entered

Re: [Trinidad 2] AJAX branch ready for testing

2010-04-09 Thread Matthias Wessendorf
eh, funny. the pom is actually configured with 2.0.1. Something is going wrong here :-) On Fri, Apr 9, 2010 at 4:15 PM, Max Starets max.star...@oracle.com wrote: Matthias, Are you getting the same results with Mojarra 2.0.1? Max Matthias Wessendorf wrote: hi, I gave it a quick try.

Re: [Trinidad 2] AJAX branch ready for testing

2010-04-09 Thread Matthias Wessendorf
looks like the 2.0.1 are just labeled as Mojarra 2.0.2 (SNAPSHOT 20091204) I now updated the pom to 2.0.2 and got this log: INFO: Initializing Mojarra 2.0.2 (FCS b10) But the error is the same on the clientBehaviorHolder.xhtml page -Matthias On Fri, Apr 9, 2010 at 4:33 PM, Matthias Wessendorf

Re: [Trinidad 2] AJAX branch ready for testing

2010-04-07 Thread Max Starets
Just a few minor additions - - PartialViewContext.isAjaxRequest() will be returning true for the requests sent with jsf ajax as well as the legacy partialSubmit=true requests. - Trinidad's partial triggers will be honored for the jsf ajax requests. However, this will currently work only with

[Trinidad 2] AJAX branch ready for testing

2010-04-05 Thread Andrew Robinson
Well after a bit of work, the JSF2 AJAX branch is ready for testing to see if we want to merge it into the trunk. Branch: https://svn.apache.org/repos/asf/myfaces/trinidad/branches/jsf2_ajax.3 Details: - jsf.ajax.request used to submit PPR requests from the request queue - server serves JSF2