Re: foreach: list must not be a constant
Re: foreach: list must not be a constant
- Subject: Re: foreach: list must not be a constant
- From: Chuck Hill <email@hidden>
- Date: Thu, 14 Feb 2013 11:43:22 -0800
Just an aside, but if you are using auto-binding sync that is going to be doing a lot of fetching.
Chuck
On 2013-02-14, at 11:33 AM, John Pollard wrote:
> It is implemented as a method returning an NSArray:
>
> // Used to list players to tick who is playing
> public NSArray getPlayerGroups()
> {
> Object orderings[]={EOSortOrdering.sortOrderingWithKey("name", EOSortOrdering.CompareAscending)};
> NSArray sortOrderings = new NSArray(orderings);
> return PlayerGroup.fetchAllPlayerGroups(ec, sortOrderings);
> }
>
> This is actually in the super class of the component class (though I tried copying it to the actual component class and that didn't help. Neither did providing a setPlayerGroups method(), though I see no need to provide a set method.
>
> Thanks
> John
>
> On 14 Feb 2013, at 19:29, Musall Maik <email@hidden> wrote:
>
>> Please show the Java implementation of that list.
>>
>> Am 14.02.2013 um 20:24 schrieb John Pollard <email@hidden>:
>>
>>> Hi List,
>>>
>>> In wolips html view I get an error on the first line of the following html code:
>>>
>>> <wo:foreach list="$playerGroups" item="$nextPlayerGroup">
>>> <wo:ERQMListViewElement>
>>> <h3><webobject name="playerGroupLink"></webobject></h3>
>>> </wo:ERQMListViewElement>
>>> </wo:foreach>
>>>
>>> The error is on the foreach line: "list must not be a constant", though it isn't a constant and it works ok when run.
>>>
>>> I have updated wolips based on http://wocommunity.org/wolips/3.7/stable/
>>>
>>> Thanks for any help.
>>> John
>>>
>>>
>>>
>>> _______________________________________________
>>> 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
--
Chuck Hill Senior Consultant / VP Development
Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/gvc/practical_webobjects
Global Village Consulting ranks 13th in 2012 in BIV's Top 100 Fastest Growing Companies in B.C!
Global Village Consulting ranks 76th in 24th annual PROFIT 200 ranking of Canada’s Fastest-Growing Companies by PROFIT Magazine!
_______________________________________________
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