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 protected]> wrote:

> Please show the Java implementation of that list.
> 
> Am 14.02.2013 um 20:24 schrieb John Pollard <[email protected]>:
> 
>> 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 protected])
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-dev/maik%40selbstdenker.ag
>> 
>> This email sent to [email protected]
> 
> 
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      ([email protected])
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/john%40pollardweb.com
> 
> This email sent to [email protected]


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to