Re: D2W pull downs for toOne relationships aren't behaving as I'd expect anymore
Re: D2W pull downs for toOne relationships aren't behaving as I'd expect anymore
- Subject: Re: D2W pull downs for toOne relationships aren't behaving as I'd expect anymore
- From: David LeBer <email@hidden>
- Date: Wed, 27 Apr 2011 12:28:22 -0400
On 2011-04-27, at 12:17 PM, Joe Little wrote:
> Thanks. I found
>
> http://webobjects.mdimension.com/hudson/job/Wonder/javadoc/er/directtoweb/components/relationships/ERD2WQueryToManyRelationship.html
>
> Which does gives the toOneUIStyle option, but what are the assignable
> values? You gave me popup, but I'm hoping to be able find these
> possible values, and I'm not getting anywhere without clues each time
> I look thinks up.
Sometimes you just need to look at the code.
ERD2WEditToOneRelationship wraps an ERXToOneRelationship, and passes this binding to it: uiStyle = d2wContext.toOneUIStyle;
ERXToOneRelationship implements:
public boolean isCheckBox() {
return uiStyle().equals("checkbox");
}
public boolean isRadio() {
return uiStyle().equals("radio");
}
public boolean isPopup() {
return uiStyle().equals("popup");
}
public boolean isBrowser() {
return uiStyle().equals("browser");
}
So the options are "checkbox, radio, popup, browser".
>
> On Wed, Apr 27, 2011 at 3:42 AM, David Avendasora
> <email@hidden> wrote:
>> Hi Joe!
>>
>> You have missed the rule that tells D2W what UI style to use for the ERD2WEditToOneRelationship component.
>>
>> 25 : (pageConfiguration like '*EmbeddedAffiliate' and propertyKey ='company') => toOneUIStyle = popup [com.webobjects.directtoweb.Assignment]
>>
>> That should get you the popup instead of the radio buttons!
>>
>> Note: The Radio Button UI Style could use some CSS love... :-)
>>
>> Dave
>>
>> On Apr 27, 2011, at 12:13 AM, Joe Little wrote:
>>
>>> I have one working pull down I created before, but whenever I try to
>>> add another using the same scheme, I'm getting a ugly check box
>>> selection vs a pull down list, as seen from the attached. The rule I
>>> was using was:
>>>
>>> 100: (pageConfiguration like '*EmbeddedAffiliate' and propertyKey =
>>> 'company') => componentName = "ERD2WEditToOneRelationship"
>>> *Assignment*
>>>
>>> I'm trying to make company a pull down selection, but I end up with
>>> the attached for both CreatedEmbeddedAffiliate and
>>> EditEmbeddedAffiliate.
>>> <Screen shot 2011-04-26 at 9.09.48 PM.png> _______________________________________________
>>> 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
>
;david
--
David LeBer
Codeferous Software
'co-def-er-ous' adj. Literally 'code-bearing'
site: http://codeferous.com
blog: http://davidleber.net
profile: http://www.linkedin.com/in/davidleber
twitter: http://twitter.com/rebeld
--
WOWODC 2011 : July 1-2-3, Montreal. http://wowodc.com
_______________________________________________
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