• Post Reply Bookmark Topic Watch Topic
  • New Topic

Displaying data from collection - one object per column  RSS feed

 
Michal Porzozynski
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Everyone !
At first place I want to apologize for my "not to good English" ;)

I'm writing financial application in JSF 1.1 I'm using Sun implementation. I'm running my application on Tomcat 5.5.20.

I've got an ArrayList called liabilities in session managed been.

In liabilities list I hold few objects of Liabilities type.
It's simple to display all of this object in this way:

.. and I get something like this

Unfortunately I need to display this data in this format:

I have to display one Liablities object in one column. Values should be display in h:inputText component.

I'm ready to change JSF implementation to MyFaces.. if there is component that I'm looking for.

Any advice ?

Best Regards..
Michal (Poland, Cracow)
 
Masoud Kalali
Author
Ranch Hand
Posts: 531
Java Mac OS X Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could transform your current list to another list of objects that represent the same schema that you need. do it in your backend getter method.

With JSF components i doubt you could do this even if you switch to MyFaces.
 
Michal Porzozynski
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Masoud Kalali:
You could transform your current list to another list of objects that represent the same schema that you need. do it in your backend getter method.


Of course this is a good solution when we want only to display data. In this case I want to display and edit data. I think I may implement also proper setter method.. but I've got a lot of this kind of forms and my classes (such as Assets or Liabilities) has got a lot (50 - 60) of properties.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!