File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RichFaces: dataList/dataTable/columns local vars unaccessable

 
Akaine Harga
Ranch Hand
Posts: 97
Java MyEclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello

I have a problem accessing local variables I maped my lists to inside a 4 livel list structure similar to this: List<List><List>> areas

Here goes an example of a dynamic tables list I want to generate:
While RichFaces sees registry var (the first static column renders well) when I try to generate columns with it RF refuses to generate any giving me ERROR [ColumnsHandler] FOREACH_BAD_ITEMS exception, which means rich:columns does not recognizes any value inside the registry var.

Observations:
- exactly the same happens if I put mbean.areas[areaIdx].registries[row].columns as rich:columns value.
- if I put a columns directly as an mbean property (by declaring it in mbean previously of course) it works, still this is worthless in my case because I can't avoid 4 level list structure.
- I print the whole structure out in the console and all objects are in place, it's a RF problem.

Any ideas why this happens?
Any suggestions how could I solve this?

Thanks
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic