Re: binding oddity?
Re: binding oddity?
- Subject: Re: binding oddity?
- From: Michael Gargano <email@hidden>
- Date: Wed, 03 Nov 2010 09:57:03 -0400
That was just a simplification of the code I was writing. Basically, there is an object from a list being displayed center page and a list of all the objects at the bottom. I was checking to see if an object in the list was the same as the one being displayed as I was iterating over them so I could give it a different styling and make it stand out as selected. I am just using plain old WOConditionals for this. Once I changed the method name it works fine. It was one of the first things I tried doing, but I wasn't really expecting it.
-Mike
On Nov 3, 2010, at 9:34 AM, Farrukh Ijaz wrote:
> Hi Mike,
>
> On 2010-11-03, at 4:19 PM, Stefan Klein wrote:
>
>>>>> public class myComp extends ERXComponent {
>>>>>
>>>>> public SomeEntity anObject;
>>>>>
>>>>> public boolean isAnObject() {
>>>>> return false;
>>>>> }
>>>>>
>>>>> }
> BTW, what is the purpose of this isAnObject() which is always returning false?
>
> Can you please share the binding code also? It should depend on the binding type and where the binding is used.
>
> If you are using some kind of conditional components then you also try to use Wonder's additional conditional tags such as ERXNonNullConditional, ERXNonZeroConditional, ERXKeyValueConditional, ERXEqualConditional. They are quite useful and most of the time serves the purpose without explicitly defining conditional methods.
>
> Farrukh
_______________________________________________
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