-
Sep 10th, 2012, 11:35 AM
#1
Iterate over a non JPA/Domain list of objects using <page:list?
Hi,
I have only just discovered Roo, and I think it's great. I'd like to learn a few tricks of customisation, some help would be great.
Here is my first ever post 
I have a custom built contoller that loops over some json files on disk, unmarshalls their contents into a POJO of my own (not JPA/Hibernate).
Once each POJO has been created, I add it to a list, and pass the list into my view as a model attribute, no probs.
When i try to output using a page:list, I get the following error:
EL1027E
pos 4): Indexing into type 'au.com.foo.bar.JsonFile' is not supported
Here is my page list in the jspx file:
<page:list id="pl_au_com_foo_barJsonFile" items="${jsonList}">
<table:table data="${xmlDataList}" id="l_au_com_foo_barsonfile" path="/listfiles/json" create="false" update="false" delete="false">
<table:column id="c_au.com.foo.bar.JsonFile_jsonFile" property="jsonFile" z="user-managed"/>
</table:table>
</page:list>
Can this be done?
Also, can I make my dev copy of the app display any errors in the browser, instead of a 'Internal Error'?
Thanks in advance
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules