Hi Yori,
Thank you for your answer,however,it doesn't work by throwing following
exception:
org.apache.hivemind.ApplicationRuntimeException: Unable to construct service
tapestry.multipart.MultipartDecoder: Parameter parameters must not be null.
[context:/WEB-INF/hivemodule.xml, line 98, column 25]
at
org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructNewServi
ceImplementation(AbstractServiceModelImpl.java:165)
at
org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructServiceI
mplementation(AbstractServiceModelImpl.java:139)
at
org.apache.hivemind.impl.servicemodel.SingletonServiceModel.getActualServiceImpl
ementation(SingletonServiceModel.java:68)
at $MultipartDecoder_10547d99820._service
($MultipartDecoder_10547d99820.java)
---- In hivemind.xml I set following config:
<service-point id="UploadConfiger"
interface="com.test.services.IUploadConfiger">
<create-instance class="com.test.services.UploadConfiger"
model="singleton"/>
</service-point>
<implementation service-id="tapestry.multipart.MultipartDecoder">
<invoke-factory>
<construct class="com.test.services.MultipartDecoderImpl"
model="threaded">
<set-service property="uploadConfiger" service-
id="UploadConfiger"/>
</construct>
</invoke-factory>
</implementation>
---- And the interface:
interface IUploadConfiger {
int getMaxSize();
void setMaxSize(int maxSize);
String getRepositoryPath();
void setRepositoryPath(String repositoryPath);
int getThresholdSize();
void setThresholdSize(int thresholdSize);
}
------ In MultipartDecoderImpl.decode(HttpServletRequest request) I do
following change:
List fileItems = upload.parseRequest(request, config.getThresholdSize
(),config.getMaxSize(), config.getRepositoryPath());
Thanks
tapestrycn
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]