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
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");
}