On Mon, 07 Nov 2011 19:32:26 -0200, Felix Scheffer <[email protected]> wrote:

StreamResponseResultProcessor.processResultValue(...) is calling
response.getOutputStream(...). I had to write a portlet-specific
implementation of Tapestry's Response interface because portlets dont have a HttpServletResponse. The implementation wraps around the different
portlet's responses. During the action lifecycle phase it wraps around
ActionResponse which does not have an OutputStream...

Ah, I see. I never worked with portlets and it shows . . .

The following code works fine for ActionLinks:

Link createComponentEventLink(ComponentEventRequestParameters parameters,
boolean forForm) {
 ...
 String containingPageName = parameters.getContainingPageName();
 String nestedComponentId = parameters.getNestedComponentId();

Component component = this.componentSource.getComponent(containingPageName
+ ":" + nestedComponentId);
ComponentResources componentResources = component.getComponentResources();
 boolean isAjaxRequest = componentResources.isBound("zone");
 ...
}
For EventLinks, nestedComponentId is always null.

Have you tried getCompleteId() instead? Or LinkSource?

--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to