Yes, doing the same thing. 

Some columns requires a different background color and most of them have something 
different. So, it results in a lot of if statements to check the column.

Looking desperately for a good solution.

Jayaraman
-----Original Message-----
From: Gandle, Panchasheel [mailto:[EMAIL PROTECTED]
Sent: Monday, August 04, 2003 11:04 AM
To: 'Struts Users Mailing List'
Subject: RE: dynamic columns for a jsp


We have a very similar situation, haven't done it yet, 
but planning to have two collection to iterate over.

one for the columns, that I know when the user logs in, I would get it from
his preferences of columns from DB.
other the business objects...

is this the same that you are doing or any different?
If somebody has a good solution for this, would help....


Panchasheel

-----Original Message-----
From: Jayaraman Dorai [mailto:[EMAIL PROTECTED]
Sent: Monday, August 04, 2003 10:47 AM
To: [EMAIL PROTECTED]
Subject: dynamic columns for a jsp


There are around 20 attributes for a business object. The jsp iterates over
a collections of this business object and displays them. The user does not
want to see all the 20 attributes. Different users may want to see different
attributes. This requirement is similar to what outlook provides, the user
can select the columns of his inbox. 
 
Have build a separate UI to get from the user the different columns he wants
to see and store them in the database. The jsp which iterates over the
business object, looks untidy now, with a lot of if/else statements.
 
If anyone else have designed something like this, please provide your
suggestions.
 
Thanks
Jayaraman

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to