Re: [Trinidad] how to trigger PPR manually

2007-06-16 Thread Adam Winer
Yes, that'd work. commandLink wouldn't know it was a PPR request. -- Adam On 6/16/07, noah <[EMAIL PROTECTED]> wrote: Suppose I wanted to trigger an action for a standard component (i.e. I can't change the decode method), say h:commandLink. Could I do something like this? var params = {}; p

Re: [Trinidad] how to trigger PPR manually

2007-06-16 Thread noah
Suppose I wanted to trigger an action for a standard component (i.e. I can't change the decode method), say h:commandLink. Could I do something like this? var params = {}; params[clientId] = clientId; TrPage.getInstance().sendFormPost(theForm, params); On 6/15/07, Adam Winer <[EMAIL PROTECTED]>

Re: [Trinidad] how to trigger PPR manually

2007-06-16 Thread noah
On 6/15/07, Adam Winer <[EMAIL PROTECTED]> wrote: On 6/15/07, noah <[EMAIL PROTECTED]> wrote: > On 6/15/07, Adam Winer <[EMAIL PROTECTED]> wrote: > > The XmlHttpRequest code has landed! Give the > > latest 1.0.2-SNAPSHOT a try. The method > > you want is currently: > > > > TrPage.getInstance(

Re: [Trinidad] how to trigger PPR manually

2007-06-15 Thread Adam Winer
One way is: var theForm = ... find my form through the DOM ... var clientId = ... the client ID of the component; TrPage.getInstance().sendFormPost(theForm, {source:clientId}); Then, on the server, in your decode, you'd just need to check if the "source" param was component.getClientId(), and y

Re: [Trinidad] how to trigger PPR manually

2007-06-15 Thread Adam Winer
On 6/15/07, noah <[EMAIL PROTECTED]> wrote: On 6/15/07, Adam Winer <[EMAIL PROTECTED]> wrote: > The XmlHttpRequest code has landed! Give the > latest 1.0.2-SNAPSHOT a try. The method > you want is currently: > > TrPage.getInstance().sendFormPost(theForm, params, headerParams); > > ... though

Re: [Trinidad] how to trigger PPR manually

2007-06-15 Thread noah
This is exciting. One more question: What if you wanted to write your own command component? How would you trigger an action with sendFormPost? On 6/15/07, Adam Winer <[EMAIL PROTECTED]> wrote: The XmlHttpRequest code has landed! Give the latest 1.0.2-SNAPSHOT a try. The method you want is cu

Re: [Trinidad] how to trigger PPR manually

2007-06-15 Thread noah
On 6/15/07, Adam Winer <[EMAIL PROTECTED]> wrote: The XmlHttpRequest code has landed! Give the latest 1.0.2-SNAPSHOT a try. The method you want is currently: TrPage.getInstance().sendFormPost(theForm, params, headerParams); ... though that probably will change in a few ways before the final

Re: [Trinidad] how to trigger PPR manually

2007-06-15 Thread Adam Winer
The XmlHttpRequest code has landed! Give the latest 1.0.2-SNAPSHOT a try. The method you want is currently: TrPage.getInstance().sendFormPost(theForm, params, headerParams); ... though that probably will change in a few ways before the final release of 1.0.2. -- Adam On 6/15/07, noah <[EM

Re: [Trinidad] how to trigger PPR manually

2007-06-15 Thread noah
On 6/14/07, Adam Winer <[EMAIL PROTECTED]> wrote: There's no publicly supported way to fire a PPR request now, but there will be once the XmlHttpRequest code is merged in. -- Adam Huzah! That will be good for us component developers :) If you're looking for a temporary hack that will almost

Re: [Trinidad] how to trigger PPR manually

2007-06-14 Thread Adam Winer
There's no publicly supported way to fire a PPR request now, but there will be once the XmlHttpRequest code is merged in. -- Adam On 6/14/07, Renzo Tomaselli <[EMAIL PROTECTED]> wrote: Hi, I'm looking for a method to trigger PPR upon setting certain conditions on client operations. I have a m

[Trinidad] how to trigger PPR manually

2007-06-14 Thread Renzo Tomaselli
Hi, I'm looking for a method to trigger PPR upon setting certain conditions on client operations. I have a multipanel page, where one panel contains an iframe for rendering a blob through browser plugins. Users are allowed to swap, minimize and restore panels through js, thus these operations ar