Re: D2W pull downs for toOne relationships aren't behaving as I'd expect anymore

2011-04-27 Thread David Avendasora
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  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 http://lists.apple.com/mailman/options/webobjects-dev/webobjects%40avendasora.com
 
 This email sent to webobje...@avendasora.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: D2W pull downs for toOne relationships aren't behaving as I'd expect anymore

2011-04-27 Thread Joe Little
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.

On Wed, Apr 27, 2011 at 3:42 AM, David Avendasora
webobje...@avendasora.com 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      (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 http://lists.apple.com/mailman/options/webobjects-dev/webobjects%40avendasora.com

 This email sent to webobje...@avendasora.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: D2W pull downs for toOne relationships aren't behaving as I'd expect anymore

2011-04-27 Thread David LeBer
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
 webobje...@avendasora.com 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  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 http://lists.apple.com/mailman/options/webobjects-dev/webobjects%40avendasora.com
 
 This email sent to webobje...@avendasora.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/dleber_wodev%40codeferous.com
 
 This email sent to dleber_wo...@codeferous.com
 

;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  (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