Hi<br><br><div class="gmail_quote">2010/5/11 Andy Schwartz <span dir="ltr"><<a href="mailto:andy.schwartz@oracle.com">andy.schwartz@oracle.com</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hey Leonardo -<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
To restore the "component" reference required, both implementations call UIComponent.getCurrentComponent() and both call processEvent but for the parent!.<br>
</blockquote>
<br></div>
Interesting... I recently spent some time reading through your earlier "PostAddToViewEvent publishing conditions" thread and as a result playing around with PostAddToViewEvents. I noticed that if I implement a custom component with a PostAddToViewEvent listener, eg:<br>
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
@ListenerFor(systemEventClass=PostAddToViewEvent.class)<br>
@FacesComponent("foo.PostAddTester")<br>
public class PostAddTester extends UIComponentBase implements ComponentSystemEventListener {<br>
<br>
</blockquote>
<br>
During the initial request, the event is delivered to my custom component. However, after a postback, the event is instead delivered to the custom component's parent.<br>
<br>
I was hoping to find some time to try to track this down and log it (didn't realize it was a spec issue - figured implementation bug), but you beat me to it!<br>
<br>
I agree with you that the current component should be in context when saveState()/restoreState() are called. It is interesting that processSaveState()/processRestoreState() behave differently from the other process* methods. Makes me wonder whether this was done intentionally. Anyone know?<br>
<br>
Do you want to log a spec issue? If so, let me know the issue # - I can also upload my little test case that demonstrates the problem.<br><font color="#888888">
<br></font></blockquote><div><br>Ok, here is the link:<br>
<br>
<a href="http://javaserverfaces-spec-public.dev.java.net/issues/show_bug.cgi?id=792">http://javaserverfaces-spec-public.dev.java.net/issues/show_bug.cgi?id=792</a><br>
<br>
Leonardo<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><font color="#888888">
Andy<br>
<br>
<br>
<br>
</font></blockquote></div><br>