Af:commandLink not calling launchListener

I'm using the dialog framework and it seems that when i use af:commandButton the launchListener binded method gets called, but when i use af:commandLink it doesn't.
Is this a bug ?
By the way, i have to use af:commandLink instead of af:commandButton just because i can't get the commandLink to display my image like this:
<af:commandButton id="launchDistritoPopup" useWindow="true"
partialSubmit="true" action="dialog:Distrito"
launchListener="#{backing_pdcf.sendSelectedPais}"
returnListener="#{backing_pdcf.handleReturnDistrito}"
immediate="true" windowHeight="300" windowWidth="300">
<af:objectImage source="/images/search.gif" borderWidth="0"/>
</af:commandButton>
Again, is this a bug ?

It would help if you give us at least your jdev version...
What I see is that you use three different beans (#{backingBean.booleanValue}, #{shoppingCartBean.addItemToCart},#{homePageBean.updateShoppingCart}), which sounds strange without knowing the real use case behind this. Next I see two actionListeners on the link (which might be a problem too).
What happens if you use rendered="true" instead of going to a bean? Do you really intend to use the rendered property? You may consider using the visible property instead.
Timo

Similar Messages

  • h:CommandLink : Action event not called on the first click

    Hi,
    I am facing a problem here.
    I have a JSF page:
    When I first load the page, I have few text boxes and dropdowns. With out doing anything If I click the <h:commandLink I call an action in my pagecode.
    But the problem is on the very first load of the page, without doing anything if I click on the command link action event in my pagecode is not called, but If I click on the link the second timethe pagecode actionevent is called.
    So I think tried submitting the form in the JSF page onclik of the commandlink it works in my Local IBM RAD. But doesnot work in the WebSphere Portal.
    So can you tell me if I can submit the form atleast once when the page loads for the first time
    This is my command link:
    <tr>
    <td colspan="2" align="center">
    <h:commandLink styleClass="commandLink" id="lnkBtnCreateUser" action="#{pc_Createuser.doLnkBtnCreateUserAction}">
    <hx:graphicImageEx styleClass="graphicImageEx" id="imgBtnCreateUser" value="/theme/images/btnCreateUser.gif" style="border:0;cursor:pointer" onclick="return onFormSubmit();"></hx:graphicImageEx>
    </h:commandLink>
    </td>
    </tr>
    function onFormSubmit(){
    //enabling all the disable components
    So can anybody please help me on this. Why exactly the pageCode action event is not called for the very first click ???

    seems that a prependID="false" attribute in the respective form was causing the trouble. At least it's working now that I've deleted it.
    I introduced it, because last time the component ID's messed up the output of the error/success messages ("j_id:xxx isn't that of a usefull information to the enduser).
    Edited by: stger on Apr 9, 2008 5:41 PM

  • ActionMethod in CommandLink is not called whenadding Components dynamically

    I want to create a customTable component in which paginator will be a sub tag.
    <custom:customTable value="#{testBean.data}" var="current1">
    <t:panelGrid binding="#{tableBean.paginator}"></t:panelGrid>
    <t:column>
              <h:outputText value="#{current1.name}"/>
    </t:column>
    <t:column>
              <h:outputText value="#{current1.id}"/>
    </t:column>
    </custom:customTable>
    In the encode method of custom renderer ,I am writing logic to render the paginator child component.
    In encode:
    List children = getChildren(uiComponent);
              for (int j = 0, size = getChildCount(uiComponent); j < size; j++) {
                   UIComponent child = (UIComponent) children.get(j);
                   if (child.isRendered()) {
                        boolean columnRendering = child instanceof HtmlPanelGrid;
                   if(columnRendering){
                        RendererUtils.renderChild(facesContext, child);     
    In <t:panelGrid binding="#{tableBean.paginator}"></t:panelGrid> ,getPaginator returns a PanelGrid which has dynamically created CommandLinks.CommandLink has action bind to a method in the managed bean.
    HtmlCommandLink htCommLink = (HtmlCommandLink) jsfUtil
                             .createComponent(HtmlCommandLink.COMPONENT_TYPE);
                   htCommLink.getAttributes().put(IISWebConstants.VALUE_ATTRIBUTE,
                             "A");
                   htCommLink.setAction(jsfUtil.createMethodBinding("#{tableBean.createData}"));
                   htCommLink.getAttributes()
                             .put(IISWebConstants.ON_CLICK, "submit()");                    
                        htCommLink.getAttributes().put(IISWebConstants.RENDERED,
                                  Boolean.TRUE);
                        htCommLink.getAttributes().put(IISWebConstants.STYLE_CLASS,
                                  "link");
    //hpg PanelGrid instance                                   hpg.getChildren().add(htCommLink);
    Problem:Paginator is rendering,Table is rendering but if I click on the commandLink ,action method is not calling.Can any body tell me how to resolve this issue

    i have found the reason!
    after click on this command link, a listener from a SelectOneMenu tag was invoked first. very interesting, but read further to know why!
    i didn't change anything in this input tag, but the problem is that the SelectOneMenu value was initalized with an empty string, but it's first SelectItem was initalized with SelectItem("x", ""). So there was an old value "" and a new value "x" and therefore it was invoked before the action method. this took me some hours to find that out.
    in this listener i made something like this at the end:
           UIViewRoot view = context.getApplication().getViewHandler().createView(context, viewPath);
           view.setViewId(viewPath);
           context.setViewRoot(view);
           context.renderResponse();so it's clear, why it didn't execute the action method.
    so as a global rule, check all your listeners (breakpoints!) when you have a similar problem!

  • Action method not called in Backing Bean

    I am using <x:inputFileUpload> tag inside my jsp page. I am trying to call action method when clicking button, but action method not called.
    My jsp page:
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <%@ taglib uri="http://myfaces.apache.org/extensions" prefix="x"%>
    <html>
         <head>
              <title>File upload Test</title>
         </head>
         <body>
              <f:view>
                   <h:form id="form1" enctype="multipart/form-data">
                        <h:messages id="asdghsda"/>          
                        <h:outputText value="This is file upload page functionlaity POC" />                                   
                        <h:inputText value="#{fileUploadBean.textField}" />
                        <x:inputFileUpload id="myFileId" value="#{fileUploadBean.myFile}" storage="file" required="true"/>                    
                        <h:commandButton action="#{fileUploadBean.storeFile}" value="Enter here" />                    
                        <h:commandLink value="Clicl Here!!" action="#{fileUploadBean.storeFile}"></h:commandLink>
                   </h:form>               
              </f:view>
         </body>     
    </html>
    My backing bean:
    package com.beans;
    import java.io.BufferedInputStream;
    import java.io.File;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.OutputStream;
    import org.apache.log4j.Logger;
    import org.apache.myfaces.custom.fileupload.UploadedFile;
    public class FileUploadBean {     
         private static Logger logger = Logger.getLogger(FileUploadBean.class.getName());
         private String textField;
         private UploadedFile myFile;
         public UploadedFile getMyFile() {
              logger.info("inside get method");
         return myFile;
         public void setMyFile(UploadedFile myFile) {
              logger.info("inside set method");
              this.myFile = myFile;
         public void storeFile(){          
              logger.info("Inside the storeFile method");
              logger.info("The text field value: " + getTextField());
              try {
                   InputStream in = new BufferedInputStream(myFile.getInputStream());
                   logger.info("The string is: " + in.read());
                   System.out.println(in.read());
                   File f = new File("D:\\share\\sample.txt");               
                   OutputStream out = new FileOutputStream(f);
                   out.write(in.read());
              } catch (IOException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              logger.info("Exit from the storeFile method");
         public String getTextField() {
              return textField;
         public void setTextField(String textField) {
              this.textField = textField;
    My web.xml file:
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
    <display-name>MyJSFProject</display-name>
    <context-param>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>server</param-value>
    </context-param>
    <filter>
    <filter-name>ExtensionsFilter</filter-name>
    <filter-class>org.apache.myfaces.component.html.util.ExtensionsFilter</filter-class>
    <init-param>
    <param-name>uploadMaxFileSize</param-name>
    <param-value>10m</param-value>
    </init-param>
    <init-param>
    <param-name>uploadThresholdSize</param-name>
    <param-value>100k</param-value>
    </init-param>
    </filter>
    <filter-mapping>
    <filter-name>ExtensionsFilter</filter-name>
    <servlet-name>FacesServlet</servlet-name>
    </filter-mapping>
    <servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>*.jsf</url-pattern>
    </servlet-mapping>
    </web-app>
    Can someone help me on this? I need urgently.

    One straight and simple answer which i can give you method associated to action attributes always returns a java.lang.String Object.
    REF :
    action:
    =====
    If specified as a string: Directly specifies an outcome used by the navigation handler to determine the JSF page to load next as a result of activating the button or link If specified as a method binding: The method has this signature: String methodName(); the string represents the outcome
    source : http://horstmann.com/corejsf/jsf-tags.html#Table4_15
    therefore
    change
    public void storeFile(){
    logger.info("Inside the storeFile method");
    logger.info("The text field value: " + getTextField());
    try {
    InputStream in = new BufferedInputStream(myFile.getInputStream());
    logger.info("The string is: " + in.read());
    System.out.println(in.read());
    File f = new File("D:\\share\\sample.txt");
    OutputStream out = new FileOutputStream(f);
    out.write(in.read());
    } catch (IOException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    logger.info("Exit from the storeFile method");
    }to
    public String storeFile(){
    logger.info("Inside the storeFile method");
    logger.info("The text field value: " + getTextField());
    try {
    InputStream in = new BufferedInputStream(myFile.getInputStream());
    logger.info("The string is: " + in.read());
    System.out.println(in.read());
    File f = new File("D:\\share\\sample.txt");
    OutputStream out = new FileOutputStream(f);
    out.write(in.read());
    } catch (IOException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    logger.info("Exit from the storeFile method");
    return "success";
    }else where you can make use of actionlistener property in the following senario.
    but the method signature has to be void storeFile(ActionEvent ae)
    and could be use like
    <h:commandButton actionlistener="#{fileUploadBean.storeFile}" action="success" value="SUBMIT" /> Hope that might help :)
    REGARDS,
    RaHuL

  • CommandButton does not call action method ?

    Hi BalusC or JSF gurus,
    I have a requirement to build a database table and update the row in the database table followed with save.
    I used this from posts : http://balusc.xs4all.nl/srv/dev-jep-dat.html.
    It was very excellent. Thanks BalusC.
    table.jsp:
    <h:dataTable rows="0" value="#{LCCircuitUtil.circuitList}" var="currentRow" binding="#{LCCircuitUtil.dataTable}">
    <h:column>
    <f:facet name="header">
    <h:outputText value="Circuit Name"/>
    </f:facet>
    <h:commandLink action="#{LCCircuitUtil.editLinkAction}">
    <h:outputText value="#{currentRow.circuitId}"/>
    </h:commandLink>
    </h:column>
    <h:column>
    <f:facet name="header">
    <h:outputText value="Audit Comments"/>
    </f:facet>
    <h:commandLink action="#{LCCircuitUtil.editLinkAction}">
    <h:outputText value="#{currentRow.auditComment}"/>
    </h:commandLink>
    </h:column>
                   <h:column>
    <f:facet name="header">
    <h:outputText value="Start Date"/>
    </f:facet>
    <h:commandLink action="#{LCCircuitUtil.editLinkAction}">
    <h:outputText value="#{currentRow.startDate}"/>
    </h:commandLink>
    </h:column>
                   <h:column>
    <f:facet name="header">
    <h:outputText value="End Date"/>
    </f:facet>
    <h:commandLink action="#{LCCircuitUtil.editLinkAction}">
    <h:outputText value="#{currentRow.endDate}"/>
    </h:commandLink>
    </h:column>
                   <h:column>
    <f:facet name="header">
    <h:outputText value="Status "/>
    </f:facet>
    <h:commandLink action="#{LCCircuitUtil.editLinkAction}">
    <h:outputText value="#{currentRow.status}"/>
    </h:commandLink>
    </h:column>
    </h:dataTable>
    <h:commandButton value="New" action="#{LCCircuitUtil.newButtonAction}"/>
         </h:panelGroup>
    Upon click the link or newButtonAction i am able to see the edit.jsp with the populated row values..
    <h:form id="EditCircuitForm">
    <h:panelGrid columns="2">
    <h:outputLabel value="CIRCUIT ID" rendered="#{LCCircuitUtil.circuitTO.circuitId > 0}"/>
    <h:outputLabel value="#{LCCircuitUtil.circuitTO.circuitId}" rendered="#{LCCircuitUtil.circuitTO.circuitId > 0}"/>
    <h:outputLabel value="Audit Comment"/>
    <h:inputText value="#{LCCircuitUtil.circuitTO.auditComment}"/>
    <h:outputLabel value="Start Date"/>
    <h:inputText value="#{LCCircuitUtil.circuitTO.startDate}"/>
                   <h:outputLabel value="End Date"/>
    <h:inputText value="#{LCCircuitUtil.circuitTO.endDate}"/>
                   <h:outputLabel value="Status"/>
    <h:inputText value="#{LCCircuitUtil.circuitTO.status}"/>
    </h:panelGrid>
              <h:commandButton value="Save" action="#{LCCircuitUtil.saveAction}"/>               
    <h:commandButton value="Cancel" action="return" immediate="true"/>
              <h:inputHidden value="#{LCCircuitUtil.circuitTO.circuitId}"/>     
    </h:form>
    Save Action in LCCircuitUtil.java
         public String saveAction()
              System.out.println("saveAction ");
         this.updateCircuit(circuitTO);
         System.out.println("End saveAction");
         return "return";
    Issue : I am not able to call saveAction from the edit.jsp..It does not call the save Action in the backhand Managed Bean
    Thanks,
    bk

    hi balusC,
    I have not set any validation criteria anywhere(may be later)..
    <h:panelGrid columns="2">
    <h:outputLabel value="CIRCUIT ID" rendered="#{LCCircuitUtil.circuitTO.circuitId > 0}"/>
    <h:outputLabel value="#{LCCircuitUtil.circuitTO.circuitId}" rendered="#{LCCircuitUtil.circuitTO.circuitId > 0}"/>
    <h:outputLabel value="Audit Comment"/>
    <h:inputText id="ip1" value="#{LCCircuitUtil.circuitTO.auditComment}"/>
    <h:outputLabel value="Start Date"/>
    <h:inputText id="ip2" value="#{LCCircuitUtil.circuitTO.startDate}"/>
                   <h:outputLabel value="End Date"/>
    <h:inputText id="ip3" value="#{LCCircuitUtil.circuitTO.endDate}"/>
                   <h:outputLabel value="Status"/>
    <h:inputText id="ip4" value="#{LCCircuitUtil.circuitTO.status}"/>
                   <h:message for="ip1" /><br>
                   <h:message for="ip2" /><br>
                   <h:message for="ip3" /><br>
                   <h:message for="ip4" /><br>               
    </h:panelGrid>
    I didn't receive any error messages..When i save it refreshes the same page.
    Thank you,
    bk
    Message was edited by:
    kbalas78

  • H:commandLink not working all the times

    Hi,
    I am working on an application, with JSF and Spring. In the application I have one page containing a h:dataTable containing records from database. The first column in the dataTable is a commandLink on click of which I need to call method frmo managedBean defined in the action tag.
    The problem regarding the above scenario is that the commandLink is workign alternate times, like when the page loads first the commandLink will work fine calling the action method in the managedBean but when I click the same link second time it does not call the method in managedBean, then third time it works again fine. My managed Bean is in session scope.
    I need to open the details of the link in a new window which will be opened using target="_blank".
    Can anybody please help me regarding the above scenario and giving me any solution why the hypelink is behaving like this.
    Thnak You in advance.
    Edited by: rBond008 on Aug 21, 2009 1:51 AM

    i am facing the same problem.
    I have a view in session scope and which opens in multiple pages on clicking <h:commandLink target="_blank">
    in a datatable.
    The thing is page is opening fine for the alternate clicks and all command links in parent page are not functioning properly.
    They are working properly at alternate clicks.
    I found the problem from debug logs as the form is not getting submitted on alternate clicks which is making the framework to quit the "*INVOKE_APPLICATION*" phase.
    i tried using onclick="javascript:submit()" as part of each command link but it is not working fine all the time.

  • ADF - ReturnListener not called after many clicks in dialog window

    Hi all,
    I´m using ADF dialog framework to implement a re-usable pop-up search window. Everything works fine except when the user performs serveral (more than 8) searches in the pop-up window.
    When this happens the returnListener is not called and the selection is not made.
    I´m using ADF with MyFaces.
    JSP # 1:
    <af:commandLink id="btn_buscar" styleClass="lin1" partialSubmit="true" useWindow="true" windowHeight="400" windowWidth="400"
    action="#{bean1.buscarAction}" returnListener="#{bean1.cargarAL}" immediate="true" text="#{bundle.abm_general_buscar}">
    </af:commandLink>
    Bean1:
    public String buscarAction() {
    return "dialog:busqueda";
    public void cargarAL(ReturnEvent evento) {
    long idSeleccion = (Long) evento.getReturnValue();
    try{
    if (idSeleccion!=0){
    getFormulario().setId(idSeleccion);
    getFormulario().cargarRegistro(FacesUtils.getUsuarioBean().getUsuario(),true);
    }else {
    inicializar();
    catch (IExcepcion e) {
    FacesUtils.addErrorMessage(e,true);
    inicializar();
    refrescarFormulario();
    JSP # 2 (Dialog):
    <af:commandLink actionListener="#{bean2.elegirAL}" text="#{bundle.abm_general_elegir}"/>
    Bean2:
    public void elegirAL(ActionEvent e){
    AdfFacesContext afContext = AdfFacesContext.getCurrentInstance();
    afContext.returnFromDialog(getValorElegido(),null);
    afContext.getProcessScope().clear();
    I read lots of tutorials about ADF dialog framework with no luck.
    Any help will be apreciated,
    Thanks in advance.
    Gabriel

    Please see post [SOLVED] Re: ADFFaces: returnFromDialog fails to invoke return listener aft for resolution.

  • How to log in with my old Apple account? I forgot my pass and I did change my apple ID before canceling first?? I am from Croatia so did folow al the discussion and the to resolve the problem but no luck. Can not call from Croatia the Apple help desk

    How to log in with my old Apple account? I forgot my pass and I did change my apple ID before canceling first?? I am from Croatia so did folow al the discussion and the to resolve the problem but no luck. Can not call from Croatia the Apple help desk.i did try all the options but I can not find the phone number to call from Croatia,
    I can not change my Apple ID to the old mail (not possible!)
    The old mail don't accept the new password..
    I can not delete the Icloud all the time asking my the password of the old mail!
    I realy need help

    You can not merge accounts.
    Apps are tied to the Apple ID used to download them, you can not transfer them.

  • Web service handler could not called in client web service

    Hi All,
    I have two web service ServiceA & ServiceB and both implemented in weblogic.
    The ServiceA is SSL enable and protocol is https which is not published by me.
    The ServieB is my web service(wls8.1) and act as client for ServiceA.
    My problem is when i hit my service, its not able set the handler when it call ServiceA but it is invoking the service and giving application exception like authentication error.
    My service file:
    import java.util.ArrayList;
    import java.util.HashMap;
    import java.util.Iterator;
    import java.util.List;
    import java.util.Map;
    import javax.xml.namespace.QName;
    import javax.xml.rpc.handler.HandlerInfo;
    import javax.xml.rpc.handler.HandlerRegistry;
    import javax.xml.rpc.handler.soap.SOAPMessageContext;
    import weblogic.webservice.client.SSLAdapterFactory;
    import weblogic.webservice.client.WLSSLAdapter;
    public class HelloService {
    String wsdl = "https://188.122.123.23/RemoetService?WSDL";
    static {
    SSLAdapterFactory factory = SSLAdapterFactory.getDefaultFactory();
    WLSSLAdapter adapter = (WLSSLAdapter) factory.getSSLAdapter();
    adapter.setTrustedCertificatesFile("D:\\lib\\certs
    cacerts");
    factory.setDefaultAdapter(adapter);
    System.setProperty("weblogic.xml.encryption.verbose","true");
    System.setProperty("weblogic.xml.signature.verbose","true");
    System.setProperty("weblogic.webservice.verbose","true");
    public String sayHello(String user) {
    RemoteService_Impl service = new RemoteService_Impl(wsdl);
    RemotePortType port = service.getRemoteServicePort1();
    String namespace = service.getServiceName()
    .getNamespaceURI();
    QName portName = new QName(namespace,
    "RemoteServicePortType");
    HandlerRegistry reg = service.getHandlerRegistry();
    List handlerList = new ArrayList();
    Map map = new HashMap();
    map.put("Username", "user1");
    map.put("Password", "pwd1");
    HandlerInfo info = new HandlerInfo();
    info.setHandlerClass(WSClientHandler .class);
    info.setHandlerConfig(map);
    handlerList.add(info);
    reg.setHandlerChain(portName,(List)handlerList);
    RemoteServiceResponse = port.callMe(name);
    My Handler file:
    package com.test;
    import java.util.Map;
    import javax.xml.namespace.QName;
    import javax.xml.rpc.handler.Handler;
    import javax.xml.rpc.handler.HandlerInfo;
    import javax.xml.rpc.handler.MessageContext;
    import javax.xml.rpc.handler.soap.SOAPMessageContext;
    import javax.xml.soap.Name;
    import javax.xml.soap.SOAPElement;
    import javax.xml.soap.SOAPEnvelope;
    import javax.xml.soap.SOAPException;
    import javax.xml.soap.SOAPHeader;
    import javax.xml.soap.SOAPHeaderElement;
    public class WSClientHandler implements Handler {
    private HandlerInfo handlerInfo;
    public WSClientAuthenticateHandler(){}
    public void init(HandlerInfo hi) {
    System.out.println("Handler init");
    handlerInfo = hi;
    public void destroy() {
    System.out.println("Handler destroy method called");
    handlerInfo = null;
    public QName[] getHeaders() {
    System.out.println("Handler Header method called");
    try {
    Map map = handlerInfo.getHandlerConfig();
    QName[] headers = handlerInfo.getHeaders();
    System.out.println(" Config :"+map);
    for(int i=0;i<headers.length;i++) {
    System.out.println(headers.getLocalPart()+" "+
    headers.toString()+" "+headers.getNamespaceURI());
    }catch(Exception e) {
    e.printStackTrace();
    return handlerInfo.getHeaders();
    public boolean handleRequest(MessageContext mc) {
    SOAPMessageContext smc = (SOAPMessageContext) mc;
    System.out.println("Calling handler class.....................");
    try {
    SOAPEnvelope se = smc.getMessage().getSOAPPart().getEnvelope();
    System.out.println("Calling handler class.....................");
    SOAPHeader soapHeader = se.getHeader();
    Name headerName = se.createName("Security","wsse","http://schemas.xmlsoap.org/ws/2002/07/secext");
    SOAPHeaderElement headerElement = soapHeader.addHeaderElement(headerName);
    SOAPElement element = headerElement.addChildElement(se.createName("UsernameToken", "wsse", "http://schemas.xmlsoap.org/ws/2002/07/secext"));
    element.addChildElement(se.createName("Username", "wsse","http://schemas.xmlsoap.org/ws/2002/07/secext")).addTextNode("testuser");
    element.addChildElement(se.createName("Password", "wsse","http://schemas.xmlsoap.org/ws/2002/07/secext")).addTextNode("testpwd");
    System.out.println("Calling handler class.....................");
    System.out.println("** Request: \n "se.toString()"\n");
    }catch(SOAPException e) {
    e.printStackTrace();
    return true;
    /** * Specifies that the SOAP response message be logged to a
    * log file before the
    * * message is sent back to the client application
    * that invoked the Web service.
    public boolean handleResponse(MessageContext mc) {
    System.out.println("Handler Response method called");
    SOAPMessageContext messageContext = (SOAPMessageContext) mc;
    System.out.println("** Response: \n"messageContext.getMessage().toString()"\n");
    return true;
    /** * Specifies that a message be logged to the log file if a SOAP fault is
    * * thrown by the Handler instance.
    public boolean handleFault(MessageContext mc) {
    SOAPMessageContext messageContext = (SOAPMessageContext) mc;
    System.out.println("** Fault: \n"messageContext.getMessage().toString()"\n");
    return true;
    Please need help here.
    Thanks in Advance,
    pps

    I have tested static client calling using handler simple above service and found the issues.
    QName portName = new QName(namespace,
    "*RemoteServicePortType*");
    The above line code has created the issues,becuase in wsdl file ( given similar wsdl file).
    <?xml version="1.0"; encoding="UTF-8"?>
    <definitions name="HelloService"
    targetNamespace="http://www.ecerami.com/wsdl/HelloService.wsdl"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:tns="http://www.ecerami.com/wsdl/HelloService.wsdl"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <message name="SayHelloRequest">
    <part name="firstName" type="xsd:string"/>
    </message>
    <message name="SayHelloResponse">
    <part name="greeting" type="xsd:string"/>
    </message>
    *<portType name="RemoteServicePortType">*
    <operation name="sayHello">
    <input message="tns:SayHelloRequest"/>
    <output message="tns:SayHelloResponse"/>
    </operation>
    </portType>
    <binding name="Hello_Binding" type="tns:*RemoteServicePortType*">
    <soap:binding style="rpc"
    transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="sayHello">
    <soap:operation soapAction="sayHello"/>
    <input>
    <soap:body
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
    namespace="urn:examples:helloservice"
    use="encoded"/>
    </input>
    <output>
    <soap:body
    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
    namespace="urn:examples:helloservice"
    use="encoded"/>
    </output>
    </operation>
    </binding>
    <service name="Hello_Service">
    <port binding="tns:Hello_Binding" name="*RemoteServicePortType1*">
    <soap:address
    location="http://host1:8080/soap/servlet/rpcrouter"/>
    </port>
    <port binding="tns:Hello_Binding" name="*RemoteServicePortType2*">
    <soap:address
    location="http://host2:8080/soap/servlet/rpcrouter"/>
    </port>
    <port binding="tns:Hello_Binding" name="*RemoteServicePortType3*">
    <soap:address
    location="http://host3:8080/soap/servlet/rpcrouter"/>
    </port>
    <port binding="tns:Hello_Binding" name="*RemoteServicePortType4*">
    <soap:address
    location="http://host4:8080/soap/servlet/rpcrouter"/>
    </port>
    </service>
    </definitions>
    From the above WSDL, I have four port name (port binding="tns:Hello_Binding" name="*RemoteServicePortType1*) which is not matching with PortType (portType name="*RemoteServicePortType*")
    even i have iterated from getPorts() method and used to invoke the service.But handler was not calling when i invoke.
    Please guide me here how i specify correct portname which can call Handler class also.
    Thanks in advance,
    pps

  • I am recieving calls from a solicitor. Show up as no caller Id. I want to block all calls that do not show caller Id. Can I do that? I am on the do not call list

    How do I block all in coming calls that do not show on my caller Id. Phone says "no caller id" This particular call is from a place selling septic tank cleaner. They leave an automated voice mail. They are calling me over and over. I am on the national do not call list but that's no help. Because the caller id doesn't show anything I can't even report them.
    I remember in the past calling a number and before my call would go thru I would have to enter my phone number so the party I was calling knew who was calling them. That is what I want to do. I want to block all calls from "no caller id" "number unavailable" Just FYI my phone is an IPHONE 5 and I am on Verizon.
    Any help would be appreciated.
    Thanks

        itbitybob, good day!
    Thank you for taking the time to reach out to us today. I know how frustrating it can be getting phone calls from "no caller id" numbers. We do have an option that is called Family Base that will allow you to block unknown numbers, private numbers, or caller id. This link will provide you with the full details of this option. http://vz.to/1gIklla I hope this is able to answer your question. If you have further questions please feel free to reach back out to us at any time.
    KevinR_VZW
    Please follow us on Twitter @VZWSupport 

  • Intercompany stock transfer but BUV not calling

    HI expert,
    we are doing cross company stock transfer. we have made sto, delivery, post goods issue, and goods reciept in receving site.
    but problem is that during PGI, inter company clear accounting entries is not calling. ie transaction  key 'BUV' is not caaling during PGI.
    how we can call automatic intercompany clearing during PGI.
    Regards,
    Santosh

    solved.
    it will call when you will use document type UB for interconmany.

  • When I press on a land line number, the phone does not call the number, but comes up with a screen to send a text to it.  How do I get my phone to default to phoneing a landline?

    When I press on a land line number, the phone does not call the number, but comes up with a screen to send a text to it.  How do I get my phone to default to phoneing a landline?  When I press a mobile number in contacts, the phone automatically phones the number.  I do not mind this as I hardly ever send texts, but I would like to have the option of what to do.  This seems such an obvious issue but I can not solve it even with much web searching.  Thanks!

    I can't delete my question, so I'll just say that you press on the type of number written in the box to the left of the box you typye the number into.  Dumb or what? 

  • My iphone is gray or black it is functioning but you can not see the screen so I can not call or text or anything

    My iphone is gray or black it is functioning but you can not see the screen so I can not call or text or anything,  I have a child that is very ill and I have to have access to a phone at all times can someone help me?  It happened one other time when I plugged it in to my to listen to music.  I know it is working it said something on voice control.  I tried the press the circle button and the top button but the screen only turned white?

    Try the following:
    - A reset. Nothing is lost
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Restore from backup
    - Restore to factory settings/new iPod.
    If you still have the problem that indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order

  • How to call or not call a Trigger in same table based on condition?

    Hi
    How to call or not call a Trigger in below situations..
    If a table contains a record of same value i.e,
    [i[u]]ID
    1
    1
    3
    In above ID 1 is repeated for two times.
    In this situations i don't want to call a trigger..
    But, the value ID is for 3, now i want to fire a trigger.
    Based on this i want to delete in another table.
    How can I check it?
    Thanks

    Thanks for ur reply..
    The below is my scnario..
    I am having two table
    employee
    Id empcol
    101 111
    101 222
    102 444
    Department
    id deptcol
    101 457
    101 678
    102 543
    The above is my table structure no one column is PK, so i m not able create FK.
    When I am deleting from employee where id =101 and empcol=111,
    the above record is deleted.
    At present I am using After Update Trigger..
    So trigger is called and delete the id 101 in Department table.
    In my scenario i can't delete a record in Department table
    bcoz i am having id morethan 101 in employee table.
    If employee table contains one ID like 102 the Trigger should works.
    How can I check the condition After delete on employee table it contains morethan same employee id?
    The below is my Trigger..
    CREATE OR REPLACE TRIGGER CALL_TRIGGER
    AFTER DELETE ON Employee
    FOR EACH ROW
    DECLARE
    count_id pls_integer;
    BEGIN
    SELECT COUNT(*) INTO count_id from Employee WHERE ID <>:new.ID;
    IF( count_id >1) THEN
    DELETE FROM Depratment where ID=:old.ID;
    END IF;
    END;
    I am geting an error ORA-04091 table is mutuating, trigger cannot seen it.
    I had tried with package and package body also.. But no luck.
    Thanks

  • Dynamic Configuration is not called in End to end processing

    Hi,
    I am working on scenario Proxy to File. From the source side, they are sending the target file name in the proxy. So for that we are implementing the dynamic configuration.When the proxy is triggered from ECC, the dynamic conf is not called. I am not able to see the Dynamic configuration in SXMB_MONI. But when i send the same payload through RWB, i m able to see the Dynamic conf in SXMB_MIONI and the target file is getting generated.
    Please suggest the solution for this.
    Thanks,
    Soumya.

    Hi,
    I feel the dynamic configuration should be accessed at the runtime and not generated.  We have had similar scenarios where we built the file name at runtime accessing the payload.
    Try using the below UDF for a dummy field on target side and the field carrying file name on source side..
    public String setDynamicFileName(String Key, String Value, Container container)throws StreamTransformationException{
    DynamicConfiguration conf = (DynamicConfiguration) container
        .getTransformationParameters()
        .get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create(
        u201Chttp://sap.com/xi/XI/System/Fileu201D,
        u201CFileNameu201D);
    conf.put(key,value);
    return("");
    This should work as long as you are passing a value in source field.
    Thanks
    Amit

Maybe you are looking for