[jsr-314-open] Autoupdate / always render
Ken Paulsen
Ken.Paulsen at Sun.COM
Mon Sep 14 11:48:13 EDT 2009
I don't know the context/history... but want to voice some reservation
regarding this "feature".
I hope we have a way of skipping this for cases such as:
1) If my Ajax response is not going to be handled by JSF2's standard
JS. This is obvious... but I thought I'd state it anyway.
2) If I am making several Ajax requests in a short amount of time (i.e.
immediately after the page is loaded), I would obviously not want to
re-render all the auto-update components several times.
3) If I require a fast, light-weight request (i.e. auto-complete text box).
"Auto-update" seems like a great "push" feature, or polling feature that
is separate from other Ajax requests. If I understand it correctly,
having an "always render" component seems a little excessive.
Thanks!
Ken
Jim Driscoll wrote:
> So, I got a chance to discover more about RichFaces today, attending a
> tutorial by Max Katz.
>
> Autoupdate can also be thought of as "always render" - it's the
> process of marking out certain id's to always be rendered on any ajax
> request.
>
> I can now say that, no, we don't support autoupdate functionality -
> while a page author doesn't really need this functionality, it's
> possible to imagine a use case for it as a component library author -
> and in that case, while there's hacky things you can do to almost get
> there, it won't really be possible with the existing APIs.
>
> Since in an earlier message, I said that I wasn't aware of anything in
> particular that couldn't be done with the API, well, here's one use case.
>
> Adding such an API would be pretty easy:
>
> void jsf.ajax.addAlwaysRender(String id)
>
> I'll file a spec RFE for this (there seems to not be one!), but I was
> wondering:
>
> What's the context/history behind this not being included in JSF 2.0?
> Can anyone elaborate?
>
> Jim
>
> P.S. Filed bug 629 on this topic.
More information about the jsr-314-open-mirror
mailing list