Hi Martin

In theory the secod event (PreRemoveFromViewEvent) should not be called
when the view is "refreshed".

The important for me at this point is make clear the problem, but in this point
I think the better is do a prototype with myfaces. It will take some time, but as
soon as I have something I'll publish the results, so we can discuss
a more concrete proposal. I'll integrate also the solution for the problem
"[jsr-314-open] add component resources depending on the owner component state"
because it seems it is related.

regards,

Leonardo Uribe

2010/3/30 Martin Marinschek <mmarinschek@apache.org>
Hi,

> - Create a new event (let's call it PostBuildViewEvent for the moment), that
> is
> propagated every time the view is build (when it is created, restored or
> refreshed before render response). h:outputScript, h:outputStylesheet,
> cc:insertChildren and cc:insertFacet should add a listener for this
> event and handle all relocation code at response of this event.
>
> - Fix PostAddToViewEvent/PreRemoveFromViewEvent publishing conditions.
> In my opinion this ones should not be called when the view is "refreshed".
> Martin suggestion about the publishing conditions are reasonable.

yes, this sounds good. Leonardo, for the second event, how would you
suggest the publishing to happen (actual sourcecode)?

best regards,

Martin
--

http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces