You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Zheng JinYuan <zj...@gmail.com> on 2006/04/07 09:07:15 UTC
tapestry and liferay
I develop liferay portlets by tapestry,but how can I set the porlet's title ?
thanks
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: tapestry and liferay
Posted by Aj Gregory <aj...@u.washington.edu>.
Inject a RenderResponse for the request and set the title in the
pageBeginRender event for your BasePage... If you're using annotations
it would look something like:
public abstract class View extends BasePage implements
PageBeginRenderListener {
@InjectObject("service:tapestry.portlet.RenderResponse")
public abstract RenderResponse getRenderResponse();
public void pageBeginRender(PageEvent pageEvent) {
getRenderResponse().setTitle("XXX");
}
}
-Aj
Zheng JinYuan wrote:
> I develop liferay portlets by tapestry,but how can I set the porlet's title ?
>
> thanks
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org