On the plus side, to get the IApplicationSpecification the Inject incantation is:
@InjectObject("infrastructure:applicationSpecification") But one the other hand, the portlet's init-param(s) are nowhere to be found :-( But it seems this does the trick: @InjectObject("infrastructure:globalPropertySource") public abstract IPropertySource getGlobalPropertySource(); Now public void aMethod() { String initParamName; // since we know this String initParamValue = getGlobalPropertySource.getPropertyValue( initParamName ); // use initParamValue here... } Thanks, Ezra Epstein -----Original Message----- From: Epstein, Ezra [mailto:[EMAIL PROTECTED] Sent: Thursday, July 13, 2006 4:33 PM To: Tapestry users Subject: Access to PortletConfig (init-param and friends) So I think I found the code that handles the PortletConfig: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-portlet/src/java/org/apache/tapestry/portlet/PortletApplicationSpecificationInitializer.java?view=markup public void initialize(PortletConfig portletConfig) { String name = portletConfig.getPortletName(); Resource resource = findApplicationSpecification(name); IApplicationSpecification specification = resource == null ? constructStandinSpecification(name) : _parser.parseApplicationSpecification(resource); _globals.storeSpecification(specification); } So I do I get the specification back out of the globals service? @InjectObject("global:specification") perhaps? Thanks, Ezra Epstein --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]