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: John Pollard <email@hidden>
- Date: Thu, 14 Feb 2013 19:33:42 +0000
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