|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
[Trinidad]: is there a way to get an "onLoad" from a partial submit?Is there a way to get an "onLoad" from a partial submit? It seems like there should be a way to get a client-side callback when the Ajax request is complete, so I can show a hidden panel. Is it possible?
Alternatively, is there a way to add an actionListener to a panelPopup component, which would probably be the most direct way to do what I want? I find it quite strange that it is not exposed as a standard attribute of that component anyway. Is there a reason why it wouldn't be possible to expose as an attribute (or facet)? |
|
|
Re: [Trinidad]: is there a way to get an "onLoad" from a partial submit?Hi Dave,
There is a 'TrPage.getInstance().getRequestQueue().addStateChangeListener(myCallback);' and a 'TrPage.getInstance().addDomReplaceListener(myCallback);' which might help you. More information here: http://myfaces.apache.org/trinidad/devguide/ppr.html#Javascript%20APIs%20for%20PPR HTH, Abhi
On 10/9/07, Dave Syer <david_syer@...> wrote:
|
|
|
Re: [Trinidad]: is there a way to get an "onLoad" from a partial submit?Looks interesting. But I get a Javascript error "TrPage.getInstance().addDomReplaceListener is not a function". I am using 1.2.2. When I look in the jar file I find Page.js and TrPage.getINstance() is defined there but I can't see the callback. Is it a new feature?
|
|
|
Re: [Trinidad]: is there a way to get an "onLoad" from a partial submit?Hi Dave,
AFAIK,addDomReplaceListener was added in 1.0.3,so it should be 1.2.3 which is not released yet.I think addStateChangeListener(myCallback) should be available in 1.2.2. Maybe the committers can corroborate this information. Thanks, Abhijit Ghosh On 10/10/07, Dave Syer <david_syer@...> wrote:
|
| Free embeddable forum powered by Nabble | Forum Help |