ERMD2WEditAttachment in Edit page only works once.
ERMD2WEditAttachment in Edit page only works once.
- Subject: ERMD2WEditAttachment in Edit page only works once.
- From: Johan Henselmans <email@hidden>
- Date: Wed, 20 Oct 2010 16:27:42 +0200
After some wise remarks about ERAttachment and ERMondernLook (search the Wiki, moron!),
I tried the rules:
with these ERAttachment properties in the Properties file of the ModernLook project:
er.attachment.storageType=file
er.attachment.ShowInfo.showpicturebig.file.proxy=false
er.attachment.ShowInfo.showpicturebig.file.filesystemPath=/Library/WebServer/Documents/digitalassets/${pk}/groot${ext}
er.attachment.ShowInfo.showpicturebig.file.webPath=/digitalassets/${pk}/groot${ext}
er.attachment.ShowInfo.showpicturesmall.file.filesystemPath=/Library/WebServer/Documents/digitalassets/${pk}/klein${ext}
er.attachment.ShowInfo.showpicturesmall.file.webPath=/digitalassets/${pk}/klein${ext}
After I had set the formencoding to multipart/from-data to be true in the user.dwmodel,
I got this layout.
Uploading the big picture resulted in an upload.
The small picture (the one that did get the ERMD2WEditAttachment as I thought they both would gonna have), did not upload a picture, but resulted in:
IllegalArgumentException: There is no 'er.attachment.null.file.filesystemPath' or 'er.attachment.file.filesystemPath' property set.
at er.attachment.processors.ERFileAttachmentProcessor._process(ERFileAttachmentProcessor.java:59)
at er.attachment.processors.ERFileAttachmentProcessor._process(ERFileAttachmentProcessor.java:33)
at er.attachment.processors.ERAttachmentProcessor.process(ERAttachmentProcessor.java:344)
at er.attachment.processors.ERAttachmentProcessor.process(ERAttachmentProcessor.java:282)
at er.attachment.components.ERAttachmentUpload._uploadSucceeded(ERAttachmentUpload.java:177)
at er.attachment.components.ERAttachmentUpload.uploadSucceeded(ERAttachmentUpload.java:190)
... skipped 13 stack elements
at er.ajax.AjaxFileUpload.uploadSucceeded(AjaxFileUpload.java:373)
at er.ajax.AjaxFlexibleFileUpload.uploadSucceeded(AjaxFlexibleFileUpload.java:500)
at er.ajax.AjaxFlexibleFileUpload.containerRefreshed(AjaxFlexibleFileUpload.java:436)
... skipped 14 stack elements
at er.ajax.AjaxUpdateContainer.handleRequest(AjaxUpdateContainer.java:256)
... skipped 107 stack elements
at er.ajax.AjaxRequestHandler.handleRequest(AjaxRequestHandler.java:17)
... skipped 6 stack elements
I tried to find out why this happens and it seems that ERFileAttachmentProcessor.java does not get a configurationName passed on.
Which leads to the following questions:
Is it possible to have two uploadblobs in one form with ERMD2WEditAttachment?
Why can't I set the properties of two separate ERAttachments in the Properties file?
Johan Henselmans
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden