Re: returning StreamPageContent causes ajax error

2013-04-18 Thread Bryan Lewis
I think I understand it better now. I suspect that StreamPageContent was intentionally not added as a valid component-event return type in the ajax case. After all, StreamPageContent is designed to render an entire page. (duh) So I've made my code return a plain old page (as we used to do) if i

returning StreamPageContent causes ajax error

2013-04-17 Thread Bryan Lewis
Recently I started using the StreamPageContent feature to show the user an error message without losing the original page's address. For example: Object onActivate(Policy p) { if (p == null) { return new StreamPageContent(ErrorPage.class, "Invalid item"); }