Hi Ed
Checking my mail, the answer was not sent to this list.
I'm interested in move JSF 2.2 stuff faster and send comments about
it, but note I'm not on the EG yet, so I don't have any idea about the
discussions or the status of the code/improvements right now.
Here it is:
2011/8/8 Ed Burns <edward.burns_at_oracle.com>:
> Leonardo and Jakob,
>
> I understand it's summer and we've been on vacations, but in order to
> make progress on this issue, we need to make the communication more
> frequent. I posed a question to you in my last post on this thread
> [1].
>
>>>>>> On Mon, 25 Jul 2011 17:04:06 -0700, Ed Burns <edward.burns_at_oracle.com> said:
>
> EB> component. Why doesn't the following work in this case
>
> Please see [1] for the context.
>
> EB> Now, it's possible the current implementations don't support this, but
> EB> because you are trying to make it so attached objects intended to go to
> EB> loginPanel's loginButton attach-point are redirected to the okButton
> EB> within okCancelPanel, it seems this is exactly the syntax you'd want.
>
> EB> Please correct me if I'm wrong.
>
But that solution is not clean from a object oriented point of view,
because you have to assume the inner structure of the component.
Doesn't suppose an interface is created to specify the "contract" and
hide the "details". The hack proposed breaks encapsulation principle.
It is only a workaround, not a full solution. More if you assume these
internals could have multiple "targets" too.
The syntax I'm looking for is a clean way to deal with this kind of scenarios.
The curious part is using "ui" tags you can do it:
<ui:decorate ... >
<ui:define name="okButtonActionListeners">
<ui:insert name="loginButtonActionListeners"/>
</ui:define>
</ui:decorate>
Note facelets user tags support ui:define entries.
regards,
Leonardo Uribe
> I am still awaiting correction.
>
> Thanks,
>
> Ed
>
> [1] http://java.net/projects/javaserverfaces-spec-public/lists/jsr344-experts/archive/2011-07/message/30
> --
> | edward.burns_at_oracle.com | office: +1 407 458 0017
> | homepage: | http://ridingthecrest.com/
>