There is also a <s:selectOneRow> tag in the sandbox, though there is not much documentation. There is this though:

"Enhancement for a data-table to select one Row with a radio button. The row-index is stored in the [value-binding]"

So this will only help you if using radio buttons. Otherwise, use a solution like we have previously.

(org.apache.myfaces.custom.selectOneRow)
http://svn.apache.org/repos/asf/myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/selectOneRow/

Regards,

Jeff Bischoff
Kenneth L Kurz & Associates, Inc.

Jeff Bischoff wrote:
Hello Nicolas,

Please see our past discussion about this: "datatable and selecting a row event" [1]

In the future, before posting please check the archive [2] to see if a question has already been discussed.

If you have any further questions on the subject, we'll be happy to help. :)

[1] http://www.mail-archive.com/[email protected]/msg22083.html
[2] http://www.mail-archive.com/[email protected]/

Regards,

Jeff Bischoff
Kenneth L Kurz & Associates, Inc.

Nicolas Kalkhof wrote:
hello folks,

i wonder if there is a way in myfaces/tomahawk to use a <selectOneRow...> something tag in a dynamic datatable. the reason behind my question is, i have a datatable containing inbox message header information in a row (sender, date, subject,...). whenever i klick on one of the columns in the same(!) row i want to open this message by passing something to my backing bean.

in struts iŽve used a hiddenfield and javascript inserting a unique id in that hidden field and passing it to the formbean during submit. but i guess there is a besser way than javascript using myfaces/tomahawk, right?

any idea how i can make this work?

regards,

nicolas



Viren-Scan für Ihren PC! Jetzt für jeden. Sofort, online und kostenlos. Gleich testen! *http://www.pc-sicherheit.web.de/freescan/?mc=022222*







Reply via email to