Re: Is there an easy way..

Jean Pierre Malrieu <[email protected]>
Newsgroups gmane.comp.web.webobjects.devel
Message-ID <[email protected]>
something like that in htmI gess:

<webobject name="countryRepetition">
	<webobject name="CountryName"></webobject>
	<webobjet name="TownRepetition">
		<webobject name="TownName"></webobject><br>
	</webobject>
	<p></p>
</webobject>

then in your wod:

CountryRepetition:WORepetition {
	list = countryList;
	item = country;
}

CountryRepetition:WORepetition {
	list = country.towns;
	item = town;
}

etc.

Cheers.

JPM

	

>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 27 Dec 2006 16:06:15 +0000
> From: Gino Pacitti <[email protected]>
> Subject: Is there an easy way..
> To: Development WebObjects <[email protected]>
> Cc: [email protected]
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
>
> Hi All
>
> Could anyone help with a small problem.
>
> I have database setup with Countries and towns
>
> Country -- >> Town
>
> And I need to iterate through Each Country and make a heading, then
> list the towns for that country on a page.
>
> It should appear like this:
>
> Germany
> Berlin
> Nuremburg
> Stuttgard
>
> England
> London
> Manchester
>
> France
> Paris
>
> etc...
>
>
> Are there any premade WO Components that exist with bindings that can
> easy achieve this?
>
> Gino
>
>
>
>
> ------------------------------
>
> _______________________________________________
> WebObjects-dev mailing list
> [email protected]
> http://www.omnigroup.com/mailman/listinfo/webobjects-dev
>
>
> End of WebObjects-dev Digest, Vol 19, Issue 11
> **********************************************
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.