Fetishcode

Fetishcode…Thinking in objects

TreeTable Editable

In this post explain how to put input text field inside adf tree table

Hoy en el foro de Oracle preguntaban como hacer un treetable editable y me puse a buscar la solución.

La idea es que se puedan editar algunos de los campos. Tal como se puede observar en la imagen.

El codigo seria el siguiente:

<af:treeTable value="#{bindings.LocationsView1.treeModel}" var="node"
selectionListener="#{bindings.LocationsView1.treeModel.makeCurrent}" rowSelection="single"
id="tt1" styleClass="AFStretchWidth">
<f:facet name="nodeStamp">
<af:column id="c0">
<af:outputText value="#{node.City}" id="ot1"/>
</af:column>
</f:facet>
<f:facet name="pathStamp">
<af:outputText value="#{node}" id="ot5"/>
</f:facet>
<af:column id="c7" headerText="Departments">
<af:outputText value="#{node.DepartmentName}" id="ot6"/>
</af:column>
<af:column id="c3" headerText="Employees">
<af:inputText value="#{node.EmployeeId}"/>
</af:column>
<af:column id="c4" headerText="Employees">
<af:inputText value="#{node.Email}"/>
</af:column>
</af:treeTable>

Advertisement

Deja un comentario

Fill in your details below or click an icon to log in:

Logo de WordPress.com

You are commenting using your WordPress.com account. Log Out / Cambiar )

Twitter picture

You are commenting using your Twitter account. Log Out / Cambiar )

Facebook photo

You are commenting using your Facebook account. Log Out / Cambiar )

Connecting to %s

Seguir

Get every new post delivered to your Inbox.