Thanks for your help, Marcus.
But now comes the doubt... Where can I find which column events can I
work with? and, already referring to the last msg I sent, which
attributes does tc:attribute accepts and when?
Regards,
Fernando Augusto
Marcus Kröger escreveu:
Hi Fernando,
pls have a look at the tobago addressbook example. There you can find a
solution how to react on "click-events" in a tobago sheet. For example, by
using
<tc:columnEvent event="dblclick">
<tc:command action="#{controller.editAddress}"/>
</tc:columnEvent>
you would react on a double click on the row. The addressbook example can be
found in the current build 1.0.24 below /example/addressbook and can be
started by using mvn jetty:run-expploded in the war directory.
Cheers
Marcus
2010/3/9 Fernando Augusto <ferna...@osmanager.com.br>
Hello,
I am new to Tobago and to JSF, and I got a problem while thinking in a way
to implement a master-detail form, or any way to show the details of a row
when clicked on somewhere. The problem is: that action needs to be performed
by a *single click* action, for usability reasons. I cant make the user to
select a row AND click a button.
I was doing it with plain JSF using a commandLink and f:param tag passing
the row ID to a method called by the actionListener and then redirecting,
using a static action, to another page. But my boss have seen how easy is to
make popups and form rendering in Tobago, and asked me to make a Tobago
version of our system. Everything seems to be pretty straightforward in
tobago, <RANT> except this and those weird and undocumented tc:attribute
uses... I still need to find anything about them... </RANT>
So, is there a way to implement Master-Detail approach in Tobago???
Best Regards,
Fernando Augusto