Disabled attribute on link causes Return Listener disfunctioning

Hello,
Using JDev 11g Studio Edition Version 11.1.2.1.0
I have a af:commandImageLink which, when clicked on, opens a Dialog.
On the af:commandImageLink, a returnListener is defined and there is an EL expression on the disabled attribute.
When the EL expression for the disabled attribute resolves to true during the LifeCycle processing, the returnListener isn't called, although the commandImageLink was enabled at the start of the LifeCycle processing that initiated the display of the Dialog in the first place.
Is this expected behaviour, or is this a bug?
Steven

Frank,
I understand that the dialog open and return listener aren't executed in the same request lifecycle.
It seems that I didn't correctly explained the issue I'm facing.
Here is a second attempt to describe the problem...
1. The user clicks on the af:commandImageLink which results in a modal dialog being displayed.
2. The user makes some changes within the modal dialog. The changes he made will cause the EL expression on the af:commandImageLink disabled attribute to evaluate to true.
3. The changes are commit and the dialog is closed.
Problem: The return Listener isn't called, since the disabled attribute on the af:commandImageLink is true.
This seems like a bug to me.
I would expect that the returnListener registered on the UI widget that causes the dialog open event, to be called when the dialog is closed. Even if the UI widget is disabled after the dialog is closed.
The framework should honour the state of the UI widget at the time the dialog open event is raised to decide if the returnListener should be called.
Does this make any sense?
Steven.
Edited by: Steven Janssens on 5-mrt-2012 4:27 - Relaunching question

Similar Messages

  • Task Flow Return Listener not fire when FK association fields set manually

    Guys and Gals,
    I've spent two solid days on this and I'm not sure why my task flow return listener is not firing.
    I start by selecting a row in a table. I then click a "Convert" button which converts the Quote document into a Sales document. I then press Submit which commits the data and the task flow exits. At this point my task flow return listener should fire. It does not. This return listener would, in theory, refresh the visible Quotes table and update the selected Quote's status to "Closed".
    The Quote's "Closed" status is a transient attribute which is calculated by looking at the Sales' document Qty attribute. If the Quote Qty = Sales Qty, then the status is closed. This can be measured by utilizing an association where
    Sales' BaseRefDocId = Quotes' OrderId
    Sales' BaseRefRowId = Quotes' RowId
    Setting these two row attributes represent the association linking a Quote document row to a Sales document row.
            nvp.setAttribute("BaseRefDocId", baseRow.getAttribute("OrderId"));     // Take the Quote Id and put in the Sales' Id ref field
            nvp.setAttribute("BaseRefRowId", baseRow.getAttribute("Row_Id"));    // Take the Quote Row Id and put it in the Sales Row Id ref field
            targetRow.createAndInitRow(nvp);                                                    // Insert the new referenced row into the Sales' DocumentAfter two days of running tests, it is the code above that keeps the return listener from firing and the transient attribute from refreshing on the page. These fields are not mandatory, but are necessary for the Quotes status to change to closed. Simply leaving these lines of code out allows my task flow return listener to refresh correctly, albeit with an incorrect Quote status.
    My expression language statements, however, evaluate correctly irregardless of table refresh. If I refresh the table manually, the status will then display the correct value. All other methods of manipulating the table function correctly i.e. task flow return statements work.
    I'm pretty sure it has something to do with some kind of silent association / view link error blocking the task flow from firing behind the scenes.
    Does anyone have any ideas? Using JDev 11.1.2.1.0.
    Will

    Hi Frank,
    Yeah, I thought it was really weird as well. I banged my head up against the wall again today and finally managed to semi-fix the problem.
    The "Convert" table toolbar button has a "Disabled" attribute that I've been setting with something like #{bindings.QuoteIterator.currentRow == null}. If I take this out, everything works fine. However, if I put it in, the task flow will not return. What's screwy is that I have several of these "Quote" tables for other data collections such as Sales, Deliveries, Invoices, etc. About half of them fire a task flow return with the "Disabled" attribute set for the convert button, and the other half don't. They all return a task flow return if I just set "Disabled" to false.
    At three days and counting, this is really an issue I just don't get, and I'm not sure if I could reproduce the problem to submit it to support because everything appears just fine and I've been digging for days.

  • Safari Crash - Problem with doodle (planer) app  -  doodle web links cause safari to crash with a very strange message "Error - Please make sure Safari is not used in Private Modus" (translated from german) No Privat Modus buttom in ios 7 safari settings!

    Safari Crash - Problem with doodle (planer) app  -  doodle web links cause safari to crash with a very strange message "Error - Please make sure Safari is not used in Private Modus" (translated from german) No Privat Modus buttom in ios 7 safari settings! Works fine with an older Safari Version. Web link, call doodle app.  You could see the website in the backround working but safari crashes after clicking on the error window.   Any suggestions?

    Turn off Private Browsing.
    Tap "Private" on Safari Screen to disable Private Browsing. When top of screen is white, Private Browsing is off.

  • Disabling attributes or operations using StandardMBean

    In the Best Practices document at http://java.sun.com/javase/technologies/core/mntr-mgmt/javamanagement/best-practices.jsp I find the following advice:
    If you need some particular abilities of Dynamic MBeans, for example the ability to supply descriptions for the attributes or operations, or the ability to disable certain attributes or operations, then you should consider subclassing javax.management.StandardMBean rather than implementing the DynamicMBean interface.
    I'm trying to learn about the various types of MBeans. Are there any details available on how to disable certain attributes or operations using a subclass of StandardMBean, and does anyone have a good use case for this feature?
    Thanks...

    Hi,
    Disabling attributes and operation is not something I would recommend, but if
    you need to do it it should be relatively easy to use javax.management.StandardMBean
    for that.
    For instance if you want to disable invoke for a given MBean, you could
    write a subclass of StandardMBean and override its invoke method to do something
    like:
    @Override
    public Object invoke(String methodName, Object[] params, String signature)
               throws ... {
       // disable method whatever
       if (methodName.equals("whatever"))
          throw UnsupportedOperationException("method whatever is disabled");
       // allows other methods
       return super.invoke(methodName,params,signature);
    }For background reading see:
    javax.management.StandardMBean: When and Why.
    http://blogs.sun.com/jmxetc/entry/javax_management_standardmbean_when_and
    -- daniel
    http://blogs.sun.com/jmxetc

  • ADFFaces: returnFromDialog fails to invoke return listener after 5 attempts

    I am having an issue populating a text field using a selection from a pop-up dialog.
    The dialog is launched like the following:
    <af:commandLink action="dialog:search" useWindow="true" returnListener="somelistener"
    i have a returnListener defined in my backing bean and an ActionListener called from the dialog.
    The action listener method calls AdfFaces.getCurrentInstance().returnFromDialog(obj, null);
    This works fine in the beginning but after 5 or 6 attempts, it fails to populate the text field . Using the debugger I found that the return listener is no longer called after 5 attempts. But, it is called in the first few attempts.
    Has anyone else seen this behavior?
    Paul

    Hi Paul,
    I have reported this bug to Oracle (bug#6013033). You'll have to wait for the 11.1 release for the fix or ask for a merge on the 10.1.3.x branch through Metalink although support told me it would be very difficult to do so...
    You can find a workaround I posted here : [SOLVED] Re: ADFFaces: returnFromDialog fails to invoke return listener aft
    Other workarounds given through Metalink :
    Workaround steps
    ~~~~~~~~~~~~~
    1) Use a higher number for oracle.adf.view.faces.CLIENT_STATE_MAX_TOKENS
    In web.xml add the following
    <context-param>
    <param-name>oracle.adf.view.faces.CLIENT_STATE_MAX_TOKENS</param-name>
    <param-value>30</param-value>
    </context-param>
    This will not eliminate the issue. But if the dialog could be designed in such a way that we don't need that many requests (say increase range size), we could tackle the issue.
    2) Don't use token method.
    <context-param>
    <param-name>oracle.adf.view.faces.CLIENT_STATE_METHOD</param-name>
    <param-value>all</param-value>
    </context-param>
    This matches the client-side state saving behavior of JSF 1.1 as explained in the link specified above.
    3) Use server side state management.
    <context-param>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>server</param-value>
    </context-param>
    Seb.

  • Disabled attribute in selectitem not working

    According to the beta 1.0 spec in 9.4.9, <f:selectitem> has a disabled attribute, but UISelectItem (4.1.11.2) doesn't mention it.
    I can put it in the tag:
    <f:selectitem  itemValue="AZ" itemLabel="AZ" disabled="true"/>with no complaint, but it doesn't seem to make any difference in the rendered HTML.

    Yep, that's a bug. The tag class for <f:selectitem>
    is not passing the "disabled" flag on to the
    underlying SelectItem bean. This will be fixed for
    the final release.
    CraigA couple of pieces of further information on this:
    I've been able to work around this kind of problem (in the beta) by using a backing bean to calculate the list of SelectItem instances to be displayed, accessed something like this:
    <h:select_one id="selection" value="...">
      <f:selectitems value="#{mybean.validSelections}"/>
    </h:select_one/>
    [/code}
    where the getValidSelections() method of your backing bean returns a List of javax.faces.model.SelectItem beans.  Any "disabled" property on these beans will be honored.
    However, my experiments with Internet Explorer 6 so far indicate that it seems to ignore the following W3C standard syntax to disable an available option:<option value="foo" disabled="disabled">The Foo Option</option>
    We are still investigating this issue -- any information or feedback that might be helpful should be sent to <[email protected]>.
    Craig McClanahan

  • Configuring instanceconfig file to show all the links except return.

    Hi All,
    I have used the following java script to remove all the links in the drill down report. But now we have requirement to show all the links except return link.
    <style>
    .ResultLinksCell
    display: none;
    </style>
    I have come across the link where srini has suggested to configure instanceconfig.xml file with addition of following elements. I was trying to understand how this prevents only hide the return link. I have tried it in instanceconfig.xml but without any success. Any suggestions for this scenario
    {code} Disable or Hide return link - Business Intelligence Suite Enterprise Edition{code}
    <ServerInstance> <Analysis> <InteractionProperties> <InteractionPropertyAddRemoveValues>false</InteractionPropertyAddRemoveValues> <InteractionPropertyCalcItemOperations>false</InteractionPropertyCalcItemOperations> <InteractionPropertyDrill>false</InteractionPropertyDrill> <InteractionPropertyGroupOperations>false</InteractionPropertyGroupOperations> <InteractionPropertyInclExclColumns>false</InteractionPropertyInclExclColumns> <InteractionPropertyMoveColumns>false</InteractionPropertyMoveColumns> <InteractionPropertyRunningSum>false</InteractionPropertyRunningSum> <InteractionPropertyShowHideSubTotal>false</InteractionPropertyShowHideSubTotal> <InteractionPropertySortColumns>false</InteractionPropertySortColumns> </InteractionProperties> </Analysis> </ServerInstance>
    Thanks,
    Sushil

    Thanks for your reply. <div align=center>Return</div>--> creates link in the main report, but does not remove only Return link but all the links. I have updated the https://forums.oracle.com/thread/2557621 , sorry I completely forgot about this.
    Sushil

  • SelectOneMenu disabled attribute disappears

    Hi,
    I have the following code to create a selectOneMenu:
    <h:selectOneMenu id="geboorteLand" tabindex="12" value="#{myForm.geboorteLand}" disabled="true"
    >
    <f:selectItems value="#{enumeratiesBean.landen}"/>
    </h:selectOneMenu>
    and it generates the following
    <select> starttag:
    <select id="body:myForm:geboorteLand" name="body:myForm:geboorteLand" size="1" tabindex="12">
    The problem is that the disabled attribute is not being rendered at all. Does anyone know this problem?
    Greets,
    Rob

    Yep, that's a bug. The tag class for <f:selectitem>
    is not passing the "disabled" flag on to the
    underlying SelectItem bean. This will be fixed for
    the final release.
    CraigA couple of pieces of further information on this:
    I've been able to work around this kind of problem (in the beta) by using a backing bean to calculate the list of SelectItem instances to be displayed, accessed something like this:
    <h:select_one id="selection" value="...">
      <f:selectitems value="#{mybean.validSelections}"/>
    </h:select_one/>
    [/code}
    where the getValidSelections() method of your backing bean returns a List of javax.faces.model.SelectItem beans.  Any "disabled" property on these beans will be honored.
    However, my experiments with Internet Explorer 6 so far indicate that it seems to ignore the following W3C standard syntax to disable an available option:<option value="foo" disabled="disabled">The Foo Option</option>
    We are still investigating this issue -- any information or feedback that might be helpful should be sent to <[email protected]>.
    Craig McClanahan

  • How can I disable a hover link in the phone view size?

    Hola
    How can I disable a hover link in the phone view size?
    I got this site where I got a gallery page,
    the pics have a hover/link state (?) where as you click in them
    they will open a bigger pic. (Prettyphoto)
    Thanks good.
    What I want to do, is that the hover state (?)
    won't show in the phone size.
    I know that I will need a media queries, but I'm not sure
    where or how to tackle this problem.
    This is the code where I have the pics
    <div class="grid_3 project-item bar">
                                             <figure class="project-img">
                                                 <img src="../images/gallery_pics/memos_bar_s5.jpg" alt="Memo's Cocina & Tequila Bar" />
                                                    <div class="overlay"></div>
                                                    <div class="mask">
                                                       <a class="icon-image"
                                                            href="../images/gallery_pics/memos_bar_b5.jpg"
                                                            rel="prettyphoto[gallery]"
                                                            title="The Bar">
                                                            <i class="icon-search"></i>
                                                     </a></div>
                                           </figure>
                                          </div>
    Thanks for your help

    If you don't want a :hover state to show in the phone css of a fluid grid layout, you would remove it from the global settings and only include it in the tablet and desktop media queries.
    Or are you trying to do something else?

  • Link Customer Return order and Quality Notifcation

    Hi Experts,
    After serveral rounds of investigation and interacted with SAP, I though to post it here to get abest answer for below question.  I hope I will get it from you guys as soon.
    When we create return sales order through Function -> Sales order -> Create Select Order type, the retrun sales order is not copying header data so SAP told us to create new action box to create retrun sales order from Quality Notification.  We customized and did all config then found another two issues now.
    a) When we create return sales order via Quality notification, it enable us to save separately in VA01 screen and then click save button it is coming to create quality notification page after saving the sales order.  Now if I press F3 or back button it is asking me "do you want to save the document" if I say no mistakenly then it came out with saving return order.  Issue:  there might be user error in system they forget to click yes sometimes, in that case the return order only created without quality notification.  Solution Expecting: I want to restrict the user to not come out without saving the Quality Notification if already return order created.  Where I need to change? Which program I need to amend?
    b)  After creating both quality notifcation and return sales order if user wants to view the document flow return sales order to find out what is the quality notification there is no link from there.  So user would not find what quality notification is created for that particular return order unless until if he knows the quality nofitication of return sales order (I know that through quality notifcation we can find return sales order however there is no link from return sales order document flow to find out Quality Ntofication) .  Could you tell me which userexit if update I will the document flow/track of Quality notification.
    Thanks in advance.
    Regards
    Rc Gopi

    Hi Gopi,
    I am not so sure about your second requirement but here I try for 1st query. Try this if it could work!
    1.     Lets co-relate this case with posting the stock to block stock through quality notifications through  action box.
    2.     Here even though we put all required details like quantity and storage location system informs us that u201CMaterial will be posted to blocked stock after the notification is savedu201D
    3.     This indicates if you donu2019t save this notification material posting will not happen.
    4.     I think you should look at the logic of this program (particularly for not carrying out movement unless notification is saved) in order to update the program of creation of return sales order through notification.
    5.     You can modify your program accordingly. QCC0 > Quality notifications > Notification processing  >Define action box > Define Functions for the Action Box. Select appropriate notification type and double click on activities. Select activity and click on detail icon to view which function module is assigned for the creation of returns order. Modify that.
    6.     As a result of which if user accidently clicks on no, in QM01 neither notification would be created nor the order.
    For your second requirement, may be you need to utilize any BAPI for order creation which can capture notification number and flow in to any of the order creation field. Perhaps you need to incorporate this part also in above FM.
    Regards,
    Anand Rao

  • BUG: Return listener not being called for manually launched dialog

    Hello all,
    I have found a bug in the dialog framework. To set the stage, I have a ADF Faces page with a command button on it. The partial submit property is set to "true" and the use window property is also set to "true." I also have the returnListener property set to a method in the backing bean. When I set the Action property of the command button to a global navigation rule that launches a dialog, the return listener is being called correctly when I dismiss the dialog.
    However, when I launch the dialog from an action listener, the return listener is not being called. Here is my action listener code:
      public void al (ActionEvent ae)
        FacesContext context = FacesContext.getCurrentInstance();
        ViewHandler vh = context.getApplication().getViewHandler();
        UIViewRoot dialog = vh.createView(context, "/infrastructure/ICConfirmDelete.jspx");
        HashMap properties = new HashMap();
        properties.put("width", new Integer(300));
        properties.put("height", new Integer(300));
        AdfFacesContext.getCurrentInstance().launchDialog(dialog, null, ae.getComponent(), true, properties);
      }and here is my return listener:
      public void rl(ReturnEvent re)
        System.out.println("in return");
        System.out.println((String) re.getReturnValue());
      }OK - here's an update. If the command button is in the Actions facet of the page, everything works as expected. However, if the button is in the selection facet of a table (inside of afTableSelectOne) - it does not work properly as documented here. It also works correctly if the button is in the actions facet of the table. I think that this is a bug and needs to work - my use case (as you might tell from my code) is to do a delete confirmation dialog. My short-term workaround is to use the Action instead of ActionListener property on the command button, but the issue I have is that the pop-up dialog is just a tad too small, and is showing scrollbars.
    Regards,
    John
    Message was edited by:
    John Stegeman
    Added additional information about tableSelectOne

    Gabrielle,
    Sorry for the confusion.
    What does not work:
    Initiating a dialog from the ActionListener attached to a command button (where the command button is inside an afSelectTableOne) will not fire the returnListener when the dialog is closed.
    What does work:
    Initiating a dialog by returning a dialog-based navigation rule (e.g. a string starting with "dialog:") from the Action attached to a command button (even if the command button is inside an afSelectTableOne) - the return listener is called when the dialog is closed
    What also does work:
    Initiating a dialog with either method (Action or ActionListener) when the command button is elsewhere on the Page (e.g. in the Actions facet)
    Hope this clarifies the bug. I could send a test case if desired.
    Kind regards,
    John

  • How to disable "blue underlined links" (which I did not code) in FireFox?

    How to disabl "blue underlined links" (which I did not code) in FireFox? Here's an example website that has no underlined links coded in the simple html source: www.setv.org. After I updated FireFox to a more recent FireFox version, blue underlines appear in websites. I know that there is a way to disable that annoying 'feature'.
    Thanks in Advance
    tron nee
    Electro-Optical Tech*Artist
    Los Angeles Burning Man Artist Association
    burner et von tron

    Cor El,
    Thank you. Re; under-lined links...I thought I looked everywhere...but I missed it!
    Any chance there being a way to easily enable/disable animations? I'd sure like to selectively rid the screen of those noisy flashy-blinky advertisements.
    And how about storing java-script enable/disable flags with bookmarks? That way I would not be forced to click tools->options->content->enable-javascript each time I wanna turn it on or off? When I surf using database engines I disable j-script (phkem) and when I need to get something from nextegg I turn it on. What about being able to selectively disable/enable (also stored in bookmarks) embedded google-ads/beacons flags? I hate being tracked, now I'm getting ads on my cable TV set based on where I've been lurking on the InterNet. Big-phkn-brother's on us, and its the greedy phkn corporations who don't give sht about us except for what's in our wallets. InterNet used to be cool, now its the CIA, the FBI, KGB, policia, FartBuuk, Macro$haft, AT&T, Giggle (at least they give something of value back), and all the other facist big-brothers. Mozilla was born fighting that schema. There's so much more that FireFox could do to mitigate InterNet facism.
    Anyway, thanks again for your time and I appologize for the ranting.
    burner von tron

  • Disabling Banner Page links for Page programatically

    We have created pages and page groups programatically. We would like to disable banner page links like Customize, Refresh, Login/Logout from the page programatically.
    Can any one provide us any clues in this regard.Since we have about 200+ page under 50+ groups and doing this task manually is not feasible.

    hi,
    there is currently no public API to perform this operation. if your pages are using the same navigation pages you just need to change it on one central place. this depends if you have the navigation pages under the shared objects or if you using it locally for each page group. if you have it under the shared objects for all page groups you can change it there - you just need to do it 1 time. if you are using local navigation pages for each page group you need to change this for every page group.
    regards,
    christian

  • Return listener not called for popup invoked from RichCommandToolbarButton

    I have a popup dialog which is shown via the adf framework by specifying <run-as-dialog> on the <task-flow-call>.
    This popup is shown in two different contexts: In one it is shown via RichCommandMenuItem, in the other it is shown via RichCommandToolbarButton. For both I do .setReturnListener via the same function pointing to the same MethodExpression.
    Subsequently in the bean for the popup I do .returnFromDialog.
    However, when the popup is invoked via the menu item, the return listener handler is called. But, when the popup is invoked via the toolbar button the return listener handler is not called.
    Can anyone suggest any reasons why a return listener from a RichCommandToolbarButton might not be called?
    Thank you,
    Ania.

    Yes, they are.
    RichCommandToolbarButton adfButton = new RichCommandToolbarButton();
    adfButton.setUseWindow(true);
    adfButton.setPartialSubmit(true);
    adfButton.setImmediate(true);
    adfButton.setWindowHeight(butDef.getHeight());
    adfButton.setWindowWidth(butDef.getWidth());
    RichCommandMenuItem menuItem = new RichCommandMenuItem();
    menuItem.setUseWindow(true);
    menuItem.setPartialSubmit(true);
    menuItem.setImmediate(true);
    menuItem.setWindowHeight(TableDefinitions.getTxnPropertyEditToolbarButton().getHeight());
    menuItem.setWindowWidth(TableDefinitions.getTxnPropertyEditToolbarButton().getWidth());

  • Disable auto-favorites link for Photo Stream

    I recently started using iCloud Control Panel and to my surprise the program added a link to the photo stream to my favorites. I don't want that so I removed it, only to see it get set back as soon as I reboot my PC.
    I hate this and I can't seem to find an option to disable the favorites link without having to disable the whole feature.
    This is a (cut out) screenshot of what link I mean. It's under Skydrive.
    Any suggestions on disabling this? Or is it a no-go and am I better off removing the tool completely?
    Roelof

    If you are using separate AppleIDs with iCloud, you cannot share your main photo streams, but can create "Shared Photostreams" on each of your iPhones and regularely add the contents of your camera roll to the "Shared" stream. These streams can be imported on your iMac in iPhoto or Aperture, or viewed in the web.
    See: iCloud: Using and troubleshooting Shared Photo Streams
    and (for iPhoto) Share photo streams
    Regards
    Léonie

Maybe you are looking for