• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Joshua Marker's book: chapter 7
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Joshua Marker's book: chapter 7


  • Subject: Re: Joshua Marker's book: chapter 7
  • From: wojingo <email@hidden>
  • Date: 05 Jun 2004 21:25:57 +0930

Hi,

On Sat, 2004-06-05 at 13:00, Jeremy Matthews wrote:
> For some odd reason, I just can't get the project to compile
> correctly..not sure where I'm messing things up. I've nailed it down to
> a single error. When I run my version of the "WebPublisher" app, I hit
> the following error:
>
> Error:
>   com.webobjects.appserver._private.WODynamicElementCreationException:
> Missing 'list' or 'count' attribute.
>
>   Reason:
>   <com.webobjects.appserver._private.WORepetition> Missing 'list' or
> 'count' attribute.
>

I think you need to check the .wod file of that Component and make sure
that the repetition actually has binding for the list attribute.
eg)
list = someArray;

An example off the top of my head,

In the wod file it should look something like:

myRepetition : WORepetition{
 list = someArray;
 item = someVariable;
}

arrayItem: WOString{
  value = someVariable;
}

In the java class

protected NSArray someArray = new NSArray(new String[]{"x","y","z"});
protected String someVariable;

In the html file

<table>
<webobject name=myRepetition>
<tr>
<td><webobject name=arrayItem></webobject></td>
</tr>
</webobject>
</table>

I havent written any WOCode in a while so something in there may not be
correct.  :)


HTH.
-
shaun
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Joshua Marker's book: chapter 7 (From: Jeremy Matthews <email@hidden>)

  • Prev by Date: Re: Joshua Marker's book: chapter 7
  • Next by Date: Re: Beating request-response cycle on debug?
  • Previous by thread: Re: Joshua Marker's book: chapter 7
  • Next by thread: EO-last modified...?
  • Index(es):
    • Date
    • Thread