list --> detail page problem (object passing)

I have a problem in making the following work:

I have an application with spring, hibernate and JSF and want to make a simple

list with an edit link in every line. The edit link gets you to a editDetails.jsp where you can change and save details. (Simplest CRUD - app)

My list looks something like this:

<h:dataTable id="table" value="#{consoleService.participants}" var="participant">

<h:column>

<h:outputText value="#{participant.lastName}" />

</h:column>

<h:column>

<h:commandLink action="editParticipant">

<h:outputText value="edit" />

<f:param name="participant" value="#{participant}" />

</h:commandLink>

</h:column>

this works fine so far

In my details page I use

value="#{participant.id}"

value="#{participant.email}"

and so on to acces the properties of the participant but the properties are empty

I desparately searched the the web for the last 4 hours and could not find the proper to pass objects to the next page. What is the recommended way? I have tried all different combinations without success

I have a list and want to see the details of a specific item on the next page?

Can this be done without any further java coding (I already have a consoleService.getParticipant method).

Can I pass a java object in a f:param tag?

Pleeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeease help!

[1750 byte] By [romeosunnoa] at [2007-10-2 10:05:40]
# 1

In your details page, give this a shot:

value=#{param.participant.id}"

value=#{param.participant.email}"

I'm just starting to use jsf, but I think that should work.

Here is where I found the details of the implicit objects that are available :

http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JSFPage10.html#wp119960

I hope that helps.

jdc@rotwang.coma at 2007-7-13 1:21:21 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

> > <h:dataTable id="table"

> value="#{consoleService.participants}"

> var="participant">

> <h:column>

><h:outputText value="#{participant.lastName}" />

> </h:column>

> <h:column>

> <h:commandLink action="editParticipant">

><h:outputText value="edit" />

> <f:param name="participant" value="#{participant}"

> }" />

> </h:commandLink>

> </h:column>

>

You cannot pass an Custom Object as a parameter.

> <f:param name="participant" value="#{participant}" is not possible. Instead, pass "id" or any other key as param and access the data from the from the DataBase or whereever with the param passed.>

Akash_Gangaa at 2007-7-13 1:21:21 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...