My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 25: Nested repeated section issue
1 person starred this issue and may be notified of changes. Back to list
Status:  Invalid
Owner:  ----
Closed:  Jul 2009


 
Reported by fernando...@gmail.com, Jun 22, 2009
Got this template to reproduce a sort of breadcrumbs output:
[ul class="path"]
{.repeated section outer}
	[li]
		{.repeated section inner}
			[a href="#"]{someproperty}[/a] >	
		{.end}
		[a href="#"]{someotherproperty}[/a]
	[/li]
{.end}	
[/ul]

When the outer has only one inner element it doesn't show it, if it has
more than one it shows perfectly. 
What version of the product are you using? On what operating system?

I've tested in macosx leopard firefox 3 and safari 4.

Any clues ?
Jun 22, 2009
#1 fernando...@gmail.com
Forgot to mention: json-template.js pre-release at r210 
Jun 22, 2009
Project Member #2 gtempacc...@yahoo.com
The template looks fine.  Can you post the data dictionaries you're using?

There's a test that verifies the behavior of nested repeated sections, so this should
be working:

http://chubot.org/json-template/test-cases/testNestedRepeatedSections-01.html

Jun 23, 2009
#3 fernando...@gmail.com
Template works fine, json-template is doing well. 
In my case, all json data dictionaries are developed by the xml2json package, so I
have control over the xmls that serves as input to xml2json instead of json data.
The problem is related to how xml2json rendered the json data object.
Thanks for you invaluable support !

Jul 9, 2009
Project Member #4 gtempacc...@yahoo.com
OK, glad to hear that.

Status: Invalid

Powered by Google Project Hosting