Nested Iterator in JSF
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Friday, April 11, 2008 08:12 AM

Hi, We are using JSF in our project. We are receiving one list from the web service and we need to iterate through that list to display the contents over the jsp page. The list is basically the collection of the Bean Class(A) object which in turn can contain other objects (A.B, A.C etc., B & C are different Bean Class Objects) as the member of the Bean Class(A). Now the requirement is to nested iterate thorough the list and display each element from the class A and also from the sub-classes(B&C) over the jsp page. In JSF , we are having one iterator named , but it displays in sequential manner only, not as per our requirements. For Example,    More>>

Hi,



We are using JSF in our project. We are receiving one list from the web service and we need to iterate through that list to display the contents over the jsp page.



The list is basically the collection of the Bean Class(A) object which in turn can contain other objects (A.B, A.C etc., B & C are different Bean Class Objects) as the member of the Bean Class(A).



Now the requirement is to nested iterate thorough the list and display each element from the class A and also from the sub-classes(B&C) over the jsp page.



In JSF , we are having one iterator named , but it displays in sequential manner only, not as per our requirements.



For Example, suppose we are having one list of an object named A, having 3 members as Id, Desc, Status.



Required Format :

Id-1

Desc-1

Status-1



Id-2

Desc-2

Status-2

..

..

..

Id-n

Desc-n

Status-n



Output:

Id-1 Desc-1 Status-1

Id-2 Desc-2 Status-2

.. .. ..

.. .. ..

Id-n Desc-n Status-n





Any pointer regarding this is really very helpful.





Thanks & Regards,

Amit Bhardwaj

S.I. - Pune

Phone(O) : 91-20-39114528 - Ext : 14528

Mobile : 91-9921758317

   <<Less
About | Sitemap | Contact