You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Jean-Eric Cuendet <je...@jesc.ch> on 2006/01/25 16:11:52 UTC

Injecting a State into a Service

Hi,
I would like to create a Service with:
<contribution conf-id="tapestry.state.ApplicationObjects">
  <state-object name="sessikon-data">
    <create-instance class="ch.bla.SessionData"/>
  </state-object>
</contribution>

<implementation service-id="PdfService">
  <invoke-factory>
    <construct class="ch.bla.MyClass">
      <set-contribution property="sessionData"
contribution-id="session-data">
    </construct>
  </invoke-factory>
</implementation>

But set-contribution is not supported for services...
How should I do that?
Thanks a lot
-jec


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org