Hi Stephan, I'm not really sure what's your requirement: do you want to invoke some javascript function when details are opened, or do you want to invoke an actionListener in your backing bean?
For had the second requirement some time ago and wrote a custom ComponentHandler for facelets, so this solution is only an option if you're using facelets. With the ComponentHandler we were able to add a new attribute "toggleDetailActionListener" to the dataTable that accepts a method binding... A more detailed description you find at http://www.javakaffee.de/blog/2006/12/11/how-to-add-a-new-attribute-to-an-existing-jsf-component-using-facelets/ if it's of any interest for you. Cheers, Martin On Thu, 2007-03-29 at 09:06 +0200, Strittmatter, Stephan wrote: > Hi, > > I wonder how I could use sandbox tag submitOnEvent [1, 2] within > dataTable > to open details of clicked row. > > Currently I use a hack with selfwritten JavaScript and hidden buttons in > every > row like described in Sun's forum [3]. But I think, the submitOnEvent > would > be much more elegant, but there are to open questions: > > 1. How can I define the tag for the row (not every cell)? > 2. Is it possible to nest param-tags to the submitOnEvent-tag? > > Or - probably there is another more common and elegant solution to do > this? > > Thanks for any hints, > > Stephan > > [1] http://myfaces.apache.org/sandbox/tlddoc/s/submitOnEvent.html > [2] http://wiki.apache.org/myfaces/SubmitOnEvent > [3] http://forum.java.sun.com/thread.jspa?threadID=781630&tstart=0 > -- Martin Grotzke http://www.javakaffee.de/blog/
signature.asc
Description: This is a digitally signed message part

