Hi spamsucks,

Try using <set property="fileSystemPath" value="/usr/local/rhodepc/workspace/dmi/stitchfolder" />

Check out http://jakarta.apache.org/hivemind/hivemind/BuilderFactory.html for more details.

Cheers

Richard

spamsucks wrote:
I am trying to inject an aso into tapestry using the StateObjectFactory.

My class "StorageAdapterFactory" implements the StateObjectFactory and has a property "fileSystemPath" with setter/getter on it. I am trying to pass a String argument to my StateObjectFactory, but have get the error that "No object provider exists for prefix 'string' "

I have tried using nothing, and with "literal:" but both of these also fail. Can someone point me to how I can pass a string to my factory?
A tired thanks (it's been tough getting this far!)

   <contribution configuration-id="tapestry.state.ApplicationObjects">
<state-object name="stitchfolder-data" scope="application"> <invoke-factory object="service:StorageAdapterFactory"/>
       </state-object>           </contribution>
<service-point id="StorageAdapterFactory" interface="org.apache.tapestry.engine.state.StateObjectFactory">
       <invoke-factory>
<construct class="org.authsum.stitches.adapter.StorageAdapterFactory"> <set-object property="fileSystemPath" value="string:/usr/local/rhodepc/workspace/dmi/stitchfolder"/>
           </construct>
       </invoke-factory>
   </service-point>


---------------------------------------------------------------------
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]

Reply via email to