You just have to convert your h:outputText to h:inputText. This way, you can
modify the values of every row.
HTH,
- - Rafa
On Fri, Feb 22, 2008 at 3:21 AM, jnl1 <[EMAIL PROTECTED]> wrote:
>
> hi all...
>
> i'm new to myFaces (inherited application). currently, there's a page
> that's has search criteria and on the bottom of the page are the results
> (updated after user performs search). Can someone point my in the right
> direction on how to convert my "static" table to an editable one ? below
> is
> my table.
>
> thanks...appreciate taking the time...
>
> <h:form>
> <af:table allDetailsEnabled="true" var="row" bandingInterval="1"
> banding="row" value="#{standards}" rows="#{preferences.maxTableRows}"
> width="100%" rendered="#{!empty standards}">
> <af:column sortable="true" sortProperty="name">
> <f:facet name="header">
> <h:outputText value="#{messages['standard']}"/>
> </f:facet>
> <h:panelGrid columns="3">
> <af:commandLink
> action="#{searchStandardsController.allDataStandardsViewStandard}">
> <h:graphicImage url="/images/icon_document.gif"
> border="0"/>
> <f:param name="standardId" value="#{row.id}"/>
> </af:commandLink>
> <af:objectSpacer width="10px" height="1px"/>
> <af:commandLink
> action="#{searchStandardsController.allDataStandardsViewStandard}">
> <h:outputText value="#{row.name}"/>
> <f:param name="standardId" value="#{row.id}"/>
> </af:commandLink>
> </h:panelGrid>
> </af:column>
> <af:column sortable="true" sortProperty="type">
> <f:facet name="header">
> <h:outputText value="#{messages['type']}"/>
> </f:facet>
> <h:outputText value="#{row.type}">
> </h:outputText>
> </af:column>
> <af:column sortable="true" sortProperty="organization">
> <f:facet name="header">
> <h:outputText value="#{messages['organization']}"/>
> </f:facet>
> <h:outputText value="#{row.organization}">
> </h:outputText>
> </af:column>
> <af:column sortable="true" sortProperty="group">
> <f:facet name="header">
> <h:outputText value="#{messages['group']}"/>
> </f:facet>
> <h:outputText value="#{row.group}">
> </h:outputText>
> </af:column>
> <af:column>
> <f:facet name="header">
> <h:outputText
> value="#{messages['category.subcategory']}"/>
> </f:facet>
> <h:outputText value="#{row.category} / #{row.subcategory}"
> rendered="#{!empty row.subcategory}"/>
> <h:outputText value="#{row.category} / #{messages['na']}"
> rendered="#{empty row.subcategory}"/>
> </af:column>
> <af:column sortable="true" sortProperty="status">
> <f:facet name="header">
> <h:outputText value="#{messages['status']}"/>
> </f:facet>
> <h:outputText value="#{row.status}">
> </h:outputText>
> </af:column>
>
> </af:table>
> </h:form>
> --
> View this message in context:
> http://www.nabble.com/new-to-myfaces---editable-datatable-tp15626201p15626201.html
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>