Custom Selection Listener not getting fired

I am using JDeveloper 11.1.1.4 and have been trying to follow the advice given in the ADF Code Corner example 68. The only difference in my application/project, is that I am trying to develop the master table on a page fragment with a task flow attached for the JSFF containing the detail table. My master table on the primary JSFF has a custom selection listener on it. When testing the deployed package--putting the primary task flow on a JSPX page, the tables are showing, but when I select a different row on the master table, the new row is highlighted but nothing happens to execute the custom listener. I am sure of this because I've added a System.out.println as the very first line in it and it doesn't put the message out. I am getting no errors on the weblogic logs. I looked on the client side's html output and can't see anything that would trigger that a change occurred to send back to the server. Any ideas (outside of upgrading to another version of Jdeveloper) would be greatly appreciated. I am not sure if providing any of my code would be of any help in this issue.

Thanks to all who responded. I have multiple rows showing in my master table and when I select a different row, I get no event that executes my method. I tried adding the "binding.itterator." to the EL for the SelectionListener and that didn't work either. Besides both the examples in the ADF Code Corner 23 and 68 show it just as "class.method" as I have it. A small snippet from my table is below:
          <af:table value="#{bindings.HOT_trans_sumVO1.collectionModel}"
                    var="row" rows="#{bindings.HOT_trans_sumVO1.rangeSize}"
                    emptyText="#{bindings.HOT_trans_sumVO1.viewable ? 'No data to display.' : 'Access Denied.'}"
                    fetchSize="#{bindings.HOT_trans_sumVO1.rangeSize}"
                    rowBandingInterval="0"
                    selectedRowKeys="#{bindings.HOT_trans_sumVO1.collectionModel.selectedRow}"
                    *selectionListener="#{HotTransSummBean.onTxnSummTblRowSelect}"*                   
                    rowSelection="single" id="txnsummtbl"
                    columnStretching="last" width="100%" autoHeightRows="5"
                    contentDelivery="whenAvailable" immediate="true"
                    clientComponent="true" first="0">Also note that I have this backing bean defined on the task flow as a requestScope as it is in the example 68--example 23 does not state a scope level. Again, my method starts out with an output statement that never gets executed:
    public void onTxnSummTblRowSelect(SelectionEvent selectionEvent) {
      System.out.println("Entered onTxnSummTblRowSelect method.");

Similar Messages

  • Getting NullPointerException in ADF form using Custom Selection Listener

    Hi,
    I am getting NullPointerException from getRowKey() in GenericTableSelectionHandler.java while pressing "Page Down" key or continuous pressing of "Down Arrow" key in Read Only ADF form (Query, Sort Enabled) using Custom Selection Listener.
    I have used the custom selection listener as mentioned at http://www.oracle.com/technetwork/developer-tools/adf/learnmore/23-generic-table-selection-listener-169162.pdf
    The requirement to use custom Selection Listener to populate some fields from the selected row.
    J Developer Version: 11.1.1.4.0
    The error is as below
    +<LifecycleImpl> <_handleException> ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase INVOKE_APPLICATION 5+
    javax.el.ELException: java.lang.NullPointerException
    +     at com.sun.el.parser.AstValue.invoke(Unknown Source)+
    +     at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)+
    +     at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodExpression(UIXComponentBase.java:1300)+
    +     at org.apache.myfaces.trinidad.component.UIXTable.broadcast(UIXTable.java:268)+
    +     at oracle.adf.view.rich.component.UIXTable.broadcast(UIXTable.java:144)+
    +     at oracle.adf.view.rich.component.rich.data.RichTable.broadcast(RichTable.java:402)+
    +     at org.apache.myfaces.trinidad.component.UIXCollection.broadcast(UIXCollection.java:148)+
    +     at org.apache.myfaces.trinidad.component.UIXTable.broadcast(UIXTable.java:271)+
    +     at oracle.adf.view.rich.component.UIXTable.broadcast(UIXTable.java:144)+
    +     at oracle.adf.view.rich.component.rich.data.RichTable.broadcast(RichTable.java:402)+
    +     at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92)+
    +     at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)+
    +     at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)+
    +     at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:102)+
    +     at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92)+
    +     at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)+
    +     at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)+
    +     at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:96)+
    +     at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:879)+
    +     at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:312)+
    +     at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:185)+
    +     at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)+
    +     at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)+
    +     at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)+
    +     at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)+
    +     at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)+
    +     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)+
    +     at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)+
    +     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)+
    +     at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)+
    +     at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)+
    +     at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)+
    +     at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)+
    +     at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)+
    +     at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)+
    +     at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)+
    +     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)+
    +     at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:175)+
    +     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)+
    +     at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)+
    +     at java.security.AccessController.doPrivileged(Native Method)+
    +     at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)+
    +     at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)+
    +     at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)+
    +     at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)+
    +     at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)+
    +     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)+
    +     at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)+
    +     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)+
    +     at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)+
    +     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)+
    +     at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)+
    +     at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)+
    +     at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)+
    +     at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)+
    +     at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)+
    +     at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)+
    +     at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)+
    +     at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)+
    +     at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)+
    Caused by: java.lang.NullPointerException
    +     at ibm.view.GenericTableSelectionHandler.makeCurrent(GenericTableSelectionHandler.java:48)+
    +     at ibm.view.backing.Testpage.XxSelectListener(Testpage.java:207)+
    +     at sun.reflect.GeneratedMethodAccessor355.invoke(Unknown Source)+
    +     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)+
    +     at java.lang.reflect.Method.invoke(Method.java:597)+
    +     ... 60 more+
    The table structure is as below for your reference
    +<af:table value="#{bindings.TestTableAdfView1.collectionModel}"+
    var="row"
    +rows="#{bindings.TestTableAdfView1.rangeSize}"+
    +emptyText="#{bindings.TestTableAdfView1.viewable ? 'No data to display.' : 'Access Denied.'}"+
    +fetchSize="#{bindings.TestTableAdfView1.rangeSize}"+
    +rowBandingInterval="0"+
    +filterModel="#{bindings.TestTableAdfView1Query.queryDescriptor}"+
    +queryListener="#{bindings.TestTableAdfView1Query.processQuery}"+
    +filterVisible="true" varStatus="vs"+
    +rowSelection="single"+
    +binding="#{backingBeanScope.backing_testpage.t1}"+
    +id="t1"+
    +selectionListener="#{backingBeanScope.backing_testpage.XxSelectListener}">+
    Any help to resolve the issue is highly appreciated.
    Thanks,
    Arijit
    Edited by: user10570755 on Aug 2, 2011 11:19 PM

    //selection with the selection in the ADF model Object
    _selectedRowData = _table.getSelectedRowData();
    //cast to JUCtrlHierNodeBinding, which is the ADF object //that represents a row
    JUCtrlHierNodeBinding _nodeBinding = (JUCtrlHierNodeBinding) _selectedRowData;
    //get the row key from the node binding and set it //as the current row in the iterator
    Key _rwKey = _nodeBinding.getRowKey();i guess nodeBinding becoming null here.. _table.getSelectedRowData().. is not returnign anything                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Adf Customized Selection Listner Not working in df Table

    Hi All,
    I am working on Oracle Adf with jdev version 11.1.1.5
    My table has single row and some columns are Select Boolean Check boxes.
    I am using my customized Selection Listener for this table.
    My problem is when table is rendered row selected automatically and selection Listener is not executed.
    Any help is appreciated ...
    Following is my code Snippet :
    <af:table value="#{bindings.homeDelToProxyParentVO1.collectionModel}"
    var="row"
    rows="#{bindings.homeDelToProxyParentVO1.rangeSize}"
    emptyText="#{bindings.homeDelToProxyParentVO1.viewable ? 'No data to display.' : 'Access Denied.'}"
    fetchSize="#{bindings.homeDelToProxyParentVO1.rangeSize}"
    rowBandingInterval="0"
    selectedRowKeys="#{bindings.homeDelToProxyParentVO1.collectionModel.selectedRow}"
    rowSelection="single"
    binding="#{backingBeanScope.backing_home3.t1}"
    id="t1" styleClass="AFStretchWidth"
    autoHeightRows="5"
    contentDelivery="immediate"
    selectionListener="#{backingBeanScope.backing_home3.homeDelToProxyParentSelectionListner}">
    <af:column sortProperty="selectAll"
    sortable="false"
    headerText="Select All" id="c24">
    <af:selectBooleanCheckbox value="#{row.bindings.selectAll.inputValue}"
    required="#{bindings.homeDelToProxyParentVO1.hints.selectAll.mandatory}"
    shortDesc="#{bindings.homeDelToProxyParentVO1.hints.selectAll.tooltip}"
    id="it3"
    autoSubmit="true"
    valueChangeListener="#{backingBeanScope.backing_home3.delToProxySelectAll}">
    <f:validator binding="#{row.bindings.selectAll.validator}"/>
    </af:selectBooleanCheckbox>
    </af:column>
    <af:column sortProperty="EmpName"
    sortable="false"
    headerText="Employee Name" id="c3">
    <af:outputText value="#{row.EmpName}"
    id="ot2"/>
    </af:column>
    <af:column sortProperty="EmpPerNo"
    sortable="false"
    headerText="Person Number" id="c1">
    <af:outputText value="#{row.EmpPerNo}"
    id="ot1">
    <af:convertNumber groupingUsed="false"
    pattern="#{bindings.homeDelToProxyParentVO1.hints.EmpPerNo.format}"/>
    </af:outputText>
    </af:column>
    <af:column sortProperty="NotifyDate"
    sortable="false"
    headerText="Notification Date"
    id="c7">
    <af:outputText value="#{row.NotifyDate}"
    id="ot3">
    <af:convertDateTime pattern="#{bindings.homeDelToProxyParentVO1.hints.NotifyDate.format}"/>
    </af:outputText>
    </af:column>
    <af:column sortProperty="notification"
    sortable="false"
    headerText="Notification" id="c23">
    <af:selectBooleanCheckbox value="#{row.bindings.notification.inputValue}"
    required="#{bindings.homeDelToProxyParentVO1.hints.notification.mandatory}"
    shortDesc="#{bindings.homeDelToProxyParentVO1.hints.notification.tooltip}"
    id="it6"
    autoSubmit="true"
    valueChangeListener="#{backingBeanScope.backing_home3.delToProxyNotification}">
    <f:validator binding="#{row.bindings.notification.validator}"/>
    </af:selectBooleanCheckbox>
    </af:column>
    <af:column sortProperty="physicalAccess"
    sortable="false"
    headerText="Physical Access"
    id="c22">
    <af:selectBooleanCheckbox value="#{row.bindings.physicalAccess.inputValue}"
    required="#{bindings.homeDelToProxyParentVO1.hints.physicalAccess.mandatory}"
    shortDesc="#{bindings.homeDelToProxyParentVO1.hints.physicalAccess.tooltip}"
    id="it2"
    valueChangeListener="#{backingBeanScope.backing_home3.delToProxyPhysicalAccess}"
    autoSubmit="true">
    <f:validator binding="#{row.bindings.physicalAccess.validator}"/>
    </af:selectBooleanCheckbox>
    </af:column>
    <af:column sortProperty="networkAccess"
    sortable="false"
    headerText="Network Access" id="c35">
    <af:selectBooleanCheckbox value="#{row.bindings.networkAccess.inputValue}"
    required="#{bindings.homeDelToProxyParentVO1.hints.networkAccess.mandatory}"
    shortDesc="#{bindings.homeDelToProxyParentVO1.hints.networkAccess.tooltip}"
    id="it17"
    autoSubmit="true"
    valueChangeListener="#{backingBeanScope.backing_home3.delToProxyNetworkAccess}">
    <f:validator binding="#{row.bindings.networkAccess.validator}"/>
    </af:selectBooleanCheckbox>
    </af:column>
    <af:column sortProperty="laptopDesktop"
    sortable="false"
    headerText="Laptop/Desktop" id="c5">
    <af:selectBooleanCheckbox value="#{row.bindings.laptopDesktop.inputValue}"
    required="#{bindings.homeDelToProxyParentVO1.hints.laptopDesktop.mandatory}"
    shortDesc="#{bindings.homeDelToProxyParentVO1.hints.laptopDesktop.tooltip}"
    id="it5"
    autoSubmit="true"
    valueChangeListener="#{backingBeanScope.backing_home3.delToProxyLaptopDesktop}">
    <f:validator binding="#{row.bindings.laptopDesktop.validator}"/>
    </af:selectBooleanCheckbox>
    </af:column>
    <af:column sortProperty="mobility"
    sortable="false"
    headerText="Mobility" id="c6">
    <af:selectBooleanCheckbox value="#{row.bindings.mobility.inputValue}"
    required="#{bindings.homeDelToProxyParentVO1.hints.mobility.mandatory}"
    shortDesc="#{bindings.homeDelToProxyParentVO1.hints.mobility.tooltip}"
    id="it4"
    autoSubmit="true"
    valueChangeListener="#{backingBeanScope.backing_home3.delToProxyMobility}">
    <f:validator binding="#{row.bindings.mobility.validator}"/>
    </af:selectBooleanCheckbox>
    </af:column>
    <af:column sortProperty="otherProperty"
    sortable="false"
    headerText="Other Property" id="c4">
    <af:selectBooleanCheckbox value="#{row.bindings.otherProperty.inputValue}"
    required="#{bindings.homeDelToProxyParentVO1.hints.otherProperty.mandatory}"
    shortDesc="#{bindings.homeDelToProxyParentVO1.hints.otherProperty.tooltip}"
    id="it7"
    autoSubmit="true"
    valueChangeListener="#{backingBeanScope.backing_home3.delToProxyOtherProperty}">
    <f:validator binding="#{row.bindings.otherProperty.validator}"/>
    </af:selectBooleanCheckbox>
    </af:column>
    <af:column sortProperty="hrActivity"
    sortable="false"
    headerText="HR Activities" id="c2">
    <af:selectBooleanCheckbox value="#{row.bindings.hrActivity.inputValue}"
    required="#{bindings.homeDelToProxyParentVO1.hints.hrActivity.mandatory}"
    shortDesc="#{bindings.homeDelToProxyParentVO1.hints.hrActivity.tooltip}"
    id="it1"
    autoSubmit="true"
    valueChangeListener="#{backingBeanScope.backing_home3.delToProxyHRActivity}">
    <f:validator binding="#{row.bindings.hrActivity.validator}"/>
    </af:selectBooleanCheckbox>
    </af:column>
    </af:table>

    Since there is only one row in my table, it is getting select as a current row by default.
    But my requirement is to call my custom selection Listener which will make it current in addition to it
    I am also enabling a command button pro-grammatically there which is initially disabled i.e.( Disable = true )

  • Events not getting fired for templated controls.

    Hi,
    I have an asp.net custom server control, in which I have given template support. The template controls render fine. But, the events of template controls are not getting fired. For example, If I added an asp dropdownlist as a template in my custom control
    and select any item from dropdownlist and raised the postback, the selected item did not get updated in dropdownlist ( i.e selectedIndex, selectedText of the control remains the same as like initial rendering.), also I am not able to trigger the SelectedIndexChanged
    server side event of dropdownlist.
    I have used NamingContainer for rendering the template controls. The codes are as follows,
    <code>
    This is my source:
         private
    ITemplate fileTemplate =
    null;
     [TemplateContainer(typeof(ContentContainer)),
    PersistenceMode(PersistenceMode.InnerProperty),
    DesignerSerializationVisibility(DesignerSerializationVisibility.Content),
    TemplateInstance(TemplateInstance.Single)]
    public ITemplate FileTemplate
    get
       return fileTemplate;
    set
    fileTemplate = value;
    public class
    ContentContainer :
    WebControl, INamingContainer
    internal ContentContainer()
    protected override
    void CreateChildControls()
    this.Controls.Clear();
    ContentContainer container =
    new ContentContainer();
    this.FileTemplate.InstantiateIn(container);
    this.Controls.Add(container);
    base.CreateChildControls();
          public
    override ControlCollection Controls
    get
    this.EnsureChildControls();
           return
    base.Controls;
    Whereas in my application, I have rendered the custom control with template as below,
    [ASPX]
    <mycustom control>
    <FileTemplate>
    <asp:DropDownList
    ID="ddc1"
    runat="server"
    AutoPostBack="true"
    OnSelectedIndexChanged="ddc1_SelectedIndexChanged"
    >
    <asp:ListItem
    Text="Item1"
    Value="one"></asp:ListItem>
    <asp:ListItem
    Text="Item2"
    Value="two"></asp:ListItem>
    <asp:ListItem
    Text="Item3"
    Value="three"></asp:ListItem>
    <asp:ListItem
    Text="Item4"
    Value="four"></asp:ListItem>
    </asp:DropDownList>
    </FileTemplate>
    </mycustom control>
    [Code Behind]
    This event is not getting raised.
    protected
    void ddc1_SelectedIndexChanged(object sender,
    EventArgs e)
     I can get the template control's details here using "FindControl("templateID")". But not able to get the updated details.
    protected void btn_Click1(object sender,
    EventArgs e)
    var template= this.CustomControl.Controls[0].FindControl("ddc1");
    </code>
    Where I am going wrong? Kindly help me on this.
    Thanks in advance.
    Regards,
    Meena

    This is a Windows Phone forum, not a web development forum. Please ask this question at the forums at
    http://asp.net.
    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.
    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined
    objects and unknown namespaces.

  • Why h:commandlink action not get fired after upgrading to JSF-1.2_12?

    Hi,
    One strange behavior that I'm facing right now after upgrading to JSF version1.2_12, is that the action method for hidden commandlink which should get fired on changing the value of a comboBox are not getting fired. Note that I was initially using the JSF1.2_07 version and it worked fine.
    Any help would be much appreciated.
    Here is a sample code of what I have in my app.
    <h:panelGroup>
                   <h:selectOneMenu id="nav-menu" value="#{customBean.rowName}"
                   onchange="submitOnMenuChange(this.form,'id-link', 'nav-menu');">
                   <f:selectItem itemLabel="Select:" itemValue="" />
                   <f:selectItem itemLabel="rowName1" itemValue="rowName1"/>
                   <f:selectItem itemLabel="rowName2" itemValue="rowName2"/>
                   </h:selectOneMenu>
                   <h:commandLink id="id-link" value=" " action="#{customBean.updateAction}" style="display: none;"/>
    </h:panelGroup>
    Inside submitOnMenuChange() I'm using below technique to submit the form
    var idclValue = formId + JSF_ID_SEPARATOR + elementId;
    jsfcljs(document.forms[formId],idclValue+','+idclValue,'');
    So, ideally on changing the value from above comboBox it should invoke the updateAction method, bit it doesn't.
    Thanks,
    Umesh
    Edited by: Umesh_S on Oct 7, 2009 4:47 AM

    Here is a small simple example which could help replicate the problem
    There are mainly three files: 1. displayPage.jsp 2. CustomBean.java 3. faces-Config.xml
    1. displayPage.jsp (content)
    <%@ page session="true" contentType="text/html;charset=utf-8"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <f:view>
    <html>
    <head>
    <script language="javascript">
    function submitLinkAction(formId, elementId) {
         if (document.forms[formId] != null) {
              var idclValue = formId + ":" + elementId;
    jsfcljs(document.forms[formId],idclValue+','+idclValue,'');
         } else {
              throw "Form with id [" + formId + "] is null.";
         return false;
    function submitOnMenuChange(thisForm, linkId, menuId) {
         var fullMenuId = thisForm.id + ":" + menuId;
         var menu = document.forms[thisForm.id][fullMenuId];
         var selectedValue = menu.options[menu.selectedIndex].value;
         if (selectedValue.length > 0) {
              try {
                   return submitLinkAction(thisForm.id, linkId);
              } catch (errorMsg) {
                   alert("Error occurred: " + errorMsg);
         return false;
    </script>
    </head>
    <body>
    <h:form id="edit-form">
                             <h:panelGroup>
                                  <%-- show select drop-down--%>
                                       <h:selectOneMenu id="nav-menu" value="#{customBean.rowName}"
                                            enabledClass="grid"
                                            onchange="submitOnMenuChange(this.form,'nav-link', 'nav-menu');">
                                            <f:selectItem itemLabel="Select:" itemValue="" />
                                            <f:selectItem itemLabel="Row1" itemValue="Row1"/>
                                            <f:selectItem itemLabel="Row2" itemValue="Row2"/>
                                       </h:selectOneMenu>
                                       <h:commandLink id="nav-link" value=" " action="#{customBean.updateAction}" style="display: none;"/>
                             </h:panelGroup>
    </h:form>
    </body>
    </html>
    </f:view>
    2. CustomBean.java
    public class CustomBean {
    private String rowName;
         public CustomBean() {
         public String getRowName() {
              return this.rowName;
         public void setRowName(String value) {
              System.out.println("** Inside set row name**");
              this.rowName = value;
         public void updateAction() {
              System.out.println("************This is action method for hidden command link************* ");
    3. faces-config.xml (content)
    <!DOCTYPE faces-config PUBLIC
    "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
    "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
    <faces-config xmlns="http://java.sun.com/JSF/Configuration">
         <managed-bean>
         <managed-bean-name>customBean</managed-bean-name>
         <managed-bean-class>com.examples.CustomBean</managed-bean-class>
         <managed-bean-scope>request</managed-bean-scope>
         </managed-bean>
    </faces-config>
    So, if we run above example on JSF 1.2_07, on changing the value of nav-menu, it should submit the form and the action method (updateAction()) defined for commandlink "nav-link" should get fired (one could see the System.out coming on the console) but the moment the JSF jars are upgraded to 1.2_12 the action method no more gets invoked.
    Thanks,
    Umesh

  • FD33 - Receivable Field in Customer master is not getting updated

    FD33 - Receivable Field in Customer master is not getting updated for the FI documents posted in the customer account. I need to know is there any setting either in FI or in SD, which control whether the FI document is relevant to credit check?
    In SD, we are having the item category but i am not getting how to control for FI documents? How can i make them credit relevant item. Also for special item, we are controlling the same through Transaction code : OBXY - by special GL indicators but what about the normal/general item?
    How can I control the general FI documents having various FI documents type as relevant to credit check?

    Apart from the above,please also check the below:
    FD33 - Receivable Field in Customer master is not getting updated for the FI documents posted in the customer account. I need to know is there any setting either in FI or in SD, which control whether the FI document is relevant to credit check?
    As per me there is no specific control to active the credit active field in FI values unlike for updating the sales values in FD32 we activate credit active for the item cat(VOV7) which will ensure the sales values to update (open order, open delivery and open invoices) in to credit management.
    For FI values to update i think this is inbuilt in the program only.( example update group 000012,15,18 etc).
    Any way coming into query not updating the receivables, please check the below points once again.
    1. Check the whether invoice has accounting document generated or not, make sure that it is generated then only system update the receivables.
    2. Even if the above all points are checked including above all posts,then also still the same issue repeating  then try to run the program RVKRED77, before this first run RVKRED88 and compare this values with FD32.
    thanks,
    Srinu.

  • Custom Duty is not getting inventorised

    Hi All
    I am doing MIGO for import PO.
    Custom Duty is not getting debited in stock account but it is posting into a separate line of Account key FR3.
    FR3 is maintained in pricing procedure for this condition tye JCDB for both Account key and accrual.
    Credit is going to the current account custom clearing account , but debit is nit going to stock account.
    Can anybody help please.
    Further how do I know that JCDB is non cenvatable.
    Regards
    Mukta

    Hi Mukta,
    >price difference account will remain same at the month/year end , and that cannot be inventorized later on as well, right?
    >>> Right
    >So how we will treat this account balance, income or loss kind off on the product?
    >>> This PRD GL values will hit P&L account & not the Balance sheet of company, At the end of the year depending upon the values coming in Credit side or Debit side, Profit or Loss is determined, I think some FI guy may explain you about this in much clear way w.r.t. Accounting.
    In case if you are having COPA, your material will be updated with standard price only,
    here also same logic is applied, normally standard price of any finished product is determined by running the product costing considering all the factors, if at all there is variance they will all go to Production variance & again it will be determined as profit or loss at the end of the year,
    for getting the right standard price for finished product you need to run the costing at regular intervals & update the material standard price accordingly w.r.t.COPA.

  • Rules are not getting fired - urgent

    Hello
    I am a newbie to the oracle rules engine (10.1.3) and introducing the rules engine in our architecture.
    I have started to fire a simple rule but looks like the rules are not getting fired.
    Here is my code snipped: I am setting a value in the fact if another value is null.
    ==========
    RuleDictionary rDict = RuleFactory.getRuleDictionary(RadiusConstants.RADIUS_REPOSITORY, RadiusConstants.RADIUS_DICTIONARY, RadiusConstants.DICTIONARY_VERSION);
    RuleSession ruleSession = new RuleSession();
    ruleSession.executeRuleset(rDict.dataModelRL());
    ruleSession.executeRuleset(rDict.ruleSetRL(taskName));
    RuleMessage ruleMessage = new RuleMessage();
    ruleSession.callFunctionWithArgument("assert", moduleVo);
    ruleSession.callFunction("run");
    ruleSession.callFunctionWithArgument("assert", moduleVo);
    // ruleSession.callFunctionWithArgument("assert", moduleVo);
    System.out.println(" Module Status " + moduleVo.getStatus());
    ========
    Any help is greatly appreciated. I am not sure if I am missing. I am suing rule author to create the rules.
    I am asserting the fact in the rules engine. Here is the RL file generated from the rule author.
    ==================
    ruleset MODULE_CREATE
    2.
    3. {
    4.
    5. rule ModuleId_Null
    6. {
    7. priority = 0;
    8. if
    9. (
    10. (
    11. fact gov.sec.radius.admin.service.module.vo.ModuleVO v0_ModuleVO && (
    12. (v0_ModuleVO.moduleId == null)))
    13. )
    14.
    15. {
    16. v0_ModuleVO.status = "P";
    17. assert(v0_ModuleVO);
    18. }
    19. } //end rule ModuleId_Null;
    20. }// end ruleset MODULE_CREATE
    =================
    thanks very much in advance
    Yugandhar

    You need to specify the ruleset or rulesets that should be run. If there is only one, you can do:
    ruleSesion.callFunctionWithArgument("run", taskName);
    or
    ruleSesion.callFunctionWithArgument("pushRuleset", taskName);
    ruleSession.callFunction("run");
    If there are multiple rulesets you want to run in order, then call pushRuleset in stack-order that you want their actions executed.

  • Custom control in custom page layout not getting shown

    Hi,
    I have created a site column for Date field:
    <Field ID="{GUID}" Name="MyCustomPageLayoutDate" StaticName="MyCustomPageLayoutDate" Group="TestGroup" Type="DateTime" Format="DateOnly" DisplayName="Date" Required="FALSE" ><Field ID ="{guid}" Name ="MyCustomLayoutDateDisplay" DisplayName="Date Display"
             Group="TestGroup"
             Type="Calculated"
             ResultType="Text"
             ReadOnly="TRUE"
             Required="FALSE">
        <Formula>=TEXT([Date],"MMMM dd, yyyy")</Formula>
      </Field>
    This is added in the page layout content type:
    <FieldRef ID="{guid}" Name="MyCustomPageLayoutDate" />  <FieldRef ID="{guid}" Name ="MyCustomLayoutDateDisplay" />
    In the custom page layout, it is added as below:
    <Publishing:EditModePanel ID="EditModePanel5" runat="server" CssClass="edit-mode-panel">
    <tr>
    <td>
    Date
    </td>
    </tr>
    </Publishing:EditModePanel>
    <PublishingWebControls:EditModePanel ID="DateEditModePanel" runat="server" PageDisplayMode="Edit" SupressTag="True">
    <tr>
    <td >
    <PageFieldDateTimeField:DateTimeField ID="DateTimeField1" FieldName="GUID" runat="server">
    </PageFieldDateTimeField:DateTimeField>
    </td>
    </tr>
    </PublishingWebControls:EditModePanel>
    <PublishingWebControls:EditModePanel ID="DatePublishModePanel" PageDisplayMode="Display" runat="server">
    <tr>
    <td>
    <SharePoint:CalculatedField ID="CalculatedDateField" FieldName="guid" runat="server" />
    </td>
    </tr>
    </PublishingWebControls:EditModePanel>
    In the edit mode, the date is getting shown, and I am able to select a date. When the page is published, the entered date is not getting displayed.
    How to fix this?
    Thanks

    Hi,
    I tried to reproduce this issue like this:
    1. Create a DateTime site column “MyDateTimeCol01”;
    2. Create a Calculated site column “MyCalculated03” with formula “=TEXT(MyDateTimeCol01,"MMMM dd, yyyy")”;
    3. Create a Page Layout content type contains the two site columns above;
    4. Create a Page Layout with the Page Layout content type, the source code of this page layout as below:
    <asp:Content ContentPlaceholderID="PlaceHolderMain" runat="server">
    <PublishingWebControls:EditModePanel runat=server id="EditModePanel1" PageDisplayMode="Edit">
    <SharePointWebControls:DateTimeField FieldName="9492c1ff-851f-4d1c-bcbf-5637b69ebd63" runat="server"> </SharePointWebControls:DateTimeField>
    </PublishingWebControls:EditModePanel>
    <br/>
    <PublishingWebControls:EditModePanel runat=server id="EditModePanel2" PageDisplayMode="Display">
    date time text:
    <br/>
    <SharePointWebControls:CalculatedField FieldName="9c00c4dc-6a53-4abd-9fa4-6b4dd266c898" runat="server"></SharePointWebControls:CalculatedField>
    </PublishingWebControls:EditModePanel>
    </asp:Content>
    5. After that, create a publishing page with this custom page layout:
    In Edit mode:
    In Display mode:
    I suggest you follow the steps above to make another test to see if the issue persists.
    Thanks 
    Patrick Liang
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Custom duty is not getting captured

    Dear all,
      I have configured import pricing procedure and craeted PO with that pricing procedure.While capturing the Custom duty in miro,value and Quantity is not getting captured in it.As per the procedure import purchasing i m following steps given below
    1) I m creating Import PO
    2)Capturing custom duty in miro with defining commissioner of customs as a vendor
    3)Capturing excise invoice at the time of good receipt
    4)Posting excise invoice.
    5)Miro for capturing the goods cost for normal vendor 
       Pls. help me out for this.
    Thank and Regards
    Vaishali G.

    hi vaishali,
    i have confgiured, a import pricing schema, and enters all values manully in po, and its not calculated in invoice tab like local purchase,.
    can u tell me, what will be the finace impact of this, and is it correc to do this, does this will have any entry on CIN  tables.
    pls reply,
    asif

  • Custom Search Portlet not getting the results as expected.

    Hi All,
    I am using CustomSearchPortlet and I am having following problems. I created an itemtype IT with attributes A1,A2.Then I configured my custom search portlet to search based on A1,A2 attributes only. I have created 3 instances of items Item1,Item2,Item3 based on itemtype IT as follows
    Item1(A1=value11,A2=value12)
    Item2(A1=value21,A2=cat22)
    Item3(A1=value11,A2=value32)
    and when I search for value11, I get Item1,Item3 as results. Till here it was nice and behaving as expected. Suddenly after some time, it stopped working and i am not getting the results I used to get before. The only thing i remember to have changed in the meanwhile was to change the A2 attribute values of some of these items. my searchtext remained the same as value11. I was confused as to why the custom search portlet is not getting these results that it was getting before...Thanks for any help in solving this.
    Thanks,
    Prasanth.

    Hi,
    If Oracle Text is enabled in your portal, the updated items need to be synchronised before they can be returned in the Search. Since you updated those items, though not changing values for this particular attribute, it will be in the queue for indexing and hence will not be returned until it is indexed.
    Thanks.

  • Custom Afaria Client not getting installed on IOS devices

    Hello,
    I am using Afaria SP4 in my organization with no hotfix applied
    I have created a custom Afaria Client App for IOS devices.
    I am succesfully able to enroll my IOS devices and install the custom app during enrollment,when i am trying to hit the system tenant.
    However,when i am trying to hit manually created tenants,enrollment is
    done and also the device is under MDM control,but custom Afaria client app is not getting installed during enrollment.
    I have attached the screenshot of the page where i have uploaded the ios afaria application in Afaria console.
    The error that i can see in the icu logs while enrolling ios device in manually created tenant is as follows-
    "The manifest for the app at
    http://65.240.141.130:23003/ps2/ps.svc/Package/Content/0435A04B083AB0E663FE410BBFE7238D31E6B113/7de2f89d-6cdf-458d-a68c-0bb72e616c68/3/Virt.Def.App.plist
    could not be validated"
    Please guide to resolve the issue.
    thanks and regards,
    Jigar Salecha

    I'm quite sure you need to set this up per tenant. Have you tried to upload the custom client to each tenant ?
    BR
    Peter

  • Listener not getting started

    Hello,
    I am using Oracle Database 10G and Windows Vista.
    I am trying to start my listener but it is not getting started. When I looked at the error message.
    It says
    TNS-12560: TNS:protocol adapter error
    TNS-00511: No listener
    32-bit Windows Error: 2: No such file or directory
    NS-12545: Connect failed because target host or object does not exist
    TNS-12560: TNS:protocol adapter error
    TNS-00515: Connect failed because target host or object does not exist
    32-bit Windows Error: 1004: Unknown error
    Can someone please tell me what could be wrong and how should I fix this problem.
    Thanks

    IQ wrote:
    Hello,
    I am using Oracle Database 10G and Windows Vista.
    I am trying to start my listener but it is not getting started. When I looked at the error message.
    It says
    TNS-12560: TNS:protocol adapter error
    TNS-00511: No listener
    32-bit Windows Error: 2: No such file or directory
    NS-12545: Connect failed because target host or object does not exist
    TNS-12560: TNS:protocol adapter error
    TNS-00515: Connect failed because target host or object does not exist
    32-bit Windows Error: 1004: Unknown error
    Can someone please tell me what could be wrong and how should I fix this problem.
    ThanksNothing has changed?
    Is the host for the database using DHCP? If so, is it possible the DHCP address has changed?
    Have any Windows patches been applied? Security (permissions to run jobs, etc) sometimes get changed behind the scenes.
    Steps I would start with: get host IP address details, then dump the listener.ora file being used and look in the logs of the listener.

  • A custom perks wagetype not getting adding to taxable salary

    Hi experts.
    I need advice on the below issue.
    My client recently raised this issue. There is this custom perk wage type which they pay through Infotype 14. Now while generating form 16 the amount paid through this wage type is not getting added to Gross salary in F 16.
    I checked the configurations for this wage type in table V_512W_D  and found that it doesn't cumulate to anything(Total gross salary, Annual irregular income etc) and hence it is not getting added to Gross salary in F16. Which means due to wrong configuration of this wagetype the problem occured.
    Even if I correct the configuration now, the payroll has already been run and results cant be reversed as financial year 2014 books are closed now.
    So is there a way to add the custom wage type amount to Gross salary in F16. I explored table V_T52D3 and V_T52D4 but it cant be done through it.
    Kindly suggest how to correct this issue by atleast correcting the amounts in Form 16.
    Best regards
    Mahwish Khatib.

    Hi Jagan
    I am talking about Gross salary total on page one and not the segregation of components of Gross salary on pg 2. In the segragation it can be added but can it be added in the total of Gross salary on page 1?

  • Query:  Customer Exit variable not getting populated

    Hello Experts,  I created a Customer Exit variable (ZPREV_MTH_OPS) in the query designer (7.0).  I also put the necessary code in the function module "Z_BWFI_QUERY_CELL_MANIPULTN", but the query variable is not getting populated when I run the query using RSRT.  The boxes for "Variable is ready for input" and "variable is without context" boxes when defining the variable.
    This is my code in the exit:
    case i_vnam.
        when 'ZPREV_MTH_OPS'.
         break-point.
          if i_step = 2.
            clear l_s_range.
            if sy-datum+4(2) = '01'.
              wa_prev_month = '12'.
              wa_prev_year = sy-datum+0(4).
              wa_prev_year = wa_prev_year - 1.
            else.
              wa_prev_month = sy-datum+4(2) - 1.
              wa_prev_year = sy-datum+0(4).
            endif.
            concatenate wa_prev_year wa_prev_month '01' into wa_datum.
            call function 'SLS_MISC_GET_LAST_DAY_OF_MONTH'
              exporting
                day_in            = wa_datum
              importing
                last_day_of_month = wa_datum2.
            concatenate wa_prev_year wa_prev_month '01' into wa_datum.
    *        l_s_range-low = wa_datum.
    *        l_s_range-sign = 'I'.
    *        l_s_range-opt = 'BT'.
    *        l_s_range-high = wa_datum2.
    *        l_s_range-sign = 'I'.
    *        append l_s_range to e_t_range.
            l_s_range-low = '20080901'.
            l_s_range-sign = 'I'.
            l_s_range-opt = 'BT'.
            l_s_range-high = '20080930'.
            l_s_range-sign = 'I'.
            append l_s_range to e_t_range.
          endif.
      endcase.
    I also put a break point the exit, but it's not coming to the breakpoint. 
    Any suggestions?
    Thanks.

    Josh,  the link you provided reminded me to include the code in the include ZXRSRU01 also, instead of just changing the function module.  Thanks for your help and all those who tried to help me.
    case i_vnam.
       when 'ZREL12MTH' or 'ZPREV_MTH_OPS'.
         call function 'Z_BWFI_QUERY_CELL_MANIPULTN'
           EXPORTING
             i_vnam        = i_vnam
             i_vartyp      = i_vartyp
             i_iobjnm      = i_iobjnm
             i_s_cob_pro   = i_s_cob_pro
             i_s_rkb1d     = i_s_rkb1d
             i_periv       = i_periv
             i_t_var_range = i_t_var_range
             i_step        = i_step
           IMPORTING
             e_t_range     = e_t_range
             e_meeht       = e_meeht
             e_mefac       = e_mefac
             e_waers       = e_waers
             e_whfac       = e_whfac
           CHANGING
             c_s_customer  = c_s_customer.
    endcase.

Maybe you are looking for