• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Setting enctype = "multipart/form-data" via D2W Rule
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting enctype = "multipart/form-data" via D2W Rule


  • Subject: Re: Setting enctype = "multipart/form-data" via D2W Rule
  • From: Anjo Krank <email@hidden>
  • Date: Fri, 18 Jun 2010 18:56:15 +0200

> 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      (email@hidden)
>>> Help/Unsubscribe/Update your Subscription:
>>>
>>> This email sent to 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
>

 _______________________________________________
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

References: 
 >Setting enctype = "multipart/form-data" via D2W Rule (From: Bernard Bradley <email@hidden>)
 >Re: Setting enctype = "multipart/form-data" via D2W Rule (From: Anjo Krank <email@hidden>)
 >Re: Setting enctype = "multipart/form-data" via D2W Rule (From: Bernard Bradley <email@hidden>)

  • Prev by Date: Re: Setting enctype = "multipart/form-data" via D2W Rule
  • Next by Date: Re: [OT] Service Mapping Description with REST?
  • Previous by thread: Re: Setting enctype = "multipart/form-data" via D2W Rule
  • Next by thread: Re: Setting enctype = "multipart/form-data" via D2W Rule
  • Index(es):
    • Date
    • Thread