Hi Volker, I'm sorry for posting here (didn't know about the mailing list purpose :-o). Yesterday I saw that as a bug because <tc:command> had no effect in the sheet.
I think it wouldn't be a bad idea to have an example in the demo: I'm moving from myfaces:dataTable to tobago:sheet and the differences are numerous. Thanks again for your answer I'll take a look at the mailing list. On 6/14/07, Volker Weber (JIRA) <[email protected]> wrote:
[ https://issues.apache.org/jira/browse/TOBAGO-424?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12504624] Volker Weber commented on TOBAGO-424: ------------------------------------- Why do you need the rowIndex? you can get the rowindex and/or the currentObject in an additional actionListener search the users mailinglist for "[Tobago] using value from tc:link on server" If you are just interested in the current object than in the rowIndex then you can better use a f:param tag in combination with a actionListener PS: please ask such questions on the mailinglist first before creating a entry here. Regards, Volker > possibility to have a onclick event on a sheet column > ----------------------------------------------------- > > Key: TOBAGO-424 > URL: https://issues.apache.org/jira/browse/TOBAGO-424 > Project: MyFaces Tobago > Issue Type: Improvement > Affects Versions: 1.0.10 > Environment: not applicable: on checking the generated source I don't have the text onclick="alert('clicked');" > Reporter: Zied Hamdi > Priority: Blocker > > I'm trying to react on user clicks in the sheet, I don't have any access to the javascript, maybe a shorcut solution could be to add an attribute 'onclick' to UIColumn. > If there's a way to react on row selection I'm sorry for the inconvenience, but seen that I refer to your demo (I'm new to Tobago) I don't really have another source of information. Thanks anyway. > This is the code that doesn't work : <tc:command > doesn't generate any code and doesn't throw any excpetion > <tc:sheet id="personData" value="#{personCtrl.current.beanList}" > var="currentPerson" state="#{personCtrl.sheetState}" showHeader="true" > columns="1*;4*;4*;3*;6*;18*" showPageRange="center" showRowRange="right"> > <tc:column sortable="false"> > <tc:command onclick="alert('clicked');"> > <tc:image value="image/edit_icon.gif" border="0" > alt="#{i18n.element_select}" height="16" width="12" /> > <f:param name="selectedRowIndex" value="#{rowIndex}" /> > </tc:command> > </tc:column> > ... -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
-- Zied Hamdi zatreex.sourceforge.net Rejoindre mon réseau de contacts sur Viadeo : http://www.viadeo.com/invitationpersonnelle/0022cbh9e10sm7n
