Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Delete button in a row table adf

2890292Mar 19 2015 — edited Mar 20 2015

Hello.

I created a read-only table and put a delete button in a column but when pressed all rows are partialy deleted but when i refresh the page the rows still there...

I have Jdeveloper 12.1.3.0.41.

This is the code of the page:

<?xml version='1.0' encoding='UTF-8'?>

<!DOCTYPE html>

<f:view xmlns:f="http://java.sun.com/jsf/core" xmlns:af="http://xmlns.oracle.com/adf/faces/rich"

        xmlns:h="http://java.sun.com/jsf/html">

    <af:document title="table.jsf" id="d1">

        <af:messages id="m1"/>

        <af:form id="f1">

            <af:table value="#{bindings.ViewObj1.collectionModel}" var="row" rows="#{bindings.ViewObj1.rangeSize}"

                      emptyText="#{bindings.ViewObj1.viewable ? 'No data to display.' : 'Access Denied.'}"

                      rowBandingInterval="0" fetchSize="#{bindings.ViewObj1.rangeSize}" id="t1" partialTriggers="b1">

                <af:column headerText="#{bindings.ViewObj1.hints.FirstName.label}" id="c1">

                    <af:outputText value="#{row.FirstName}" shortDesc="#{bindings.ViewObj1.hints.FirstName.tooltip}"

                                   id="ot1"/>

                </af:column>

                <af:column headerText="#{bindings.ViewObj1.hints.PersId.label}" id="c2">

                    <af:outputText value="#{row.PersId}" shortDesc="#{bindings.ViewObj1.hints.PersId.tooltip}" id="ot2">

                        <af:convertNumber groupingUsed="false" pattern="#{bindings.ViewObj1.hints.PersId.format}"/>

                    </af:outputText>

                </af:column>

                <af:column headerText="#{bindings.ViewObj1.hints.Initials.label}" id="c3">

                    <af:outputText value="#{row.Initials}" shortDesc="#{bindings.ViewObj1.hints.Initials.tooltip}"

                                   id="ot3"/>

                </af:column>

                <af:column headerText="#{bindings.ViewObj1.hints.LastName.label}" id="c4">

                    <af:outputText value="#{row.LastName}" shortDesc="#{bindings.ViewObj1.hints.LastName.tooltip}"

                                   id="ot4"/>

                </af:column>

                <af:column headerText="#{bindings.ViewObj1.hints.ProgrammeManagerYn.label}" id="c5">

                    <af:outputText value="#{row.ProgrammeManagerYn}"

                                   shortDesc="#{bindings.ViewObj1.hints.ProgrammeManagerYn.tooltip}" id="ot5"/>

                </af:column>

                <af:column id="c6">

                    <af:button actionListener="#{bindings.Delete.execute}" text="Delete"

                            id="b1"/>

                </af:column>

            </af:table>

        </af:form>

    </af:document>

</f:view>

Regards.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 17 2015
Added on Mar 19 2015
23 comments
2,243 views