ActionEventListeners are not getting called for buttons within facets

Hi,
I see some wiered issue with ADF Facet Switcher. I have the following code in a JSF page fragment (.jsff) and it has got a mixture of some client side HTML elements like p, div , h2 etc for styling ..along with these ADF components.
<af:switcher facetName="#{backingBeanScope.NavigationBean.navigationNodeType}" id="facettype" rendered="true" defaultFacet="orphan">
<f:facet name="node">
<af:panelGroupLayout layout="vertical" id="pgnode" visible="true">
<af:forEach items="#{backingBeanScope.NavigationBean.currentNode.children}"
var="childNode">
<af:commandLink text="#{childNode.title}"
inlineStyle="font-weight:#{backingBeanScope.NavigationBean.currentNode.title eq childNode.title ? 'bold' : 'normal'};"
action="pprnav"
actionListener="#{backingBeanScope.NavigationBean.handleNavigation}"
partialSubmit="true"
visible="true"
id="cmdlinknode">
<af:setActionListener from="#{childNode}"
to="#{backingBeanScope.NavigationBean.currentNode}"/>
<f:attribute name="node"
value="#{backingBeanScope.NavigationBean.currentNode}"/>
</af:commandLink>
</af:forEach>
</af:panelGroupLayout>
</f:facet>
<f:facet name="leaf">
<af:panelGroupLayout layout="vertical" id="pgleaf" visible="true">
<af:forEach items="#{backingBeanScope.NavigationBean.parentNode.children}"
var="childNode">
<af:commandLink text="#{childNode.title}"
inlineStyle="font-weight:#{backingBeanScope.NavigationBean.currentNode.title eq childNode.title ? 'bold' : 'normal'};"
action="pprnav"
actionListener="#{backingBeanScope.NavigationBean.handleNavigation}"
id="cmdlinkleaf" visible="true"
partialSubmit="true">
<af:setActionListener from="#{childNode}"
to="#{backingBeanScope.NavigationBean.currentNode}"/>
<f:attribute name="node"
value="#{backingBeanScope.NavigationBean.currentNode}"/>
</af:commandLink>
</af:forEach>
</af:panelGroupLayout>
</f:facet>
<f:facet name="orphan">
<af:panelGroupLayout layout="vertical" id="pgorphan" visible="true">
<af:goLink destination="" text="Back to previous page" id="orphanlink"></af:goLink>
</af:panelGroupLayout>
</f:facet>
</af:switcher>
But interstingly the command link or button inside these switcher or facets doesnot invoke any actionlisteners or action ....Tried many things and wasted much time to actually figure out the issue is only for the command links or buttons placed in the switcher...If i place something after the switcher...
<af:commandLink text="#{'clickme'}"
inlineStyle="bold"
action="pprnav"
actionListener="#{backingBeanScope.NavigationBean.handleNavigation}"
id="cmdlinktest" visible="true"
partialSubmit="true">
<f:attribute name="node"
value="#{backingBeanScope.NavigationBean.currentNode}"/>
</af:commandLink>
Then the action listeners or actions are getting invoked properly....Can you please tell what is wrong with the above snippet? I am using Jdeveloper 11.1.1.4 tech stack.
Regards
Prasath.C
Edited by: Prasath C on 05-Aug-2011 03:08
Edited by: Prasath C on 05-Aug-2011 03:09
Edited by: Prasath C on 05-Aug-2011 03:12

perhaps the XML parser doesn't like the format of your output. Is it formatted XML? I would output unformatted XML (without newlines, tabs and spaces between elements, etc.) and try again.
Perhaps the character encoding used isn't liked by the XML parser. Are you providing any character encoding to begin with? (UTF-8 for example)
It is hard to tell what could be wrong from such an ambiguous error message. The best thing you can do is try a flash forum, or poke around with the stuff until something works. You could also try putting some logging in the servlet to at least know that it is being called by the flash application.

Similar Messages

  • 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

  • Concurrent timers are not getting invoked for same timer inf

    Do weblogic has some parameter in weblogic deployment descriptor like numAlarmThreads="5" minThreads="1" maxThreads="10" etc
    becoz I am facing one problem relating to timer service in EJB
    Problem Scope: Concurrent timers are not getting invoked for same timer info (Serializable object containing the details of timer).
    Details : I am implementing EJB timer 2.1 and when ejbTimeOut execution of one timer exceeds the interval time, next timeout doesn’t happens till the execution of first ejbTimeOut completes . Ideally the timers should behave in the manner that on every interval the ejbTimeOut should occur no matter the previous timeout is completed or not
    for example : consider there is timer T whose timeout occurs every minute, and on every timeout it calls process P, so on every minute ideally container should give call to process P irrespective of the previous status of P (call is complete or not). In our case next call to process P is not happening after timeout also since it is waiting for previous call to P to get completed

    You should also cross-post this in the WebLogic EJB forum:
    WebLogic Server - EJB

  • Concurrent timers are not getting invoked for same timer info (Serializable

    Problem Scope: Concurrent timers are not getting invoked for same timer info (Serializable object containing the details of timer).
    Details : I am implementing EJB timer 2.1 and when ejbTimeOut execution of one timer exceeds the interval time, next timeout doesn’t happens till the execution of first ejbTimeOut completes . Ideally the timers should behave in the manner that on every interval the ejbTimeOut should occur no matter the previous timeout is completed or not
    for example : consider there is timer T whose timeout occurs every minute, and on every timeout it calls process P, so on every minute ideally container should give call to process P irrespective of the previous status of P (call is complete or not). In our case next call to process P is not happening after timeout also since it is waiting for previous call to P to get completed

    You should also cross-post this in the WebLogic EJB forum:
    WebLogic Server - EJB

  • Concurrent timers are not getting invoked for same timer info

    Problem Scope: Concurrent timers are not getting invoked for same timer info (Serializable object containing the details of timer).
    Details : I am implementing EJB timer 2.1 and when ejbTimeOut execution of one timer exceeds the interval time, next timeout doesn’t happens till the execution of first ejbTimeOut completes . Ideally the timers should behave in the manner that on every interval the ejbTimeOut should occur no matter the previous timeout is completed or not
    for example : consider there is timer T whose timeout occurs every minute, and on every timeout it calls process P, so on every minute ideally container should give call to process P irrespective of the previous status of P (call is complete or not). In our case next call to process P is not happening after timeout also since it is waiting for previous call to P to get completed

    You should also cross-post this in the WebLogic EJB forum:
    WebLogic Server - EJB

  • Proposals are not getting generated for BOM items in MD50

    Hi Gurus,
    I have maintained strategy 50 in MRP for header material , Item category gp as LUMF & maintained consumption parameters in material master .
    For dependent requirements i have maintained BOM for production & sales usage, Strategy is blank as it is customer specific component , Item category gp is NORM , individual requirements i.e 1 in MRP 4 view.
    MRP type is PD in both materials.
    When i run a MRP thru' MD50 after getting customer order.
    it is not planning my dependent requirements i.e. proposals are not getting generated for dependent requirements (BOM materials).
    Please let me know the solution.
    Thanx in advance
    Regards,
    Nagraj Vasmate

    try to use strategy 20

  • We are not getting email for any of the two new profiles in Production environment

    We are not getting email for any of the two new profiles.
    The new rules for sending e-mail work when using the initial profile.
    Only works for F9 and choose manually the profile is being sent.
    But siebel writes the log of both the \ BIN \ sent as if it had sent.
    operation:
    Standards (Policies) were created in the Activities (S_EVT_ACT) and Contacts table (S_CONTACT). When Standards (Policies) are reached trigger actions (Actions). These actions are linked to sending emails.

    The SMTP Adapter don't just "through away" messages. If your Tracked Service Instances shows that a message was sent through the Port, I am pretty sure that a mail was indeed sent. 
    -Are you using Static- or Dynamic Port?
    Can you try to set the Send Port in "Stopped" state, and then send a message to it. Examine the message suspended in BizTalk, and if everything looks ok, then start the Port again and check that the message has disappeared from both suspended and running
    instances in the Group Hub.
    If so, quickly check the mail box, make sure that no spam-filters etc. are messing up your test.
    Morten la Cour

  • DidReceiveData not getting called for consuming a SOAP webservice

    I am trying to access a webservice in iphone. didReceiveResponse connectionDidFinishLoading is getting called however didReceiveData is not getting called. I checked NSHTTPURLResponse allHeaderFields where Content-length is 0 and statusCode is 400. I am not getting why I am getting this HTTP status code. Can someone please help me in finding this error. Here is my code:
    - (IBAction)buttonClickedid)sender {
    NSString *soapMsg =
    [NSString stringWithFormat:
    @"<?xml version=\"1.0\" encoding=\"utf-8\"?>\n"
    "<soap:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xlmns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">\n"
    "<soap:Body>\n"
    "<GetAllCarsJson xmlns=\"http://cscserver2.carrollu.edu/tshah2/\">\n"
    "</GetAllCarsJson>\n"
    "</soap:Body>\n"
    "</soap:Envelope>"];
    //---print it to the Debugger Console for verification---
    //NSLog(@"%@",soapMsg);
    NSURL *url = [NSURL URLWithString:@"http://cscserver2.carrollu.edu/tshah2/CarService.asmx"];
    NSMutableURLRequest *req = [NSMutableURLRequest requestWithURL:url];
    //---set the headers---
    NSString *msgLength = [NSString stringWithFormat:@"%d",[soapMsg length]];
    [req addValue:@"text/xml; charset=utf-8" forHTTPHeaderField:@"Content-Type"];
    [req addValue:@"http://cscserver2.carrollu.edu/tshah2/GetAllCarsJson" forHTTPHeaderField:@"SOAPAction"];
    [req addValue:msgLength forHTTPHeaderField:@"Content-Length"];
    //---set the HTTP method and body---
    [req setHTTPMethod:@"POST"];
    [req setHTTPBody: [soapMsg dataUsingEncoding:NSUTF8StringEncoding]];
    //[activityIndicator startAnimating];
    conn = [[NSURLConnection alloc] initWithRequest:req delegate:self];
    [conn start];
    NSLog(@"Connection = %@", conn);
    if (conn)
        //webData = [[NSMutableData data] ];
        webData = [[NSMutableData alloc] initWithCapacity:2048];
        //[[NSMutableData data] retainArguments];
    - (void) connection NSURLConnection *) connection didReceiveResponse NSURLResponse *)response
        NSLog(@"soapMsg1: %d", [webData length]);
        //webData = [[NSMutableData alloc] initWith:
        [webData setLength:0];
    - (void) connection NSURLConnection *) connection didReceiveData NSData *)data
        NSLog(@"DONE1111");
        [webData appendData:data];
        //NSLog(webData);
    - (void) connection NSURLConnection *) connection didFailWithError NSError *)error
        NSLog(@"ConnectionFailed");
        //[webData release];
        //[connection release];
    - (void) connectionDidFinishLoading NSURLConnection *) connection
        NSLog(@"DONE. Received Bytes: %d", [webData length]);
        NSString *theXML = [[NSString alloc] initWithBytes:[webData mutableBytes] length:             [webData length] encoding:NSUTF8StringEncoding];
        //shows the XML
        NSLog(theXML);
        //[theXML release];
        //[activityIndicator stopAnimating];
        //[connection release];
        connection = nil;
        webData =nil;

    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

  • SAP Script is not getting called for GI Output type WA03

    Dear All,
    I have designed one SAP script for goods issue output type WA03 for Tcode Migo.
    I have assigned the form name in NACE. But the problem is it is not picking my form, It is giving some Express document error. I am not able to know how the transaction is picking up the form since it is not going to the standard program even though i have kept breakpoint there. Can anybody let me know how the print program (SAPM07DR)is getting called from MIGO.
    print program  name is SAPM07DR.  Standard Script name is WASCHEIN.
    Regards,
    Ravindra Jain

    HI Ravi,
    Did you check the entry in NACE. I think you need to configure the Driver program and sap script there. just try to put a session break point and check why it is not picking.
    Thanks,
    Chidanand

  • Bex Customer Exit: I_STEP 2,3 are not getting called up?

    Hi All,
    I need a small help in BEX variable customer exit. I am trying to give an error message on what user had entered on the selection screen. I kept several breakpoints. But I understand that this particular code is calling up only when 'I_STEP = 1'. For I_STEP 2 and 3, the follwong code is not being called? I have seen so many validations happening on user entered values with error messages.. But I am not sure where I am missing?
    Here is my sample code.. can any one extend the help?
    The original requirement is to 'modify' what user had entered. But I understand that SAP is not allowing to modify what user had input.. So thought of giving a small error message.. and not able to do that also.. so I am in this Forum..
    thanks,
    Hari
    When 'ZCATID2'.
    *data : l_year1(4) type n,
          l_year2(4) type n,
          l_text(12).
    data: l_cat(10).
    *IF I_STEP <> 2.
    *RAISE no_processing.
    *ENDIF.
    IF I_STEP EQ 3.
      break-point.
      READ TABLE I_T_VAR_RANGE WITH KEY VNAM    =  'ZCATID2'
      INTO  LOC_VAR_RANGE .
      if LOC_VAR_RANGE-LOW CP '*'.
      message i999(zz) with 'Test'.
      endif.
      break-point.

    Thanks Roberto for this good document to clear my fundamentals. I think I understand the mistake on my code.
    Thanks verymuch for your timely help.
    Best Regards,
    Hari
    ( I looked to give more points to you but it allwoed me only 10 points to give you.). Have a nice day!!

  • Variables are not getting changed for rs_pres_plan report

    Hi Guys,
    I'm trying to use the RS_prec_plan report for broadcasting but my variables which I'm selecting in as a varaint in workbook is not getting replaced.
    Its taking from the saved view of the workbook.I read note 1154928 which explains the same issue but no luck any help would be appreciated.
    Thanks
    R

    Can anybody pls provide their suggestions?
    Thanks in Advance!

  • Purchase Requisition are not getting generated for External Procured Materi

    Hello PP Guru,
    The is a issue which the client is facing.
    The requirement is as follows
    There is material which is externally procured.
    They do the MRP run by using MDBT.
    Now the problem is Planned orders are getiing generated instead of Purchase requisition.
    It should always generate PR instead of planned Order.
    When the check in ME57 the PR is not reflecting, but when the check in MD16 the planned orders are getting reflected.
    Every time they have to convert the Planned order to Purchase Requisition in MD16.
    So can you please let me know as to why is this problem.
    Thanks & Regards
    Nilesh

    In the variant which you use in MDBT, modify the value for Create purchase req. to 1. Now if you execute MRP with the new / modified variant system will always trigger PR irrespective of the opening period.
    But if you want PR within opening period & outside of it should be planned orders, then maintain 2.

  • EXIT_SAPLV01Z_013 for Batch master Update is not getting called for MSC1n

    Hello,
    I am facing the same issue I want to update a date 6 field while the user create a Batch thurogh MSC1n.
    I am using the EXIT_SAPLV01Z_013 to update the same.
    But This Exit is not called as there is a condition which fails while this exit is called thru FM VB_CREATE_BATCH.
    the field NO_CFC_CALLS is set to "X" in Include LCHRGF02.
    CALL FUNCTION 'VB_CREATE_BATCH'
    EXPORTING
    ymcha = akt_mchx
    new_lgort = dfbatch-lgort
    bypass_lock = 'X'
    kzcla = ' '
    xkcfc = ' '
    no_check_of_qm_char = 'X'
    no_change_document = ' '
    check_external = space
    check_customer = space
    no_cfc_calls = 'X'.
    Can you please help how do we resolve this issue i am using SAP 4.7.
    Thanks
    Solanki Ritesh

    hello
    Any suggestion do we have any OSS note for the same???
    thanks
    Solanki Ritesh

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

  • Task in Lookup.USR_PROCESS_TRIGGERS not getting  called

    Hi,
    We have created a process task adapter and copied this in Lookup.USR_PROCESS_TRIGGERS. This adapter works only when some change happens in User Form in a particular field (say First name).This adapter is not getting called for the users who are created through Bulk Upload. Although it is getting called when I am creating a user manually.
    Regards,
    Shubhra

    This the issue with 11.1.1.5 version of OIM. It doesn't trigger on trusted recon. install BP02 for resolving this issue. We had resolved this by installing this patch
    --nayan                                                                                                                                                                                                                                                                                                                                                                   

Maybe you are looking for

  • Beans through jsp

    hi, i' m trainee developer and working in struts. i'm totally novice in this regard. my pl asked me to develop an application on struts. i'm getting problem while using bean through jsp. i'm writing code: <jsp:useBean id="myBean" class="MyBean" type=

  • I want to shuffle my streaming movies to play one after the other.

    How to do this?

  • Apps are frozen on waiting

    I am updating apps and there are about 10 Of them frozen on "waiting"... I can't even delete them ... How do I fix the problem?

  • SRM 4.0 Send PO to XI

    Hello! Could you give me any advice how to configure PO replication in SPRO (BADI) and with FM is appropriate for it? I have found FM's: BBP_SAPXML1_PO_SEND BBP_XI_PO_SEND BBP_PO_SEND BBP_SAPXML1_PO_SEND generates PurchaseOrderRequest_Out Message BBP

  • How can I make the editor photoshop work

    how can I make the editor photoshop work? it can not work at all. please help me . thanks