Composite components in JSF 2.0 - Retargeted actionListeners
I was reading Ed Burns article on composite components in JSF 2.0 (http://blogs.sun.com/enterprisetechtips/entry/true_abstraction_composite...) but I can't get it to work using GlassFish v2/v3 prelude and JSF 2.0
My client page contains a simple composite component (as can be found in the jsf-demo in the svn repo).
It registers an actionListener on the composite component, in order to process the action generated from the commandbutton inside the component.
Composite component interface exposes the event via the actionSource element.
The composite component implementation contains the commandButton that will generate the event :
It seems that the retargeted actionlister doesn't end up in the component tree and as such the commandbutton doesn't invoke my actionlistener. (If my understanding is correct, the commandButton in the component implementation should have the actionListener associated to it that was defined in my client page).
The actionListener is getting processed by facelets (while debugging, I see that it gets added to the commandbutton via the facelets tag handlers - MultiViewHandler.retargetAttachedObjects).
No error occurs, the page just refreshes (like with an action-less commandButton)
I've tried it with the EDR 2 release, and with the 2.0 snapshots but can't get it to work.
Any ideas ?