One Method is not getting called from of one BADI Customer_add_data

Hi,
I am Implementing one method BUILD_TEXT_FOR_CHANGE_DETAIL
I have done coding part also and set breakpoint to check the data.
I went to transaction XD01 and created one customer and check the execution but it didnt reach to the step where i placed the break point.
I checked the  program    SAPMF02D from transaction x01   and searched for the method where its being called . But search for unsuccessful as no reaults has been found.
Please help me in rectifing this issue.
Thanks,
Izaz.

if the question is not clear please tell me i ll write it in detail

Similar Messages

  • Method in custom controller not getting called from view

    Hi experts,
    I have a very strange problem. My web dynpro application works fine on the development portal. i am in the process of deploying to the production portal there is no issue it deploys perfectly without any problems. However i have noticed that some methods in my custom controlller which are called from the view do not run. there is no error message or anything data just doesnt get picked because the execute function which fills the context are in the custom controller methods.
    For some reason the method in the custom controller does not get called even though i'm calling it for the view. I have this problem with two methods. the other methods work without any issue.
    Now i overwrote what i have on production at the moment so am stuck and in need for a solution.
    I have tried undeplying, restarting and re-deploying to no avail. what could be wrong?
    thanks and regards,
    dilanke

    Deal all
    This is the code. basically im calling it from the plug on the detail screen.
    This is the method that doesnt get called anymore.
    wdThis.wdGetGetPurchaseOrderCustController().getPODetail();
    The reportSuccess() works fine.
    regards,
    Dilanke
      public void onPlugFromListView(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onPlugFromListView(ServerEvent)
         try
             String po = wdThis.wdGetGetPurchaseOrderCustController().wdGetContext().currentContextElement().getPO_Id();
              wdContext.currentZGETPODETAILS_INPUTElement().setI_Ebeln(po);
              wdThis.wdGetGetPurchaseOrderCustController().getPODetail();
              wdComponentAPI.getMessageManager().reportSuccess(po);
              String fileName = "F://XML_Downloads//" + po + ".xml";
              IWDResource resource = WDResourceFactory.createResource(new FileInputStream(new File(fileName)),fileName,WDWebResourceType.XML,true);
              wdContext.currentContextElement().setXml_Resource(resource);
         catch(Exception e)
              e.printStackTrace();     
        //@@end

  • EWS Push Notification : Notification Service is not getting called from Exchange Server.

    I have written 2 web services 1) Subscribing to Exchange Server 2) Notification client
    I am able to create subscription to Exchange Server. But from Exchange server my notification client webservice is nt getting called. I am not sure how i am missing out any setting. below is my subscribe code and notification client code.
    Subscribe code :
    ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2010_SP1);
                    service.UseDefaultCredentials = true;
                    service.Url = new Uri(exchangeServerurl);
                    FolderId parentId= FindFolderIdByDisplayName(service, "Order", WellKnownFolderName.PublicFoldersRoot);
                     pushSubscription = service.SubscribeToPushNotifications(
                                new FolderId[] {FindFolderIdfromRoot(service, "EmpCreatealert", parentId)},
                                new Uri(notificationService)         /* The endpoint of the listener. */,
                                1                              /* Get a status event every 5 minutes if no new events
    are available. */,
                                null                           /* watermark: null to start a new subscription. */,
                                EventType.NewMail);
    Notification client : 
     public class Notification : NotificationServicePortType, INotification 
            public SendNotificationResponse SendNotification(SendNotificationRequest request)
                log("Enter SendNotification");
                SendNotificationResponse snr = new SendNotificationResponse();
                snr.SendNotificationResult = new SendNotificationResultType();
                snr.SendNotificationResult.SubscriptionStatus = SubscriptionStatusType.OK;
                return snr;
    Can anyone suggest me what els i should do to get notification client to get called.

    How are you testing this ? Are you just creating posts in the Public Folder or is the folder mail enabled and your sending email to it ?
    Are you getting the heartbeat notifications ?
    Have you tested your endpoint is accessible from the Exchange Server ? are you getting any error logged see
    http://www.infinitec.de/post/2009/06/21/Troubleshooting-Push-notifications-failures.aspx
    Your only subscribing to the NewMail event on public folder I would suggest at least for testing you subscribe to the CreateItem, MoveItem, DeleteItem events as well to see if other event fires when you create and delete Items in the folder. You might also
    want to test something like
    http://blogs.msdn.com/b/emeamsgdev/archive/2012/12/20/ews-push-notification-sample.aspx which is a basic sample
    Cheers
    Glen

  • BADI FI_INT_CUS01 method INT_PRINT_OPTIONS not getting called in RFINTITAR

    Hi,
    I have implemented the BADI FI_INT_CUS01 to set the Print archive mode (Storage mode) to '3' (print & archive) for the FINT transaction (program name: RFINTITAR), using the method INT_PRINT_OPTIONS. But the method INT_PRINT_OPTIONS is not being called in  the program RFINTITAR anywhere. So the BADI implementation is not being called up, so not able to change the Print archive mode to '3'. Please let me know if I'm missing anything.
    Thank you..
    Lakshmi

    Carin,
    Using the method INT_ADD_ITEMS is possible to filter, displaying only the items required.
    See also SAP note 736223 .
    Regards,
    Fabrício Fernandes Aguiar

  • Bookmark method for a page is not getting called

    Hi,
    I am developing a simple ADF application which contains two jspx pages, in JDEVELOPER 11g (build JDEVADF_MAIN_GENERIC_080910.1420.5124).
    I have a commandLink in Page1 which takes me to the Page2.I have a bookmark method for Page2, which gets called when I load the page.
    When I access the Page2 directly,the corresponding bookmark method is getting called.But when I navigates it through commandLink provided in Page1,the bookmark method is not getting called.
    Page1.jspx:
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <f:view>
    <af:document maximized="true">
    <af:form>
    <af:commandLink text="Go to Page2" action="page2" />
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>
    Page2.jspx:
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
    xmlns:bib="http://xmlns.oracle.com/dss/adf/faces">
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <f:view>
    <af:document maximized="true">
    <af:form>
    <af:outputText value="This is Page2"/>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>
    adfc-config.xml:
    <?xml version="1.0" encoding="UTF-8" ?>
    <adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
    <view id="page1">
    <page>/page1.jspx</page>
    </view>
    <view id="page2">
    <page>/page2.jspx</page>
    <bookmark>
    <method>#{mBean.bookMarkMethod}</method>
    </bookmark>
    </view>
    <control-flow-rule>
    <from-activity-id>page1</from-activity-id>
    <control-flow-case>
    <from-outcome>page2</from-outcome>
    <to-activity-id>page2</to-activity-id>
    </control-flow-case>
    </control-flow-rule>
    <managed-bean>
    <managed-bean-name>mBean</managed-bean-name>
    <managed-bean-class>view.ManagedBean</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
    </managed-bean>
    </adfc-config>
    ManagedBean.java:
    public class ManagedBean {
    public ManagedBean() {
    super();
    public void bookMarkMethod() {
    System.out.println("Inside bookmark method");
    Please look into this...........

    Hi Frank,
    I need to provide the af:commandLink inside af:table component and the values which I pass to page2 depends on the row I select at runtime.
    so,I am trying to use ad:setActionListener inside af:commandLink.
    If I use FacesContext.getCurrentInstance.getExternalContext.redirect() inside the actionListener of af:commandLink, I need to extract all the required values in the actionListener.
    Isn't there any way so that, I can pass the values using af:setActionListener inside af:commandLink and a method ( which will initialise the managed bean) will be called when page2 loads ???
    Regards,
    Lokesh.

  • Get method of HtmlPanelGrid is not getting called

    Hi,
    I'm creating components dynamically.
    I have a dropdown. Based on the selection of dropdown, the corresponding values are displayed and the get method of HtmlPanelGrid should be called.
    First time the panel grid getmethod is getting called. But when i change the value of drop down, panel grid get method is not getting called and its not rendering.
    This is the code:
    JSF:
    Drop Down
    <h:panelGroup>
    <t:selectOneMenu id="selectProjectTypes" onchange="sbmitform();" immediate="true" valueChangeListener="#{ProjectController.projectTypeChanged}" value="#{ProjectController.project.selectProjectTypes}">
    <f:selectItem itemLabel="--------------------" itemValue="-1"/>
    <f:selectItems value="#{ProjectController.projectTypesList}"/>
    </t:selectOneMenu>
    </h:panelGroup>
    Panel Grid
    <h:panelGrid columns="2" rendered="#{ProjectController.projects}" id="test" binding="#{ProjectController.defaultValues}" columnClasses="hunderadfifty" cellpadding="5" />
    Controller:
    public void projectTypeChanged(ValueChangeEvent event) throws AbortProcessingException,Exception {
    String nodeTypeId = null;
    String selectedValue = (String)event.getNewValue();
    getSessionCache().addValue("test", 0, "1");
    if(selectedValue.equalsIgnoreCase(selectedValue)){
    try
    // this.getDefaultValues().setRendered(true);
    // defaultValues=this.getDefaultValues();
    } catch (Exception e)
    e.printStackTrace();
    FacesContext.getCurrentInstance().renderResponse();
    Panel Grid Method
    *public HtmlPanelGrid getDefaultValues() throws Exception {*
    String devlues = (String)getSessionCache().getValue("test");
    Application app = FacesContext.getCurrentInstance().getApplication();
    labelList = nodeTypeFieldsService.getFixedFields(this.getRpUserData(), this.getAuthUser());
    HtmlPanelGrid panelGrid = (HtmlPanelGrid)app.createComponent(HtmlPanelGrid.COMPONENT_TYPE);
    for(int i = 0; i<labelList.size(); i++)
    HtmlOutputText heading = (HtmlOutputText)app.createComponent(HtmlOutputText.COMPONENT_TYPE);
    HtmlPanelGroup panelGroup = (HtmlPanelGroup)app.createComponent(HtmlPanelGroup.COMPONENT_TYPE);
    HtmlInputText inputText = (HtmlInputText)app.createComponent(HtmlInputText.COMPONENT_TYPE);
    String fieldHeading =((ProjectField)labelList.get(i)).getFieldHeading();
    int fieldLength = ((ProjectField)labelList.get(i)).getFieldLength();
    String fieldDescription = ((ProjectField)labelList.get(i)).getFieldDescription();
    String fieldType = ((ProjectField)labelList.get(i)).getFieldType();
    inputText.setValueBinding("value", (ValueBinding) app.createValueBinding("#{ProjectController.newProj}"));
    if(fieldType.equalsIgnoreCase("3"))
    heading.setValue(fieldHeading);
    heading.setTitle(fieldDescription);
    inputText.setMaxlength(fieldLength);
    inputText.setSize(fieldLength);
    UIRDDialog dialog = (UIRDDialog)app.createComponent(UIRDDialog.COMPONENT_TYPE);
    dialog.setTitle("Object Type Dialog");
    dialog.setHeight("370");
    dialog.setWidth("350");
    dialog.setUrl("searchObjectTypeDialog.jsf");
    UIRDIconButton iconButton = (UIRDIconButton)app.createComponent(UIRDIconButton.COMPONENT_TYPE);
    iconButton.setType("button");
    iconButton.setTitle("Search for Object Types");
    iconButton.setIcon("/image/icon/portalicon_search.gif");
    iconButton.setActivateDialog("searchObjectTypeDialog");
    panelGroup.getChildren().add(inputText);
    panelGroup.getChildren().add(iconButton);
    panelGroup.getChildren().add(dialog);
    panelGrid.getChildren().add(panelGroup);
    }else
    panelGroup.getChildren().add(inputText);
    heading.setValue(fieldHeading);
    inputText.setMaxlength(fieldLength);
    inputText.setSize(fieldLength);
    heading.setTitle(fieldDescription);
    panelGrid.getChildren().add(panelGroup);
    panelGrid.getChildren().add(heading);
    panelGrid.getChildren().add(panelGroup);
    HtmlCommandButton createButton = (HtmlCommandButton)app.createComponent(HtmlCommandButton.COMPONENT_TYPE);
    createButton.setId("create");
    createButton.setTitle("Create");
    createButton.setValue("Skapa");
    createButton.setAction(app.createMethodBinding("#{ProjectController.saveProject}", null));
    HtmlCommandButton backButton = (HtmlCommandButton)app.createComponent(HtmlCommandButton.COMPONENT_TYPE);
    backButton.setId("back");
    backButton.setTitle("Cancel");
    backButton.setValue("Avbryt");
    backButton.setAction(app.createMethodBinding("#{ProjectController.cancel}", null));
    panelGrid.getChildren().add(createButton);
    panelGrid.getChildren().add(backButton);
    return panelGrid;
    /* } else {
    return null;
    kindly help me out.
    regards
    venkatraman.P

    Hi,
    I'm having the exact same problem, and it's freaking me out!!! The setGridPanel method is always called but not the getGridPanel. This one is only called the first time the page is rendered, and when I change a drodpdownlist it never gets the gridPanel again! I'm using an HtmlPanelGrid. Anyone can help please?
    Thanks in advance,
    Raquel

  • Getter & Setter Method not getting called for a field enhanced through AET

    Hello,
    I am new to SAP CRM 7.0 and working on a requirement.
    A Z-field was added by our functional guy in CRM 7.0 WebGui through AET in the 'Create Opportunity' transaction (Header data).
    Now the requirement is, as soon as the opportunity is created through the WebGui, I should post a document in R/3 and paste that document number back to the enhanced Z-field in opportunity.
    Work done by me:
    I pressed F2 on the enhanced Z-field in the WebGui screen and took the details of view, component name etc. After this I went to normal SAP CRM system and open tcode "BSP_WD_CMPWB", located the corresponding view "BT111H_OPPT/Details" and right clicked & enhanced the same.
    Then I opened the structure of this view, expanded context node, located context "BTOPPORTH" and inside this, located my Z-attribute. Now right clicked on the Z-attribute & selected the option "Generate SETTER & GETTER Methods" and these were generated successfully.
    Problem:
    The problem is even after putting external break points in these methods, these methods are not getting called while creating, modifying & displaying the Opportunity in WebGui.
    I hope that for the requirements that I have, I have to do the coding in "Getter & Setter" methods. But since these are not getting called, I am unable to proceed.
    Please help/suggest how to achieve this.
    Thanks in anticipation.
    Best Regards,
    Rahul Malani

    Hi,
    If you can see the field in UI and still get_ method is not being triggered then try to regenerate these methods. If it still doesn't work then please look for SAP notes or raise an OSS.
    There should be some note for the issue you faced.
    please refer:
    Help Needed immediately - AET getter setter methods not getting triggered
    Regards,
    BJ

  • Am I the only one getting calls from 253-802-0308 about malicious file downloads after updating FIREFOX?

    After updating Firefox I start getting calls from 253-802-0308 (International Telcom in Auburn Washington, found using 411.com). The report that they are getting messages that my Windows PC is reporting the downloading of malicious files. I don't think that there is a connection with Mozilla but it only started after I ran the last 2 or 3 updates to Firefox. Searches on Google and other search engines don't show logical connections to the phone calls and the problem being reported to me. None of my anti-virus programs, Ccleaner, DEFENDER & AVG pickup and malicious files. I'm curious about who they may be because when I question them during the calls they end up hanging up on me. Just wondering if similar problems are being reported.

    That is a reported scammer set-up. Read some of the following from actual phone customers. It is not related to your Firefox updates. I have gotten a few of these types of calls on my '''''unlisted '''''home phone number over the past several years. They use a dialer, usually automatic and sequential number dialing. Get a loud whistle to blow into the phone mouth piece or one of those loud air horns from the hardware/sporting good store; this kind of trash deserves broken ear drums.
    *https://encrypted.google.com/search?q=253-802-0308&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You need to update some plug-ins:
    *Plug-in check: https://www-trunk.stage.mozilla.com/en-US/plugincheck/
    *Adobe Shockwave for Director Netscape plug-in: [https://support.mozilla.com/en-US/kb/Using%20the%20Shockwave%20plugin%20with%20Firefox#w_installing-shockwave Installing ('''''or Updating''''') the Shockwave plugin with Firefox]

  • ACE for CRM 2007-AFO method not getting called!

    Hi Experts,
    I am trying to implement ACE for CRM 2007.The only issue/concern is the Actor From Object(AFO) method is not being called even once.
    I was assuming that every method is called at the time of right's activation.
    I placed breakpoints in all the 5 methods, but only method Actor from User(AFU) and Object by Filter(OBF) were being called.
    Can anybody suggest at what point the method-Get Actors From Objects is called?
    Thanks and Regards,
    Rohit

    Hi Rohit,
    the method Actors-For-Object isnt used any more by SAP. Always use method Actors-For-Objects.
    This method should be called, when objects pass the method "object_by_filter" (runtime --> check_object..., activation --> get_object..).
    Perhaps there are no objects passing your OBF-methods? Can you check the output of your method?
    Regards,
    Mario

  • L2L issue, the tunnel does not getting up from one direction

    Hello,
    We have configure a L2L vpn between Asa and 1841 router. We are facing this issue.
    The tunnel is not getting up from the 1841 site never. When we are trying to generate traffic from the ASA site the tunnel is up and we can see decryps and encryps packets.
    Router 1841 Config:
    crypto isakmp policy 100
    encr 3des
    hash md5
    authentication pre-share
    group 2
    crypto isakmp key * address 213.249.XX.XX
    crypto ipsec transform-set XXXXX esp-3des esp-md5-hmac
    crypto map EKO_BG 100 ipsec-isakmp
    set peer 213.249.x.x
    set security-association lifetime seconds 28800
    set transform-set XXXXX
    set pfs group2
    match address 111
    interface FastEthernet0/0.2
    encapsulation dot1Q 3338
    ip address 212.200.30.130 255.255.255.252
    ip nat outside
    ip virtual-reassembly
    crypto map XXXXX
    ip nat pool nat_pool 93.87.XX.XX 93.87.XX.XX prefix-length 29
    ip nat inside source list 101 pool nat_pool overload
    ip nat inside source static 10.70.2.10 93.87.18.161
    ip nat inside source static 10.70.25.10 93.87.18.162
    ip nat inside source static 10.70.36.5 93.87.18.163
    ip nat inside source static 10.70.39.10 93.87.18.164
    ip nat inside source static 10.70.5.10 93.87.18.165
    access-list 101 deny   ip 10.70.200.0 0.0.0.255 any
    access-list 101 permit ip 10.70.0.0 0.0.255.255 any
    access-list 111 permit ip 10.70.200.0 0.0.0.255 172.40.10.100 0.0.0.3
    Asa Config:
    access-list inside_nat0_outbound extended permit ip 172.40.10.100 255.255.255.252 10.70.200.0 255.255.255.0
    access-list outside_cryptomap_320 remark xxxxxxx
    access-list outside_cryptomap_320 extended permit ip 172.40.10.100 255.255.255.252 10.70.200.0 255.255.255.0
    access-list inside_pnat_outbound_V5 extended permit ip host 10.8.x.x 10.70.200.0 255.255.255.0
    pager lines 24
    nat (inside) 9 access-list inside_pnat_outbound_V5
    crypto ipsec transform-set xxxxx esp-3des esp-md5-hmac
    crypto map mymap 150 match address
    crypto map mymap 150 set pfs
    crypto map mymap 150 set peer XXXXXX
    crypto map mymap 150 set transform-set XXX
    crypto map mymap 150 set security-association lifetime seconds 28800
    crypto map mymap 150 set security-association lifetime kilobytes 10000
    crypto map mymap 320 match address outside_cryptomap_320
    crypto map mymap 320 set pfs
    crypto map mymap 320 set peer XXXXX
    crypto map mymap 320 set transform-set XXXXX
    crypto map mymap 320 set security-association lifetime seconds 28800
    crypto map mymap 320 set security-association lifetime kilobytes 4608000
    crypto map mymap 65535 ipsec-isakmp dynamic outside_dyn_map
    crypto map mymap interface outside
    isakmp policy 150 authentication pre-share
    isakmp policy 150 encryption 3des
    isakmp policy 150 hash md5
    isakmp policy 150 group 2
    tunnel-group 212.200.x.x type ipsec-l2l
    tunnel-group 212.200.x.x ipsec-attributes
    pre-shared-key *
    Please advise.
    Thank you.

    hello Ashley,
    thank you for this info. Now from the router site the tunneling is getting up and I can see packets but althought the tunnel is up it can not make telnet to our server (172.40.10.100) on a specific port.
    We from ASA site can ping router Site and make telnet.
    Any ideas???
    Thank you all from your answers!

  • Server side function not get called after dispatching cairngorm event second time on same page

    Hi All,
    I am facing a urgent issue regarding cairngorm event. Actually my page contain 3 button add,delete,save
    and  clicking of any button I do the respected functionality. For ex:
    I click the add button & on clicking of add button I fire a cairngorm evnt & after getting response from server side that the record is added
    I displayed a message that the record is added & update the data source.
    After addition of the record , with out going to other page if I perform the same functionaly(Like adding another record) on same page the cairngorm
    event not call the server side function  -  after debugging I find out that cairngorm event  reach to the corresponding excutecommand function & called that function  but it is not calling my server side function & I also din't get any error message .
    I dont know why  the server side function not get called?. similarly if I try for delete or update case the same things happend. Only for the first time it works properly but not for the second  time.
    Could any of  you please tell me why the cairngorm event not calling the server side function.
    Thank you for your kind assistance.
    Regards,
    Ujjwal

    Okay, well I think I've worked out the problem.
    In ASP.NET we would typically bind repeating controls such as DataLists and Repeaters manually using <i>Control</i>.DataBind(), because we're usually using a separate class library containing collections for our objects. Seems the SAP Table control doesn't like this approach.
    I changed the code so that the databinding is specified on the control, and call the Page's DataBind() method and it all worked fine.
    One tip: because the collection I used to bind to is in a separate class library, I receieved a <i>BC306523: Reference required to assembly MyAssemblyName...</i> message, even though I had a reference to the assembly in my project and the DLL is being properly deployed. To fix this, you must include the following directive at the top of the component's ASCX file:
    <%@ Assembly Name="AssemblyName" %>

  • CommandButton actions not getting called when "disabled" element present

    MyObjectForm.jsp contains commandButtons for "add", "update" and "delete" that are enabled/disabled according to the value of the bound id field.
    MyObjectForm.jsp
    <html>
    <body>
    <f:view>
    <h:form id="create">
    <h:inputHidden id="id" value="#{myObjectBean.id}" />
    <h:panelGrid columns="3" border="0">
    Name: <h:inputText id="name"
    requiredMessage="*"
    value="#{myObjectBean.name}"
    required="true"/>
    <h:message for="name"/>
    // other fields
    <h:commandButton id="add"
    value="Add" disabled="#{myObjectBean.id!=0}"
    action="#{myObjectBean.add}"/>
    <h:commandButton id="update"
    value="Update" disabled="#{myObjectBean.id==0}"
    action="#{myObjectBean.update}"/>
    <h:commandButton id="delete"
    value="Delete" disabled="#{myObjectBean.id==0}"
    action="#{myObjectBean.delete}"/>
    <h:commandButton id="delete2"
    value="Delete (no disabled element)"
    action="#{myObjectBean.delete}"/>
    </h:form>
    </f:view>
    </body>
    </html>In its managed bean, MyObjectBean, if an id parameter is found in the request, the record is read from the database and the form is populated accordingly in an annotated @PostConstruct method:-
    MyObjectBean.java
    public class MyObjectBean {
    private int id;
    /** other properties removed for brevity **/
    public MyObjectBean() {
    LOG.debug("creating object!");
    @PostConstruct
    public void init() {
    String paramId = FacesUtils.getRequestParameter("id");
    if(paramId!=null && !paramId.equals("")){
    getById(Integer.parseInt(paramId));
    LOG.debug("init id:"+id);
    }else{
    public String delete(){
    LOG.debug("delete:"+id);
    MyObjectVO myObjectVO = new MyObjectVO();
    ModelUtils.copyProperties(this, myObjectVO);
    myObjectService.removeMyObjectVO(myObjectVO);
    return "";
    public String add(){
    LOG.debug("add");
    MyObjectVO myObjectVO = new MyObjectVO();
    ModelUtils.copyProperties(this, myObjectVO);
    myObjectService.insertMyObjectVO(myObjectVO);
    return "";
    public String update(){
    LOG.debug("update:"+id);
    MyObjectVO myObjectVO = new MyObjectVO();
    ModelUtils.copyProperties(this, myObjectVO);
    myObjectService.updateMyObjectVO(myObjectVO);
    return "";
    public void getById(int id){
    MyObjectVO myObjectVO= myObjectService.findMyObjectById(id);
    ModelUtils.copyProperties(myObjectVO, this);
    /** property accessors removed for brevity **/
    }When no parameter is passed, id is zero, MyObjectForm.jsp fields are empty with the "add" button enabled and the "update" and "delete" buttons disabled.
    Completing the form and clicking the "add" button calls the add() method in MyObjectBean.java which inserts a record in the database. A navigation rule takes us to ViewAllMyObjects.jsp to view a list of all objects. Selecting an item from the ViewAllMyObjects.jsp list, adds the selected id to the request as a paramter and a navigation rule returns us to MyObjectForm.jsp, populated as expected. The "add" button is now disabled and the "update" and "delete" buttons are enabled (id is no longer equal to zero).
    Action methods not getting called
    This is the problem I come to the forum with: the action methods of commandButtons "update" and "delete" are not getting called.
    I added an extra commandButton "delete2" to the form with no "disabled" element set and onclick its action method is called as expected:-
    commandButton "delete2" (no disabled element) - works
    <h:commandButton id="delete2"
    value="Delete (no disabled element)"
    action="#{myObjectBean.delete}"/>Why would "delete2" work but "delete", not?
    commandButton "delete" (disabled when id is zero) - doesn't work
    <h:commandButton id="delete"
    value="Delete" disabled="#{myObjectBean.id==0}"
    action="#{myObjectBean.delete}"/>The obvious difference is the "disabled" element present in one but not the other but neither render a disabled element in the generated html.
    Am I missing something in my understanding of the JSF lifecycle? I really want to understand why this doesn't work.
    Thanks in advance.
    Edited by: petecknight on Jan 2, 2009 1:18 AM

    Ah, I see (I think). Is the request-scoped MyObjectBean instantiated in the Update Models phase? If so then the id property will not be populated at the Apply Request Values phase which happens before this, making the commandButton's disabled attribute evaluate to true.
    Confusingly for me, during the Render Response phase, the id property is+ set, so the expression is false (not disabled) giving the impression that the "enabled" buttons would work.
    So, is this an flaw in my parameter passing and processing code or do you see a work around?

  • I'm using same icloud and same apple ID on two iphones. Now i get calls from same number on both iphones at the same time. How to turn off that?

    I'm using same icloud and same apple ID on two iphones. Now i get calls from same number on both iphones at the same time. How to turn off that?

    Apple ID's are not device specific, so when you changed it on the iPad 2 it changed it on the iPhone 4 as well, since it's the same account still. What you need to do is create a second Apple ID (so you'll have two accounts, one for iPhone 4 and a seperate one for iPad 2).
    To create a new Apple ID on your iPad 2:
    1) Go into Settings > Store.
    2) If you are already signed in, tap your Apple ID on the screen and you will be given a few options, one of which is to sign out of your account.
    3) After you sign out, now click the "Sign in" button.
    4) Tap "Create New Apple ID" and follow the instructions on-screen.

  • This method should not be called anymore. The client was already released i

    Hi,
    while configuring Business Packager for Projects 50.3 fo, we made few changes in R/3 side as per the documentation. after that we are getting following error in portal
    "This method should not be called anymore. The client was already released into the pool or the pool entry was deleted"
    all the chages were reverted in R/3 system still we are getting the same error.
    Can any one help on this issue....
    Thanks in advance and for early responce higher marks would be awarded!!!..     
    Regards
    Ravi Sankar Karri

    Hi,
    Well there were errors in how stop works:
    "Stopping a thread with Thread.stop causes it to
    unlock all of the monitors that it has locked (as a
    natural consequence of the unchecked ThreadDeath
    exception propagating up the stack). If any of the
    objects previously protected by these monitors were in
    an inconsistent state, the damaged objects become
    visible to other threads, potentially resulting in
    arbitrary behavior. "
    I do understand that you want to have something like
    killTheTreadIDontCareAboutConcequences-method, but
    it's better to let all your methods that you want to
    be able to terminate take a timeout argument, and deal
    with the termination in the method. (Close the
    sockets/streams etc that you are blocking on).
    /KajThe point is, it is not always possible to make those blocking methods stop, via some magic "timeout" thingamabob. The bottom line is still that the blocking methods were written incorrectly to begin with (to possibly block indefinitely), so one cannot come up with an across-the-board solution, other than getting the root cause fixed in the first place. However, one is not always in control of fixing the root cause.

  • Not getting Response from RFC

    Hi,
        I am doing RFC to File. I could generate the FILE successfully. But I am not getting Response from RFC. I am getting empty payload. I am doing with out BPM. I did succesfully File-RFC-File. but here RFC is the sender. I have some doubts  in defining Interface mapping and Message Mapping. Is this a Syscronous scenario by default ?
    If I want to get the resonse of RFC to a file. How many Receivers and Senders do i need to create?
    Regards,
    Varun
    Edited by: Varun on Sep 9, 2008 1:00 PM

    hi,
    Map Rfc.response to the File; hence rfc sender adapter and file receiver adapter..one sender n 1 receiver.Remember:
      1. In the report that makes the call to XI , make sure that you use call RFC in a background task.
      2. Make sure you use Commit Work at the end of the report.
    Follow:
    Send RFC to SAP XI – Asynchronous
    Also pls visit
    Re: RFC to FILE
    for the same scenario.
    Thanks,
    Durga
    Edited by: NagaDurga Nannapaneni on Sep 9, 2008 10:55 AM

Maybe you are looking for