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!

Command link display wrong

726435Oct 7 2009 — edited Feb 18 2010
I have a table with a commandLink nested into a column. command link display itemID.

When I click the commandLink , it will take me to the item edit page(ADF Dialog).

** The problem is, Sometime I click first item in the table, command link switch to display third item
and open pop up page to third item data.

i develop by Toplink , JDeveloper 10.1.3.3.0, connect to Oracle10gR2 Database.
The table in page display data from DB View.

Code JavaServer Face address.jspx :

<af:table value="#{bindings.findVAddressesByKey1.collectionModel}"
var="row" rows="#{bindings.findVAddressesByKey1.rangeSize}"
first="#{bindings.findVAddressesByKey1.rangeStart}"
emptyText="#{bindings.findVAddressesByKey1.viewable ? 'No rows yet.' : 'Access Denied.'}"
selectionState="#{bindings.findVAddressesByKey1.collectionModel.selectedRow}"
selectionListener="#{bindings.findVAddressesByKey1.collectionModel.makeCurrent}"
binding="#{backing_app_App_guaadd.table1}" id="table1"
width="100%" partialTriggers="cmdEditaddGuaLink">
<f:facet name="selection"/>
<af:column sortProperty="cgFirstTName" sortable="false"
headerText="#{res['app_guaadd.guaFirstLast']}">
<af:outputText value="#{row.cgFirstTName} #{row.cgLastTName}"/>
</af:column>
<af:column sortable="false"
headerText="#{res['appaddcus.adShareFlag']}"
binding="#{backing_app_App_guaadd.column1}" id="column1"
rendered="false">
<af:outputText value="#{row.adShareFlag}"
binding="#{backing_app_App_guaadd.outputText1}"
id="outputText1"/>
</af:column>
<af:column sortProperty="adWavArea" sortable="false"
headerText="#{res['appaddcus.adwavarea_status']}"
rendered="false">
<afh:tableLayout width="100%">
<afh:rowLayout>
<afh:cellFormat halign="center">
<af:selectBooleanCheckbox value="#{row.ad_wav_area}"
disabled="true"/>
</afh:cellFormat>
</afh:rowLayout>
</afh:tableLayout>
</af:column>
<af:column headerText="#{res['appaddcus.adtype_status']}">
<*af:commandLink* text="#{(row.adType=='C')?res['appaddcus.adtype1_status']:(row.adType=='O')?res['appaddcus.adtype2_status']:(row.adType=='R')?res['appaddcus.adtype3_status']:res['appaddcus.adtype4_status']}"
binding="#{backing_app_App_guaadd.commandLinkEdit}"
returnListener="#{backing_app_App_guaadd.refreshPage}"
id="cmdEditaddGuaLink"
useWindow="true" windowWidth="1100"
action="#{backing_app_App_guaadd.guaEditLink_Action}">
<af:inputHidden value="#{row.adPersonType}"
binding="#{backing_app_App_guaadd.inputHiddenEditAdPersonType}"/>
<af:inputHidden value="#{row.adW1Size}"
binding="#{backing_app_App_guaadd.inputHiddenEditAdW1Size}"/>
<af:inputHidden value="#{row.adW1Pos}"
binding="#{backing_app_App_guaadd.inputHiddenEditAdW1Pos}"/>
<af:inputHidden value="#{row.adF1Pos}"
binding="#{backing_app_App_guaadd.inputHiddenEditAdF1Pos}"/>
<af:inputHidden value="#{row.adG1Pos}"
binding="#{backing_app_App_guaadd.inputHiddenEditAdG1Pos}"/>
<af:inputHidden value="#{row.adP1Size}"
binding="#{backing_app_App_guaadd.inputHiddenEditAdP1Size}"/>
<af:inputHidden value="#{row.adType}"
binding="#{backing_app_App_guaadd.inputHiddenEditAdType}"/>
<af:inputHidden value="#{row.adWavArea}"
binding="#{backing_app_App_guaadd.inputHiddenEditAdWavArea}"/>
<af:inputHidden value="#{row.adGuaSeq}"
binding="#{backing_app_App_guaadd.inputHiddenEditAdGuaSeq}"/>
</af:commandLink>
</af:column>
<af:column sortProperty="adType" sortable="false" rendered="false"
headerText="#{res['appaddcus.adtype_status']}">
<af:outputText value="#{(row.adType=='C')?res['appaddcus.adtype1_status']:(row.adType=='O')?res['appaddcus.adtype2_status']:(row.adType=='R')?res['appaddcus.adtype3_status']:res['appaddcus.adtype4_status']}"/>
</af:column>
</af:table>






Any help is appreciated.

Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 18 2010
Added on Oct 7 2009
4 comments
1,121 views