Re: Setting enctype = multipart/form-data via D2W Rule
Thanks Anjo, but I'm still not seeing it. I added a rule as: Priority = 100 Left-Hand Side = true Right-Hand Side Key = formEncoding Right-Hand Side Value = multipart/form-data Class = com.webobjects.directtoweb.Assignment Should it be a different class? On Jun 18, 2010, at 1:02 AM, Anjo Krank wrote: whatever = formEncoding = multipart/form-data [100] Am 18.06.2010 um 04:10 schrieb Bernard Bradley: Hi to all the D2W gurus, I'm struggling with getting the ERD2WEditAttachment component to work and I think it has to do with setting enctype = multipart/ form-data properly. The docs for ERD2WEditAttachment says this is a prerequisite rule. See http://webobjects.mdimension.com/hudson/job/Wonder54/javadoc/er/directtoweb/components/attachments/ERD2WEditAttachment.html I have an Entity of User and a relationship to ERAttachment named userImage. I can get the ERD2WEditAttachment component to display on the Edit User page for the User.userImage property. I can select my file, but then it just says Upload Starting ... and never returns. What should the rule look like to get the enctype set properly? What else might I be missing? Thanks, Berney ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/anjo %40krank.net This email sent to a...@krank.net ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/berneyb %40mac.com This email sent to bern...@mac.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Setting enctype = multipart/form-data via D2W Rule
Should it be a different class? Nope. Your look's inspect page must have this bound to its form, though. Like: EditingForm: ERXOptionalForm { enctype = d2wContext.formEncoding; hasForm = d2wContext.hasForm; multipleSubmit = true; name = EditForm; } Cheers, Anjo Am 18.06.2010 um 18:46 schrieb Bernard Bradley: Thanks Anjo, but I'm still not seeing it. I added a rule as: Priority = 100 Left-Hand Side = true Right-Hand Side Key = formEncoding Right-Hand Side Value = multipart/form-data Class = com.webobjects.directtoweb.Assignment Should it be a different class? On Jun 18, 2010, at 1:02 AM, Anjo Krank wrote: whatever = formEncoding = multipart/form-data [100] Am 18.06.2010 um 04:10 schrieb Bernard Bradley: Hi to all the D2W gurus, I'm struggling with getting the ERD2WEditAttachment component to work and I think it has to do with setting enctype = multipart/form-data properly. The docs for ERD2WEditAttachment says this is a prerequisite rule. See http://webobjects.mdimension.com/hudson/job/Wonder54/javadoc/er/directtoweb/components/attachments/ERD2WEditAttachment.html I have an Entity of User and a relationship to ERAttachment named userImage. I can get the ERD2WEditAttachment component to display on the Edit User page for the User.userImage property. I can select my file, but then it just says Upload Starting ... and never returns. What should the rule look like to get the enctype set properly? What else might I be missing? Thanks, Berney ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/anjo%40krank.net This email sent to a...@krank.net ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/berneyb%40mac.com This email sent to bern...@mac.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Setting enctype = multipart/form-data via D2W Rule
Hi Berney, On 18-Jun-10, at 9:46 AM, Bernard Bradley wrote: Thanks Anjo, but I'm still not seeing it. I added a rule as: Priority = 100 Left-Hand Side = true Right-Hand Side Key = formEncoding -- From the doc you linked to, shouldn't this be enctype? Right-Hand Side Value = multipart/form-data Class = com.webobjects.directtoweb.Assignment Should it be a different class? Are you using ModernLook? I didn't need to do anything using the brand new ERMD2WEditAttachment. Maybe you could use that component instead? David On Jun 18, 2010, at 1:02 AM, Anjo Krank wrote: whatever = formEncoding = multipart/form-data [100] Am 18.06.2010 um 04:10 schrieb Bernard Bradley: Hi to all the D2W gurus, I'm struggling with getting the ERD2WEditAttachment component to work and I think it has to do with setting enctype = multipart/ form-data properly. The docs for ERD2WEditAttachment says this is a prerequisite rule. See http://webobjects.mdimension.com/ hudson/job/Wonder54/javadoc/er/directtoweb/components/attachments/ ERD2WEditAttachment.html I have an Entity of User and a relationship to ERAttachment named userImage. I can get the ERD2WEditAttachment component to display on the Edit User page for the User.userImage property. I can select my file, but then it just says Upload Starting ... and never returns. What should the rule look like to get the enctype set properly? What else might I be missing? Thanks, Berney ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/anjo% 40krank.net This email sent to a...@krank.net ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/berneyb% 40mac.com This email sent to bern...@mac.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/programmingosx %40mac.com This email sent to programming...@mac.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Setting enctype = multipart/form-data via D2W Rule
Hi to all the D2W gurus, I'm struggling with getting the ERD2WEditAttachment component to work and I think it has to do with setting enctype = multipart/form-data properly. The docs for ERD2WEditAttachment says this is a prerequisite rule. See http://webobjects.mdimension.com/hudson/job/Wonder54/javadoc/er/directtoweb/components/attachments/ERD2WEditAttachment.html I have an Entity of User and a relationship to ERAttachment named userImage. I can get the ERD2WEditAttachment component to display on the Edit User page for the User.userImage property. I can select my file, but then it just says Upload Starting ... and never returns. What should the rule look like to get the enctype set properly? What else might I be missing? Thanks, Berney ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com