Command link display wrong

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.

I'm having same issue in JDev 10.1.3.4. When I click first item in the table to go to the detail page, command link switch to display third item. This happens only after I click on the column sorting or after createInsert new record.
I used af:setActionListener for link from the table:
<af:commandLink text="#{row.UsrUserid}" action="editUser">
<af:setActionListener from="#{row.rowKeyStr}"
to="#{processScope.requestRowKey}"/>
</af:commandLink>
I got the value from the detail pagedef:
<action IterBinding="SssUsersView1Iterator" id="setCurrentRowWithKey"
InstanceName="SSSServiceAppModuleDataControl.SssUsersView1"
DataControl="SSSServiceAppModuleDataControl"
RequiresUpdateModel="false" Action="96">
<NamedData NDName="rowKey"
NDValue="#{processScope.requestRowKey}"
NDType="java.lang.String"/>
</action>
Any suggestions? Thanks.

Similar Messages

  • Command link propagating the Faces Message to another page

    Hi,
    I am facing a problem with a message +(message added to FacesContext Queue)+ being propagated from one page to another.
    I have 2 jsp pages. Both these pages when accessed display data loaded from DB. When the user comes to first page and there is no data found a FacesMessage is added to FacesContext and is displayed. There is a command link on this page which performs the navigation to 2nd jsp page.
    Problem* : If the user clicks the link, the same message that was displayed in 1st jsp page is displayed in 2nd jsp page even if the data is present
    FacesContext display messages that are in the same request and clicking on command link creates a new request, so the old message in the FacesContext Queue should be removed and it should not carry forward that message to next jsp
    Please correct me if I am wrong.
    Thanks
    Avner
    Edited by: avner on Jan 31, 2008 8:38 PM

    I don't think you have given us enough to work with here. Try paring down the code to the smallest possible example that still exhibits the problem. Many times that process itself will reveal the issue. If not, post the example here.

  • My command link doesn't work

    hi all,
    i have a created a page where i am performing a web type search with search form and search results on the same page and i have also implemented the conditional display of search results table as directed by the ADFBC guide.
    i.e., I created a managed bean where in am setting the searchFirstTime flag. here is the code of my managed bean.
    public class UserState {
    private static final String SEARCH_FIRSTTIME_FLAG = "SEARCH_FIRSTTIME_FLAG";
    private HashMap hmUserSettings = new HashMap();
    public UserState() {
    try{
    System.out.println("setting the user settings in constructor");
    hmUserSettings.put(SEARCH_FIRSTTIME_FLAG,true);
    }catch(Exception e){
    e.printStackTrace();
    public boolean isSearchFirstTime(){
    Boolean firstTime = (Boolean)hmUserSettings.get(SEARCH_FIRSTTIME_FLAG);
    try{
    System.out.println("setting the search flag in isSearchFirstTime firstTime.booleanValue() :"+firstTime.booleanValue());
    if (firstTime == null){
    firstTime = true;
    }catch(Exception e){
    e.printStackTrace();
    return firstTime.booleanValue();
    public void setSearchFirstTime(boolean searchFlag){
    try{
    System.out.println("setting the search flag searchFlag :"+searchFlag);
    hmUserSettings.put(SEARCH_FIRSTTIME_FLAG, new Boolean(searchFlag));
    }catch(Exception e){
    e.printStackTrace();
    In the search results table one of the columns is a command link, clicking on which opens a pop up window where i have some more details being displayed.
    here is the code of my jspx page for the command link
    <af:commandLink text="#{row.OrderNumber}"
    binding="#{backing_TestDDPUD.commandLink1}"
    action="#{backing_TestDDPUD.commandLink1_action}"
    useWindow="true"
    partialSubmit="true"
    windowHeight="200"
    windowWidth="500"
    id="commandLink1"/>
    i have specified the action to be performed,in the backing bean of my page, here's the code
    public String commandLink1_action() {
    BindingContainer bindings = getBindings();
    OperationBinding operationBinding =
    bindings.getOperationBinding("setCurrentRowWithKey");
    Object result = operationBinding.execute();
    System.out.println("inside commandLink1_action");
    if (!operationBinding.getErrors().isEmpty()) {
    System.out.println("$$$$$$$$$$$$$$$ has errors $$$$$$$$$$$$4");
    return null;
    DCIteratorBinding ib = (DCIteratorBinding)bindings.get("OeOrderHeadersViewResultsIterator");
    Row row = ib.getCurrentRow();
    Number numHeaderId = (Number)row.getAttribute("HeaderId");
    FacesContext fc = FacesContext.getCurrentInstance();
    // 2. Create value binding for the #{data} EL expression
    ValueBinding vb = fc.getApplication().createValueBinding("#{data}");
    // 3. Evaluate the value binding, casting the result to BindingContext
    BindingContext bc = (BindingContext)vb.getValue(fc);
    // 4. Find the data control by name from the binding context
    DCDataControl dc = bc.findDataControl("TestDDAppModuleDataControl");
    // 5. Access the application module data provider
    ApplicationModule am = (ApplicationModule)dc.getDataProvider();
    ViewObject vo = am.findViewObject("OeOrderLinesAllView");
    vo.setNamedWhereClauseParam("theHeaderId",numHeaderId);
    System.out.println((vo.getNamedWhereClauseParam("theHeaderId")));
    return "dialog:orderDetails";
    my problem is that now when i enter a search criteria and execute the search, the search results are displayed properly in the table but when i click on the command link it does not open the pop up window, it does not even enter into the commandlink1_action() method..here's the log which i get after i click on the command link..can somebody please tell me what is going wrong or what exactly is happening
    07/03/28 17:19:20 [363] Reusing a cached session application module instance
    07/03/28 17:21:03 [364] **** refreshControl() for BindingContainer :TestDDPUDPageDef
    07/03/28 17:21:03 [365] *** Using bean introspection to lookup value :result
    07/03/28 17:21:03 [366] Invoke method Action:999
    07/03/28 17:21:03 [367] DCInvokeMethod:Invoking TestDDAppModuleDataControl.dataProvider.setOrgPolicyContext()
    07/03/28 17:21:03 inside the setOrgPolicyContext
    07/03/28 17:21:03 blnSetOrgPolicyContext finally :true
    07/03/28 17:21:03 [368] Resolving VO:TestDDAppModule.OeOrderHeadersView for iterator binding:OeOrderHeadersViewIterator
    07/03/28 17:21:03 [369] DCUtil, RETURNING: <null> for TestDDAppModule.OeOrderHeadersView
    07/03/28 17:21:03 [370] Resolving VO:OeOrderHeadersView for iterator binding:OeOrderHeadersViewResultsIterator
    07/03/28 17:21:03 [371] DCUtil, returning:oracle.adfinternal.view.faces.model.binding.FacesCtrlRangeBinding, for OeOrderHeadersView
    07/03/28 17:21:03 [372] *** DCDataControl.sync() called from :DCBindingContainer.refresh
    07/03/28 17:21:03 [373] valiateToken:Decompressed BC state:BCST:=0OeOrderHeadersViewIterator=-F-,OeOrderHeadersViewResultsIterator=-D-000100000004C30A031F,
    07/03/28 17:21:03 setting the user settings in constructor
    07/03/28 17:21:03 setting the search flag in isSearchFirstTime firstTime.booleanValue() :true
    07/03/28 17:21:03 setting the search flag in isSearchFirstTime firstTime.booleanValue() :true
    07/03/28 17:21:03 setting the search flag in isSearchFirstTime firstTime.booleanValue() :true
    07/03/28 17:21:03 [374] **** refreshControl() for BindingContainer :TestDDPUDPageDef
    07/03/28 17:21:03 [375] *** DCDataControl.sync() called from :DCBindingContainer.refresh
    07/03/28 17:21:03 setting the search flag in isSearchFirstTime firstTime.booleanValue() :true

    hi Frank,
    i have my table inside a panel page which is already sorrounded with h:form so i cannot sorround my table again with h:form or af:form. the command link in the page was working fine, till i included the code for the conditional display of the results table. If i look at the log printed after i click on the command link, i don't see any of the sop's being printed that i have given inside the commandlink1_action() method, i have a feeling that my action method is not being called at all and i am not able to figure out why the sop in the isSearchFirstTime() method is being printed 4 times.
    here is the entire code of my .jspx
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:afh="http://xmlns.oracle.com/adf/faces/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces">
    <jsp:output omit-xml-declaration="true" doctype-root-element="HTML"
    doctype-system="http://www.w3.org/TR/html4/loose.dtd"
    doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/>
    <jsp:directive.page contentType="text/html;charset=windows-1252"/>
    <f:view>
    <afh:html binding="#{backing_TestDDPUD.html1}" id="html1">
    <f:loadBundle basename="UIResources" var="res"/>
    <afh:head title="SalesOrderTemplate" binding="#{backing_TestDDPUD.head1}"
    id="head1">
    <meta http-equiv="Content-Type"
    content="text/html; charset=windows-1252"/>
    </afh:head>
    <afh:body binding="#{backing_TestDDPUD.body1}" id="body1">
    <af:messages binding="#{backing_TestDDPUD.messages1}" id="messages1"/>
    <h:form binding="#{backing_TestDDPUD.form1}" id="form1">
    <af:panelPage title="Change Me"
    binding="#{backing_TestDDPUD.panelPage1}"
    id="panelPage1">
    <f:facet name="menu1"/>
    <f:facet name="menuGlobal"/>
    <f:facet name="branding"/>
    <f:facet name="brandingApp"/>
    <f:facet name="appCopyright"/>
    <f:facet name="appPrivacy"/>
    <f:facet name="appAbout"/>
    <af:panelForm binding="#{backing_TestDDPUD.panelForm1}"
    id="panelForm1">
    <af:inputText value="#{bindings.OrderNumber.inputValue}"
    label="#{bindings.OrderNumber.label}"
    columns="#{bindings.OrderNumber.displayWidth}"
    binding="#{backing_TestDDPUD.inputText8}"
    id="inputText8"/>
    <af:inputText value="#{bindings.SoldToOrgId.inputValue}"
    label="#{bindings.SoldToOrgId.label}"
    columns="#{bindings.SoldToOrgId.displayWidth}"
    binding="#{backing_TestDDPUD.inputText39}"
    id="inputText39"/>
    <f:facet name="footer">
    <af:panelGroup layout="vertical"
    binding="#{backing_TestDDPUD.panelGroup1}"
    id="panelGroup1">
    <af:panelButtonBar binding="#{backing_TestDDPUD.panelButtonBar2}"
    id="panelButtonBar2">
    <af:commandButton actionListener="#{bindings.Execute.execute}"
    text="Search"
    disabled="#{!bindings.Execute.enabled}"
    binding="#{backing_TestDDPUD.commandButton2}"
    id="commandButton2">
    <af:setActionListener from="#{false}"
    to="#{UserState.searchFirstTime}"/>
    </af:commandButton>
    </af:panelButtonBar>
    </af:panelGroup>
    </f:facet>
    </af:panelForm>
    <af:table value="#{bindings.OeOrderHeadersView.collectionModel}"
    var="row"
    rows="#{bindings.OeOrderHeadersView.rangeSize}"
    first="#{bindings.OeOrderHeadersView.rangeStart}"
    emptyText="#{bindings.OeOrderHeadersView.viewable ? 'No rows yet.' : 'Access Denied.'}"
    binding="#{backing_TestDDPUD.table1}" id="table1"
    rendered="#{UserState.searchFirstTime == false}">
    <af:column sortProperty="OrderNumber" sortable="false"
    headerText="#{bindings.OeOrderHeadersView.labels.OrderNumber}"
    binding="#{backing_TestDDPUD.column1}" id="column1">
    <af:commandLink text="#{row.OrderNumber}"
    binding="#{backing_TestDDPUD.commandLink1}"
    action="#{backing_TestDDPUD.commandLink1_action}"
    useWindow="true" partialSubmit="true"
    windowHeight="200" windowWidth="500"
    id="commandLink1"/>
    </af:column>
    <af:column sortProperty="SoldToOrgId" sortable="false"
    headerText="#{bindings.OeOrderHeadersView.labels.SoldToOrgId}"
    binding="#{backing_TestDDPUD.column2}" id="column2">
    <af:inputText value="#{row.SoldToOrgId}"
    required="#{bindings.OeOrderHeadersView.attrDefs.SoldToOrgId.mandatory}"
    columns="#{bindings.OeOrderHeadersView.attrHints.SoldToOrgId.displayWidth}"
    binding="#{backing_TestDDPUD.inputText2}"
    id="inputText2">
    <f:convertNumber groupingUsed="false"
    pattern="#{bindings.OeOrderHeadersView.formats.SoldToOrgId}"/>
    </af:inputText>
    </af:column>
    <af:column sortProperty="OrderTypeId" sortable="false"
    headerText="#{bindings.OeOrderHeadersView.labels.OrderTypeId}"
    binding="#{backing_TestDDPUD.column3}" id="column3">
    <af:inputText value="#{row.OrderTypeId}"
    required="#{bindings.OeOrderHeadersView.attrDefs.OrderTypeId.mandatory}"
    columns="#{bindings.OeOrderHeadersView.attrHints.OrderTypeId.displayWidth}"
    binding="#{backing_TestDDPUD.inputText3}"
    id="inputText3">
    <f:convertNumber groupingUsed="false"
    pattern="#{bindings.OeOrderHeadersView.formats.OrderTypeId}"/>
    </af:inputText>
    </af:column>
    <af:column sortProperty="RequestDate" sortable="false"
    headerText="#{bindings.OeOrderHeadersView.labels.RequestDate}"
    binding="#{backing_TestDDPUD.column4}" id="column4">
    <af:inputText value="#{row.RequestDate}"
    required="#{bindings.OeOrderHeadersView.attrDefs.RequestDate.mandatory}"
    columns="#{bindings.OeOrderHeadersView.attrHints.RequestDate.displayWidth}"
    binding="#{backing_TestDDPUD.inputText5}"
    id="inputText5">
    <f:convertDateTime pattern="#{bindings.OeOrderHeadersView.formats.RequestDate}"/>
    </af:inputText>
    </af:column>
    <af:column sortProperty="OrderedDate" sortable="false"
    headerText="#{bindings.OeOrderHeadersView.labels.OrderedDate}"
    binding="#{backing_TestDDPUD.column5}" id="column5">
    <af:inputText value="#{row.OrderedDate}"
    required="#{bindings.OeOrderHeadersView.attrDefs.OrderedDate.mandatory}"
    columns="#{bindings.OeOrderHeadersView.attrHints.OrderedDate.displayWidth}"
    binding="#{backing_TestDDPUD.inputText6}"
    id="inputText6">
    <f:convertDateTime pattern="#{bindings.OeOrderHeadersView.formats.OrderedDate}"/>
    </af:inputText>
    </af:column>
    </af:table>
    </af:panelPage>
    </h:form>
    </afh:body>
    </afh:html>
    </f:view>
    <!--oracle-jdev-comment:auto-binding-backing-bean-name:backing_TestDDPUD-->
    </jsp:root>
    thanks,
    lavanya

  • Skip Validation on command link click

    Hi All ,   
    I am facing a situation as mentioned below
      <af:table value="#{bindings.IssueRepEachUser1.collectionModel}"
                          var="row" rows="#{bindings.IssueRepEachUser1.rangeSize}"
                          emptyText="#{bindings.IssueRepEachUser1.viewable ? 'No data to display.' : 'Access Denied.'}"
                          fetchSize="#{bindings.IssueRepEachUser1.rangeSize}"
                          partialTriggers="::cb2213 ::cb211234 ::cb5 "
                          rowBandingInterval="0" id="t2"    styleClass="IssueRepEachUser1"
                          autoHeightRows="25" columnStretching="last"
                        contentDelivery="whenAvailable" immediate="true"><!--   binding="#{pageFlowScope.ISAHelpRequestBean.issrepeachBind}"-->
                  <af:column sortProperty="RequestId"  sortable="false" headerClass="tableHeader1"   styleClass="tablecolumnRep"   width="100"
                             headerText="#{msg['HelpRequest.RequestId']}"
                             id="c6">
                  <af:commandLink text="#{row.RequestId}" id="cl2"   clientComponent="true"
                partialSubmit="true" styleClass="golinkact" immediate="true"
                actionListener="#{pageFlowScope.ISAHelpRequestBean.getcurrentIssues2}">
                <af:resetActionListener/>
                    </af:commandLink>
                  </af:column>
                <af:column>
                 </af:column>
      </af:table >
       <!-- dragged and dropped the command button into jspx page -->
       <af:commandButton actionListener="#{bindings.getResult.execute}"
                                                 text="getResult" visible="false"
                                                 disabled="#{!bindings.getResult.enabled}"
                                                 id="cb5"/>
        <af:panelFormLayout id="pfl2" ">
       <af:selectOneChoice value=""
                                label="usecase" unselectedLabel=""
                                required="true"
                                shortDesc="#{bindings.XxseUseCaseNameVO1.hints.tooltip}"
                                id="soc3"  autoSubmit="true"
                                valueChangeListener="#{pageFlowScope.Bean.UseCase}">
                  <af:selectOneChoice value=""
                                label="data module" unselectedLabel=""
                                required="true"
                                shortDesc="#{bindings.XxseUseCaseNameVO1.hints.tooltip}"
                                id="soc3"  autoSubmit="true"
                                valueChangeListener="#{pageFlowScope.Bean.DM}">
          <af:commandButton actionListener="#{pageFlowScope.Bean.Submit}"
                                text="#{msg['HelpRequest.submit']}"  visible="#{sessionScope.IsaID eq null }"
                                id="cb2213" styleClass="gocommand"/>
           <af:commandButton actionListener="#{pageFlowScope.Bean.Calcel}"
                                text="#{msg['HelpRequest.submit']}"
                                id="cb211234" />      
       </af:panelFormLayout>
       When I click on the command link in the <af:table> : it should redirect to a new page displaying its equivalent details .
       Issue facing currently :
    When clicked on Command link setting immediate = true  --> not redirecting to the new page and also at the same time page is getting validated the panelform layout for required="true"
    What is going wrong with the above code 
    Any help on this is appreciated.
    Thanks

    "When I click on the command link in the <af:table> : it should redirect to a new page displaying its equivalent details ."
    Do you have page navigation set in the task flow or you are trying something programmatically ?

  • Focus should remain at the command link

    I have Command links and I want to do everythibg(moving from one link to other and want to perform operation) using "tab" key instead of selecting it through mouse.
    when ever user selects the command link,one popup will be displayed
    ,under the popup,a dialog window of type "ok Cancel" was taken,in the dialog window one input text was taken.
    The Problem is without entering the text in the input text and clicking on ok button using tab,remains the focus of the cursor on the command link and
    also while clicking on the cancel button the cursor position remains at the command link only but
    when ever user enters the text in the input text and
    selects the ok button using tab,the cursor focus is moving to top of the page,not remains at the command link.This problem is not taking place while
    using mouse.
    Can anyone please tell me how to the remain the focus at the command link.
    I am using jdev 11.1.2.3

    Okay, that makes sense. However, I modified my code to actually move the lead, and it still didn't work. Curious, I added a pop up window to the code, and I found out that it doesn't get called. The tab key still doesn't do anything. I miss KeyListeners already :(
    Can you spot anything wrong with how I'm doing this?
    InputMap im = _table.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT);
    KeyStroke tabKey = KeyStroke.getKeyStroke(KeyEvent.VK_TAB, 0);
    Action tabAction = new AbstractAction(){
                   public void actionPerformed(ActionEvent e){
                        int leadColumn = _table.getColumnModel().getSelectionModel().getLeadSelectionIndex();
                        leadColumn ++;
                        if(leadColumn > 4){
                             leadColumn = 4;;
                        _table.getColumnModel().getSelectionModel().setLeadSelectionIndex(leadColumn);
                        JOptionPane.showMessageDialog(null, "L: " + leadColumn);  //this doesn't happen either
    im.put(tabKey, tabAction);

  • Command link navigation problems in IE but not firefox

    Hi,
    I've developed an application using JSF and SDO. I have several pages where the user is displayed data from the database and pages where the user can add data , edit data and delete data.
    Each page has a jsp fragment contained in the page. This is based on faces and is the naviation menu. Each link in the menu is a command link and has navigation rules which are global. Now the problem I get is that when I sometimes nvaigate between pages using the navigation or command links in a page the page just refreshes and displays the same page again. But if I keep trying to click the link again then after a few attempts the link goes to the page i've requested. I've added system outs on the actions for the links to see if they are getting called when the page just refreshes. The answer is no as the system out line is never printed unless the action of the link is actually executed.
    Now the problem is that this only occurs in ie and NOT in firefox. I'm really confused now!!
    Here is some techinical details to help narrow down my situation:
    I'm using wsad 5.1.2 which has faces 1.0, ie 6, firefox 1.0.3.
    Any help would be appreciated!!

    doh! i've solved this problem now....well for now its working perfectly but i'll have to do a bit more testing.
    For anyone that has this problem here was my solution...
    - In IE i went to tools > general tab > settings
    from this menu choose check for newer versions of stored pages to automatically. I previously had every visit to the page.
    This seems to have fixed my problem and the reason why it worked in firefox was because the settings for caching were different.

  • Command Link usage in JSF datatable

    Hi,
    Following is my requirement. Can any one help me in resolving the issue.
    I hava a JSF page which displays a datatable. One of the columns in the datatable displays a command link. When the user clicks the link in a particular row. Details correpsonding to the particular row have to be displayed in another page. I am using action attribute to perform the navigation from first page to next. Inside action method in the backing, is there any other means to get the row data from the datatable for which the link is clicked.
    Please help.

    You may find this article useful: http://balusc.blogspot.com/2006/06/using-datatables.html

  • Command Link Issue

    Hi,
    I am using Jdevloper 11g.
    I am facing issue with the following code.
    In brief - I am taking Value from session and want to display those values as Command link on jspx, in af:forEach.
    When I bind that Command Link with Managed Bean that time it displays Last Element only (Code given below).
    When I removed Binding ( binding="#{ManagedBean.schemeName}") at that time it displays all the values on page as Command Link.
    Binding is required for my app to find Link text. Is there any alternative?
      <af:forEach var="item"    items="#{sessionScope.SchemeList}">
    <af:commandLink text="#{item.schemeName}"
                                                    id="cb14" immediate="true"  partialSubmit="true"
                                                    binding="#{ManagedBean.schemeName}"
                                                     inlineStyle="#{item.eligibilStatus eq 'Y' ? 'color:black' : 'color:Red'}"
                                                  actionListener="#{ManagedBean.schemeChangeListener}"/>
    </af:forEach>Thank You,
    Regards,
    Dilkhush

    Hello,
    Thank you,
    The solution you had given that is working.
    Now my issue is I have created Programmatically VO.
    I refereed following link to create Programmatically VO
    http://adfpractice-fedor.blogspot.com/2011/01/adf-bc-programmatically-populated-vo.html
    but My issue is how to set VOs Bind Variable Value.
    Because have to send that value from the bean.
    In above link they took two inputText to set Bind Variable value but in my condition I cannot take InputText.
    I am setting that value in my Managed bean as shown below.
    public void schemeChangeListener(ActionEvent actionEvent) {
          OperationBinding opBinding =
              CommonUtil.getOperationBinding("#{bindings}",
                                             "initParamValues");
          opBinding.getParamsMap().put("custID", customerID.getValue().toString());
          opBinding.getParamsMap().put("accountType", (CommonUtil.evaluateEL("#{bindings.ADAccountType.attributeValue}")).toString());
          opBinding.getParamsMap().put("productID", (CommonUtil.evaluateEL("#{bindings.DMAProductId.attributeValue}")).toString());
          opBinding.getParamsMap().put("entityID", homeEntityID);
          opBinding.getParamsMap().put("schemeCode", linkText);
          opBinding.execute();
    }and I have taken that VO as Table on jspx page.
    Issue is before going to bean method it goes to View object and show NullPointerException because the values never get set.
    The above code is called when the commandLink is clicked code given below.
    <af:commandLink text="#{item.schemeName}"
                                                  id="sName" immediate="true"  partialSubmit="true"
                                                  inlineStyle="#{item.eligibilStatus eq 'Y' ? 'color:black' : 'color:Red'}"
                                                  actionListener="#{MakBean.schemeChangeListener}"/>is there any solution how can I set the Bind Variable value from bean and get Expected result in table.
    Thank you
    Regards,
    Dilkhush

  • Command link at DVT Horizantal Bar Graph

    Hi All,
    I want to display command link in the place of y-axis in Horizantal Bar Graph.
    I am using jdev 11.1.1.6 version
    Please provide me suitable answer with proper sample code.
    Thanks,
    Sai

    Hi,
    the proper answewr is that you cannot have a command link in a graph. However, graphs respond to click events and you can define a click listener that then allows you to access the clicked on value.
    http://www.jobinesh.com/2010/11/example-of-clicklistener-implementation.html
    Frank

  • Command link / button action is not taking place if i use it in iterator.

    Hi,
    I am new to ADF, i am facing 1 issue while implementing ADF mobile browser application.
    Issue: command link / button action is not taking place if i use it in iterator. its just refreshing the page it self and displaying as no records.
    Scenario is i am populating the search results in results page from search page using iterator, i want to get the complete details in different page (results page -> details page) .
    I have tried in different ways.like
    case1:
    <tr:panelGroupLayout id="pgl2" layout="vertical" styleClass="af_m_panelBase">
    <tr:panelHeader text="#{classviewBundle.SEARCH_RESULTS}" id="ph1"/>
    <tr:iterator id="i1" value="#{bindings.SubjectVO1.collectionModel}" var="subject"
    varStatus="subIndx" rows="100">
    <tr:panelBox text="#{subject.Subject} #{subject.CatalogNbr} - #{subject.CourseTitleLong}"
    styleClass="af_m_listingPrimaryDetails" id="pb1">
    <f:facet name="toolbar"/>
    <tr:table var="ssrClass" rowBandingInterval="1" id="t1" value="#{subject.children}"
    varStatus="clsIndx" rowSelection="none"
    binding="#{SessionBean.subjectTable}" verticalGridVisible="true"
    emptyText="No Records" width="100%">
    <tr:column id="c9" sortable="false" styleClass="width:100%">
    <*tr:commandLink text="Section: #{ssrClass.ClassSection}-#{ssrClass.SsrComponentLovDescr} (#{ssrClass.ClassNbr})"*
    id="commandLink2" styleClass="af_m_listingLink"
    *action="#{pageFlowScope.BackingBean.searchaction}"></tr:commandLink>*
    //remaining code
    in this case commandlink action is not able to invoke serachaction() method
    case 2:
    <tr:commandLink text="Section: #{ssrClass.ClassSection}-#{ssrClass.SsrComponentLovDescr} (#{ssrClass.ClassNbr})"
    id="commandLink2" styleClass="af_m_listingLink"
    action="classdetails}"></tr:commandLink>
    in this case its not able to navigate to classdetails page.
    I gave correct navigation cases and rules in taskflow,but its working fine when the command link is out of iterator only.
    i tried with actionlistener too.. but no use.. please help me out of this problem .
    *Update to issue:*
    The actual issue is when i use command link/button in an table/iterator whose parent tag is another iterator then the action is not taking place.
    the structer of my code is
    < iterator1>
    #command link action1
    < iterator2>
    #command link action2
    </ iterator2>
    < /iterator1>
    #command link action1 is working but "#command link action2" is not...
    Thanks
    Shyam
    Edited by: shyam on Dec 26, 2011 5:40 PM

    Hi,
    To solve my problem I used a af:foreach instead.
    <af:forEach items="#{viewScope.DataBySubjectServiceBean.toArray}" var="text">
    <af:commandLink text="#{text.IndTextEn}" action="indicator-selected" id="cl1">
    <af:setActionListener from="#{text.IndCode}" to="#{pageFlowScope.IndicatorCodeParam}" />
    </af:commandLink>
    </af:forEach>
    By the way you need to convert the iterator to an Array using a ManagedBean.
    public Object[] toArray() {
    CollectionModel cm = (CollectionModel) getEL("#{bindings.TView1.collectionModel}");
    indicators = new Object[cm.getRowCount()];
    for(int i=0;i<cm.getRowCount();i++){
    indicators[i] = cm.getRowData(i);
    return indicators;
    public static Object getEL(String expr) {
    FacesContext fc = FacesContext.getCurrentInstance();
    return fc.getApplication().evaluateExpressionGet(fc,expr,Object.class);
    Hope that helps-
    Edited by: JuJuZ on Jan 3, 2012 12:23 AM
    Add getEL Method

  • Command link not working  on create

    hello guys.
    I have a main form which also serves as a search form. initialy this form displays some data. in one of my menu I have a command link that executes create and takes me to the create form. my problem is that when I click on the command link I was taken to my create form but my fields are populated w/ the data from my search form. can anyone help me with this one.
    thanks
    alvin.

    Hi,
    I suggest to use the command link for navigation and then do the following on the create page
    - add the CreateInsert operation to the pageDef file
    - create an invokeAction element in the executables section and point it to the createIbsert binding created before
    Each time you navigate to the page it now will create a new row
    Frank

  • Command link wrap

    Hi,
    i want to display to command links and 1 button with right align.
    for this i use panelgrouplayout with halign="end" ,it is getting to end,but the problem is second command link has two words so its getting wrapped ,i could nt make wrap flase.
    can any one help me in this.
    Praveen

    For the Panel Group Layout, set the inlineStyle property to white-space:nowrap
    Sample:
    <af:panelGroupLayout id="pgl1" layout="horizontal" styleClass="AFStretchWidth" halign="end"
                                         inlineStyle="white-space:nowrap">
                        <af:commandLink text="commandLink 1" id="cl1"/>
                        <af:commandLink text="commandLink 2" id="cl2"/>
                        <af:commandLink text="commandLink 3" id="cl3"/>
                        <f:facet name="separator">
                            <af:spacer width="25" id="s1"/>
                        </f:facet>
                    </af:panelGroupLayout>Thanks,
    Navaneeth

  • Confusion in ADF command link settings - *URGENT* pls help

    Hi All,
    I have a table named 'Action' in which, the first column is ActionId. I have turned the first column into a command link. On clicking this link, it will show a popup in which i can see the current action details.
    My code is as below.
    <af:table value="#{bindings.OePdActionView1.collectionModel}"
    var="row"
    rows="#{bindings.OePdActionView1.rangeSize}"
    emptyText="#{bindings.OePdActionView1.viewable ? 'No data to display.' : 'Access Denied.'}"
    fetchSize="#{bindings.OePdActionView1.rangeSize}"
    rowBandingInterval="0"
    filterModel="#{bindings.OePdActionView1Query.queryDescriptor}"
    queryListener="#{bindings.OePdActionView1Query.processQuery}"
    filterVisible="true" varStatus="vs"
    rowSelection="multiple" id="ActionTable"
    inlineStyle="color:Blue;" width="1000"
    partialTriggers="::RulesTable ::SaveButton ::deleteActionButton ::cb11 ::cb3 ::cb2"
    selectionListener="#{bindings.OePdActionView1.collectionModel.makeCurrent}">
    <af:column sortProperty="Actionid" filterable="true"
    sortable="true"
    headerText="#{bindings.OePdActionView1.hints.Actionid.label}"
    id="c16" width="105"
    inlineStyle="background-color:rgb(255,185,185);">
    <!-- required="#{bindings.OePdActionView1.hints.Actionid.mandatory}" -->
    *<af:commandLink text="#{row.bindings.Actionid.inputValue}" id="cl3">*
    <af:popup id="p3">
    <af:outputText value="Selected Action Details"
    id="ot26"
    inlineStyle="font-weight:bold; color:Blue;"/>
    <af:panelLabelAndMessage label="#{bindings.Actionid.hints.label}"
    id="plam18">
    <af:outputText value="#{bindings.Actionid.inputValue}"
    id="ot25"/>
    </af:panelLabelAndMessage>
    <af:panelLabelAndMessage label="#{bindings.Parentruleid.hints.label}"
    id="plam19">
    <af:outputText value="#{bindings.Parentruleid.inputValue}"
    id="ot15"/>
    </af:panelLabelAndMessage>
    <af:panelLabelAndMessage label="#{bindings.Actiontypecode1.hints.label}"
    id="plam14">
    <af:outputText value="#{bindings.Actiontypecode1.inputValue}"
    id="ot22"/>
    </af:panelLabelAndMessage>
    <af:panelLabelAndMessage label="#{bindings.Targetentitytype.hints.label}"
    id="plam17">
    <af:outputText value="#{bindings.Targetentitytype.inputValue}"
    id="ot17"/>
    </af:panelLabelAndMessage>
    <af:panelLabelAndMessage label="#{bindings.Targetentitysubtype.hints.label}"
    id="plam11">
    <af:outputText value="#{bindings.Targetentitysubtype.inputValue}"
    id="ot16"/>
    </af:panelLabelAndMessage>
    <af:panelLabelAndMessage label="#{bindings.Legacytargetid.hints.label}"
    id="plam20">
    <af:outputText value="#{bindings.Legacytargetid.inputValue}"
    id="ot18"/>
    </af:panelLabelAndMessage>
    <af:panelLabelAndMessage label="#{bindings.Legacytargetsubid.hints.label}"
    id="plam13">
    <af:outputText value="#{bindings.Legacytargetsubid.inputValue}"
    id="ot21"/>
    </af:panelLabelAndMessage>
    <af:panelLabelAndMessage label="#{bindings.Legacyparentid.hints.label}"
    id="plam12">
    <af:outputText value="#{bindings.Legacyparentid.inputValue}"
    id="ot23"/>
    </af:panelLabelAndMessage>
    <af:panelLabelAndMessage label="#{bindings.Versionnumber.hints.label}"
    id="plam16">
    <af:outputText value="#{bindings.Versionnumber.inputValue}"
    id="ot19">
    <af:convertNumber groupingUsed="false"
    pattern="#{bindings.Versionnumber.format}"/>
    </af:outputText>
    </af:panelLabelAndMessage>
    <af:panelLabelAndMessage label="#{bindings.Deletedflag.hints.label}"
    id="plam10">
    <af:outputText value="#{bindings.Deletedflag.inputValue}"
    id="ot20"/>
    </af:panelLabelAndMessage>
    <af:panelLabelAndMessage label="#{bindings.Seq.hints.label}"
    id="plam15">
    <af:outputText value="#{bindings.Seq.inputValue}"
    id="ot24"/>
    </af:panelLabelAndMessage>
    </af:popup>
    *<af:showPopupBehavior popupId="p3" triggerType="action"/>*
    </af:commandLink>
    </af:column>
    Now the problem is , I have a 'Create new Action' button , click on which , I can insert a new row to the 'Action' table. Since i have converted this 'ActionId' column into a command link, i couldnt enter any value in the newly created row. Whereas i can give values for the other columns and save the changes.
    Please tell me some idea, so that i could use the 'Actionid' field as command link and also support editing operations.
    Thanks in advance,
    Sabarisri. N

    Can i have one more issue..
    Its like..
    In the Actions Table, i have set my 'Actionid' column as mandatory.
    So when i click on 'create new row' button , it creates a new row. Whereas suppose if i wish to delete that row without entering any value, then its asking for some value to be entered in the mandatory field.
    So i wish to change the 'mandatory' property of that column at runtime, when the 'delete' button is clicked. So that viewObject.removeCurrentRow() will be done. Then again.. in the next statement, i wil reset the mandatory to true. pls see my code below.
    DCControlBinding cb =
    (DCControlBinding)getBindings().get("OePdActionView1");
    ViewObject vo = cb.getViewObject();
    // vo.<someSetHintForMandatory>("false");
    vo.removeCurrentRow();
    // vo.<someSetHintForMandatory>("false");
    This is my idea to solve the pbm. Please help me if there is some other solution. Or else, kindly tell me the way to change the 'mandatory' property at runtime.
    Thanks,
    Sabarisri. N

  • ADF command link problem

    Hi All,
    I am using Jdeveloper 11g. I have a master-detail relationship tables Order and OrderItem. I have an Order edit page which has editable Order information and a ADF read-only table which contains a list of items associated with the current order. I have a ADF command link on the column LineItemId in the table. When I click the link, it will take me to the item edit page. The problem is, whenever I select any item in the table, I always got the first item loaded in the item edit page. Does anyone has any ideas what I did wrong?
    Here is the portion of the code related to the command link,
    <af:column sortProperty="LineItemId" sortable="false"
    headerText="#{bindings.OrderItemsView2.hints.LineItemId.label}"
    id="c4">
    <af:commandLink actionListener="#{bindings.setCurrentRowWithKeyValue.execute}"
    text="#{row.LineItemId}"
    disabled="#{!bindings.setCurrentRowWithKeyValue.enabled}"
    id="cl1" partialTriggers="::t1"
    action="goOrderItemDetail"/>
    </af:column>
    Thanks in advance,
    John
    Edited by: john wang on Aug 20, 2009 7:31 AM

    Hi Gurus,
    On a seeded page say Page1 one link is availabe which is specific to one Learning Path.
    When i click on that Learning Path's link it is redirecting me to a page say Page2 where it gives the list of different Learning Paths (including Learning Path of Page1) with a link for each Learning Path.
    If i click on that Learning Path's link it takes me to a page say Page3 where it gives the details of that perticular Learning Path.
    The requirement is , If I click on an Learning Path's link on Page1 ,it should redirect me directly to Page3 ( Skipping Page2 ).
    How can it be achieved?
    Please help!!!
    Thanks,
    Srinivas
    Edited by: ChandaS on Aug 20, 2009 8:02 AM
    Edited by: ChandaS on Aug 20, 2009 8:14 AM

  • Command links are not rendering properly in panel collection toolbar facet

    Hi
    I am using jdev 11.1.2.3.0
    I added toolbar component to the toolbar Facet of panel collection component .
    Under the tool bar I added two command link components with name create and delete,
    the problem is at run time the buttons are not rendering properly,they are hiding,instead of links
    this symbol(>>) is displaying.
    On clicking the symbol,I am able to see the links,I used <af:spacer> after the links but not worked.
    what I have to do to render the links properly in the panel collection toolbar facet

    Hi Timo
    This is the code and I am using 11.1.2.3.0
         <f:facet name="toolbar">
                    <af:toolbar id="t1">
                            <af:commandImageLink icon="#{resource['images:create.png']}" text="Create" id="cbInsert">
                            <af:showPopupBehavior popupId="p1"/>
                        </af:commandImageLink>
              </af:toolbar>

Maybe you are looking for