Forums Register Login

Displaying data from collection - one object per column

+Pie Number of slices to send: Send
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)
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
 

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.
I'm so happy! And I wish to make this tiny ad happy too:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 691 times.
Similar Threads
dataTable in JSF
Help on JSF Custom tag
How to use datatable with no records in a list
nesting h:panelGrid within h:dataTable
nested h:datatable question
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 10:40:19.