Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to model non-scalar properties in dataTable  RSS feed

 
David Karr
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm currently experimenting with JSF 1.1 and RichFaces 3.1.3, on WebLogic 9.2.2.

(I asked about this on the RichFaces forum, but I haven't gotten a single response.)

For background, I'm trying to model a list of "Project" objects, where each project has a name and department, and also a list of Server objects for each project. The number of servers per project is variable, but it's reasonable to assume it's at least one.

As this is modeled in a spreadsheet, if the project has several servers, the cell with the project name is a "tall" cell, and the rows with the server names are associated with that cell. I know I'm not describing it very well, but that's approximately what I'm trying to represent.

Eventually, I'll need full editing capabilities, including the ability to add/delete/edit projects and servers, but that is probably more straightforward than this table layout problem.

I can only find one example of "rich:subTable", and I can't figure out how to get that to work in my situation.

Can anyone give me any suggestions on how to model this?
 
Bob Good
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How about a tree control?

http://livedemo.exadel.com/richfaces-demo/richfaces/tree.jsf
[ January 11, 2008: Message edited by: Bob Good ]
 
David Karr
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Considering that I've received exactly zero replies on any related forum on this subject, except for this one, I think this may be my only alternative. It's certainly not ideal, as my hierarchy would only be two levels. I guess I'll experiment with this. I filed a JIRA ER asking for a feature like this.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!