webtier@glassfish.java.net

Re: [webtier] JSF2: using JavaScript to update a component

From: Jim Driscoll <Jim.Driscoll_at_Sun.COM>
Date: Wed, 19 Aug 2009 19:27:16 -0700

On 8/19/09 2:52 PM, webtier_at_javadesktop.org wrote:
> Well, there are ways around that. I'm thinking a new interface, say ScriptUpdatable, which could be a marker interface or even have a method to generate the change element. PartialViewContext would check for it and if present on the component or its renderer, call the interface method to generate the change item rather than calling startUpdate and encode*. Components& renderers that don't implement the interface would not see any change.
>
> I'd be happy to produce an implementation if it fits into your process at this time in the release cycle. It would be really important to me to have my component play together well with the Ajax support in JSF 2.

Unfortunately it doesn't - the spec is final, and not able to be
modified right now.

I'd encourage you to file your suggestion as a spec enhancement request,
it sounds like a good one (and easy to do, as well).

https://javaserverfaces-spec-public.dev.java.net/issues/enter_bug.cgi

Jim