hello Sunondo,

in order to achieve this you will need to populate the collection (backing list) before going to the page, you must store the value objects in this collection
instead of simply printing the toString() of each element onto the screen you must then construct a table in which you print each field separately, this is plain JSP (possibly using Struts tags)


your JSPs should never be overwritten, is it a good practice to start working on the screens once the presentation use-cases have been finalized

I did not really test it but it could look like this:

<logic:iterate id="user" name="userBackingList" scope="request">
<p>
<bean:write name="user" property="name" scope="page"/>
<ul>
<li><bean:write name="user" property="age" scope="page"/></li>
<li><bean:write name="user" property="password" scope="page"/></li>
<li><bean:write name="user" property="favoriteColor" scope="page"/></li>
<li><bean:write name="user" property="nickname" scope="page"/></li>
</ul>
</p>
</logic:iterate>



hth

-- Wouter



Sunondo Ghosh wrote:

Hi Wouter,

I am now able to create a new user, get the list of users using a finder query and 
display the names of the newly created users! However, I would like to display all the 
attributes of the user (id and name) in a tabular format. Right now the form is 
expecting a Collection of Strings and displays them in this format on the screen: 
[userName1, userName2,...]. How can I pass a Collection of Value Objects to the form 
and have the results displayed in a table? I looked at the signal in the outgoing 
transition from the FrontEndView which is used to display the list of users. That only 
has a place to specify the type which is Collection. Can I specify what is contained 
in the Collection?

Also, I would like to add a left nav bar and have the use cases show up as links 
there. Is that easy to do?

Thanks,






-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
Andromda-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to