Re: [TOBAGO] Master-Detail
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 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 > 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, except this and those weird and undocumented tc:attribute > uses... I still need to find anything about them... > So, is there a way to implement Master-Detail approach in Tobago??? > > Best Regards, > > Fernando Augusto >
Re: [TOBAGO] Master-Detail
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 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 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, except this and those weird and undocumented tc:attribute uses... I still need to find anything about them... So, is there a way to implement Master-Detail approach in Tobago??? Best Regards, Fernando Augusto
Re: [TOBAGO] Master-Detail
Hello Fernando, here are the allowedValues = {"click", "dblclick"} of event in tc:columnEvent (I've added this to the docu, now). The tc:attribute is the Tobago-version for f:attribute. The allowed (and reasonable) values for name and value depends on the parent UIComponent. Regards, Udo Fernando Augusto schrieb: 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 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 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, except this and those weird and undocumented tc:attribute uses... I still need to find anything about them... So, is there a way to implement Master-Detail approach in Tobago??? Best Regards, Fernando Augusto
Re: Tobago Master / Detail
Hello Chris, a good example for a master detail scenario would be the tobago-example-addressbook. You should look at the attribute state of tc:steet. Unfortunatley tc:link doesn't support f:param. I have added an issue for this http://issues.apache.org/jira/browse/TOBAGO-78 Regards ChrisA schrieb: Hi all, i didn´t get a master / detail scenario to work. The tobabo sheet works well even sortable ;). so i started to place a link instead a text. actionListener="#{SupplierController.showDetail}"> SupplierController gets an ActionEvent object, but where do get the corresponding detail -id to pass the details-id to a special page ? core:param seems not to work with tobago link. the link itself says: javascript:Tobago.submitAction('page:sheet:5:_idJsp9'), so obviously the 5 should appear somewhere in the action ? or am i missing a point there ? thanks for help, Chris -- View this message in context: http://www.nabble.com/Tobago-Master---Detail-t1747721.html#a4750750 Sent from the MyFaces - Users forum at Nabble.com. -- Dipl.-Ing. Bernd Bohmann - Atanion GmbH - Software Development Bismarckstr. 13, 26122 Oldenburg, http://www.atanion.com phone: +49 441 4082312, mobile: +49 173 8839471, fax: +49 441 4082333
Re: Tobago Master / Detail
Hi Bernd, Thanks, that did the job. I´ve seen the addressbook example before, but didn´t realized that state was used to pass a selection around. Regards, Chris -- View this message in context: http://www.nabble.com/Tobago-Master---Detail-t1747721.html#a4766824 Sent from the MyFaces - Users forum at Nabble.com.