java - JAXB / Jersey - Feed doesn't show my nested list - Any idea? -


it's frustrating , i've been fighting issue 5 hours now... :(

i'd expect jaxb/jersey embed list of downloads in project's json feed... unfortunately it's missing.

here's code snippet:

project.java ... @xmlelement     public final list<download> getdownloads() {         return this.downloads;     } ... 

i can fetch download object without problems...

{"contenttype":"application/zip","filename":"source_something.zip","key":"17","title":"some new title"} 

when use list of strings - works fine!

@xmlelement     public final list<string> gettechnologies() {         return this.technologies;     } 

output of project.json (see nested technologies list):

{"key":"16","date":"1999-01-13t02:23:31.712z","description":"somedesc","teaser":"this teaser!","technologies":["sometec1","sometec2","bar","foo"],"title":"my first project","type":"mobile"} 

my download class looks pretty (and i've mentioned - works pretty fine when used directly):

@xmlrootelement public class download extends basedownloadbean { ...  @xmlelement     public final string getfilename() {         return this.filename;     } } 

do guys have idea problem might be?

setting download object jaxb annotated class should solve problem.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -