Paul Ryan schrieb: > Hi, > > I am trying to do inline editing within a table. I have included a > togglePanel component as a column value within a <t:datatable>, my problem > is that the 'for' attribute seems to require the explicit id of the > component to hide/display, so when my table contains more than one row, the > ids get mixed up. > Does anyone have a solution to this or a better way to do this ? > > This is my jsf snippet > > <h:column> > <s:togglePanel> > <s:toggleGroup> > <s:toggleLink for="editValue"> > <h:outputText value="click to edit"/> > </s:toggleLink> > </s:toggleGroup> > > <t:div id="editValue"> > <t:inputText value="#{test.value}"/> > <h:commandLink value="Update" > actionListener="#{handler.update}"/> > </t:div> > </s:togglePanel> > </h:column> > There is a less dynamic toggle mechanism already embedded in tomahawk check the master detail example which does exactly that, toggeling of detail stuff in a data table.