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

Similar Messages

  • Pagination issue with Command Link

    Hi
    I have a HtmlDatatable in which I am I am using pagination. Pagination is working fine the issue is one colum has been used with commnadlink.
    Whne I use the pagination(Say when I click next or last) i am not getting the hyper link in that column.
    Any idea?
    Thanks in advance
    Best Regards
    Sathish

    Hi,
    hard to say. Looks as if the browser blocks the command link when the note window launches as modal dialogs would do.  There are two reasons for this IMO
    1. The hover code also executes when you want to click the link, which means that you don#t get to executing your action. Work around is to detect whether the note window is open and if don't try and re-launch the note window
    2. If you use showPopupBehavior to launch the note window, then this actually kills all action listener methods (which then may be a second reason). So my suggestion is to try and launch the hover popup from JavaScript using an af:clientListener
       Sample code: Sameh Nassar: JavaScript With ADF Faces Samples
        the client listener should listen for the mouse over event.
    If none of this help and you have access to customer support, I suggest to create a test case and file a service request. My current guess though is that the reason for the behavior is in in your code (browsers tend to work differently in the way they execute JS events too).
    Frank

  • Issue with command link in chrome/mozilla

    Hi All,
    I have designed a simple jspx page having a command link component.
    This command link component is tied up with two sets of operations associated with it -
    > Displays a note window using hover action.
    > Launched a popup on clicking the link components.
    While performing some test runs on different browsers, I noticed different behavioural pattern -
    > Internet Explorer - Placing the cursor on link displays the note window and the command link remains enabled for the user to click on it and launch the popup.
    > Mozilla/Chrome - Placing the cursor on the link displays the note window, however, on the clicking the link, the popup doesn't launch. The user has to move and place the cursor again on the link to perform the desired event.
    Request your guidance on troubleshooting the problem.
    I am using JDeveloper version 11.1.1.7.
    Best Regards,
    Ankit Gupta

    Hi,
    hard to say. Looks as if the browser blocks the command link when the note window launches as modal dialogs would do.  There are two reasons for this IMO
    1. The hover code also executes when you want to click the link, which means that you don#t get to executing your action. Work around is to detect whether the note window is open and if don't try and re-launch the note window
    2. If you use showPopupBehavior to launch the note window, then this actually kills all action listener methods (which then may be a second reason). So my suggestion is to try and launch the hover popup from JavaScript using an af:clientListener
       Sample code: Sameh Nassar: JavaScript With ADF Faces Samples
        the client listener should listen for the mouse over event.
    If none of this help and you have access to customer support, I suggest to create a test case and file a service request. My current guess though is that the reason for the behavior is in in your code (browsers tend to work differently in the way they execute JS events too).
    Frank

  • Command Link problem-Urgent

    Hi
    I am having Tabbedpane, under that I am including three jsp files...
    which contains a dataTable , having one column data as a commandLink which inturn opens a Edit page.
    It is working with out tappedpane, When I click Command link for Edit
    in TabbedPane, I am getting java script error saying "Error on page".
    When I submit the action from commandLink from an individulal page .
    Its working fine.
    anyone help me in resolving this issue...?

    Update your Ie, or maybe you have some option that the others don't have.

  • 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 in ADF table is not working/ PPR event not getting fired

    Hi All,
    I am having ADF Table, in that one column is with command link if click on command link, it is not navigating to corresponding page or method of a bean. If i give same command link out of the table it working fine, this issue i am facing is in IE9.
    if i use IE in compatibility mode the links works fine, even in IE8 version also.
    Browser: IE 9
    Jdev version: 11.1.1.5.0
    I tried all possible things, but nothing workout for me.
    showPopupBehavior not working in IE9 for af:table buttons (jdev11.1.1.5.0)
    Partial page rendering not working in ie9
    Command Link in ADF table is not working
    Thnks

    Hi,
    please file a bug if you have a customer support contract and provide a testcase
    Frank

  • 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.

  • 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 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.

  • 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 Tree Command Link + Content Menu

    Hi,
    I am trying to build a tree, in which the nodes should have a command link and a context menu enabled. Using JDeveloper 11.1.1.6.0, however the context menu is not showing up, if the command link is enable for a particular node. If the command link option is not set for a node, then the menu option does shows up. Below is what my code looks like. Has anyone faced a similar issue/know of a solution?
    My Code is something like -
    *<f:facet name="contextMenu">*
    <af:popup id="p1" contentDelivery="lazyUncached">
    <af:menu text="Location Menu" id="m31"
    visible="#{pageFlowScope.TreeData.showLocationMenu}" contentDelivery="immediate">
    <af:commandMenuItem text="Add new Department"
    id="cmi2" partialSubmit="true" immediate="true"
    actionListener="#{pageFlowScope.TreeData.createDepartment}">
    <af:setPropertyListener from="#{node.viewType}"
    to="#{pageFlowScope.formView}"
    type="action"/>
    <f:attribute name="node" value="#{node}"/>
    </af:commandMenuItem>
    </af:menu>
    </facet>     
    <f:facet name="nodeStamp">
    *<af:commandLink text="#{node.key} #{node.text}"*
    *action="#{pageFlowScope.DynamicRegionBean.getDep}" id="cl1" partialSubmit="true" immediate="true"/>*
    *</f:facet>*
    Thanks
    Sachin

    Hi Timo,
    Yeah... adding an output text, shows the context menu on the text, however I was looking for something like one 'text' rendered and it doing the option of both.
    Something like what we can do for any hyper link, if click on it, it opens that link or else if I right click on the link, it gives me options like - Open in new Tab/Window etc.
    Any suggestions??
    Thanks
    Sachin

  • Generating dynamic command links in data table

    Hi,
    I have a requirement to generate dynamic number of columns in a datatable. Also these columns should contain a command link.
    I have written following piece of code to do so...
    public UIData getDataTableBinding()
         UICommand comm = null;
         UIColumn col;
         UIOutput out = null;
         Application app = app = FacesContext.getCurrentInstance().getApplication();
    // Suppose I want to generate 7 columns
         for(int j = 0; j < 7; ++j) {
         out = new UIOutput();
         col = new UIColumn();
         comm = new UICommand();
         ValueBinding vb = app.createValueBinding("#{" + j + "}");
         out.setValueBinding("value", vb);
         out.setRendererType("javax.faces.Text");
         comm.setRendererType("javax.faces.Link");
    comm.getChildren().add(out);
         MethodBinding mbButton = app.createMethodBinding("#{pc_File1.doLink1Action}",
    null);
         comm.setAction(mbButton);
         col.getChildren().add(comm);
         dataTableTemp.getChildren().add(col);
         return dataTableTemp;
    I have bound the "binding" attribute of the data table to getDataTableBinding()
    method.
    If I remove all the references to UICommand i.e comm variable, table is displayed properly, but if
    I try to include a command link component as mentioned above I get "Assertion failed error"
    SRVE0068E: Could not invoke the service() method on servlet Faces Servlet. Exception thrown :
    javax.servlet.ServletException: javax.faces.el.EvaluationException: Error getting property
    'dataTableBinding' from bean of type pagecode.File1: javax.faces.FacesException: Assertion Failed
         at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:638)
         at com.ibm._jsp._File1._jspService(_File1.java:92)
         at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:88)
    Any kind of help on this issue would be appreciated,
    Thanks in advance,
    Raina

    Hi,
    I solved my problem just by replacing UIOutput component with HtmlOutputText component and then making it as a child component of UICommand component.
    Now I am facing a new problem. Whenever I try to refresh the page I get following exception
    "SRVE0026E: [Servlet Error]-[Faces Servlet]: java.lang.IllegalStateException: Duplicate component ID 'form1:table1:cmd0' found in view."
    I am explicitly setting the component id of the UICommand component using the setViewId() method.
    This problem is observed only when I refresh the page. In case I navigate to another page and then again come back to this current page, then I don't get this exception.
    Your help would be appreciated,
    Raina

  • 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 ?

  • 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 in adf pivot table

    Hi,
    I Created one View Object (WrkVOR) Based on below query
    Select Desc1,Desc2 ,Date,Sum(Amount) From populate_wrk Group by Desc1,Desc2 ,Date
    Based on View Object we created pivot table
    Rows - Desc1 ,Desc2
    Column - Date
    Amount will come under each date (Like Matrix report)
    Up to It is working fine
    i added a command link on data(Amount) when i click the command link i am getting below error
    DVT-2015 Slice 1 Exceeds boundary -3
    please help....
    Thanks
    shk

    Hi,
    the real problem of the original poster seems to be <af:commandLink text="#{row.GlobalDealId}" id="cl1" action="createMDM" immediate="true" partialSubmit="true"> having immediate set to true in which case the request goes from restore view to render response. You usually use immediate=true on a command item to cancel an action (bypassing all the other JSF lifecycle steps).
    Peter551059,
    you don't give us much information about your case. So if the problem is IE9 and you verified IE9 is supported for the version of JDeveloper you use, then - in case you have a support contract - my best advise is to file a service request and have support looking at it just in case you hit a defect that should be filed as a bug
    Frank

Maybe you are looking for

  • Drawing Graph in Excel

    I have a template for excel to follow, and I am supposed to draw a graph onto the template using Labview Report Generation Toolkit VIs. However, it keeps returning error  - 2146827284. What am I to check? This error is no longer there whenever i remo

  • Can I use multiple Apple store gift cards per transaction or is it has to be one gift card per transaction?

    Can I use multiple Apple store gift cards (£25 each) per transaction or is it has to be only one gift card per transaction?? Does anyone know thanks

  • My ipod will not sync to itunes

    I am trying to connect my Ipod touch to my Macbook, but neither my computer nor my ipod recognize each other. Also, my charger won't charge when I plug it into the wall. I've tried several chargers and cords, but nothing is working. Is it the charger

  • Playbook suddenly stopped working

    I have had my playbook since Christmas and yesterday I registered for slacker radio and when I plugged in my headphones, the thing just shut down.  I had about 50% battery left.  I have tried to reboot by pressing all the buttons and holding them for

  • TS3276 Recreated mail is in the way to receive e-mails.

    A reconstructed e-mail is in the way for recieving new mails, how can I get rid of that e-mail?