Cursor focus during a PPR event

Hi,
I have two messageTextInput columns (lets say text1 and text2) inside a table region. When a user enters a value in text1 and do a tab out, I fire a PPR event and set some attributes in my VO. The problem is: after it is done, the cursor focus does not move to text2, even though the user did a tab out after entering a value in text1. Cursor focus returns again to text1.
Also, I do not want to do a page forward, so that processRequest is called again. That would be a costly operation for us. Please let me know if there is a way to regain cursor focus to the right textInput bean.
Note: This is IE 7.
Thanks. Much appreciate your inputs.
Raja

Raja see this thread, i have replied this some time back:
Re: How to set focus on a textinput/poplist using PPR
--Mukul                                                                                                                                                                                                                                                                                                       

Similar Messages

  • Safely switching focus during backspace key down event?

    I have a simple form that I'm building. It has a variable
    length list
    of entries, and I'm using a TextInput for each entry.
    Because the list is variable in length, I'm allowing the user
    to
    delete elements from the list. One of the ways they can do
    this is to
    press the backspace key when the cursor is in an empty
    TextInput. I
    am handing KeyboardEvent.KEY_DOWN and checking for the
    backspace key,
    to accomplish this.
    The problem I am having is that after I remove the deleted
    TextInput,
    I want to leave the focus in the TextInput above. I can do
    this using
    'setFocus', and that works fine, however it seems that the
    backspace
    is still processing, and so after the focus is set, the
    content of the
    TextInput is delete which I don't want.
    To get around this, I've created a one-shot timer with a 0ms
    delay
    which changes the focus after the KeyDown event has
    completed.
    My workaround is successful, but feels very heavy handed. Is
    there a
    better way to achieve the same effect?
    Any advice would be greatly appreciated.
    -Robin

    I guess one of the way could be adding KEY_DOWN listener on
    focus and removing it from other input fields at the same time.
    adding/removing listeners is pretty fast.

  • How to call  a javascript method after the PPR event has finished  ?

    Hi!
    How can we make a javascript method get called after the processing of ADF PPR event?
    My specific use case is,
    I want to call a javascript function after the data in the table is loaded...
    In 10g, that is not a problem, as the data used to get loaded directly during onLoad, and so i would call my js function on load;
    but in 11g , the table data is being loaded through PPR which is initiated onload, and so i needed to call my function after the PPR Response processing has been done; for which I need the name of the event triggered at that instance.
    Is it possible to do this?
    Regards,
    Samba

    Hey, I got it.
    I handled the ADF Controller's PREPARE_RENDER_ID phase of the lifecycle, and then called the
    script to get Executed.
    The code :
        public void afterPhase(PagePhaseEvent pagePhaseEvent) {
            FacesPageLifecycleContext ctx = (FacesPageLifecycleContext)pagePhaseEvent.getLifecycleContext();
                 if (pagePhaseEvent.getPhaseId() == Lifecycle.PREPARE_RENDER_ID) {
                    if(AdfFacesContext.getCurrentInstance().isPostback() )
                        afterRender();
        }is written in lifecycle listener , and my backing bean extended this listener ,
    and in the afterRender() method I did this :
       public void  afterRender(){
                System.out.println("AFTER RENDER CALLED");
               FacesContext context = FacesContext.getCurrentInstance();
               ExtendedRenderKitService service = (ExtendedRenderKitService)Service.getRenderKitService(context, ExtendedRenderKitService.class);
               service.addScript(context, "translate();");
           }That's it.
    It did work, magnificently.
    Thanks for the idea.
    Regards,
    Samba

  • PPR event getting previous value

    Hi
    There is a PPR event on a standard text box. I am handling PPR event in my custom CO. Whenever I change the value abd tab out of the text box I get the previous value not the current(changed) value.
    ExpenseReportLinesVORowImpl expensereportlinesvorowimpl = (ExpenseReportLinesVORowImpl)expensereportlinesvoimpl.getCurrentRow();
    please help
    Thanks

    Hi,
    Here are three different ideas:
    (1) Copy the current row into a local RECORD variable inside the loop.
    (2) Do a self-join in the query, so that the cursor itself has the previous and current rows. (If necessary, use the analytic ROW_NUMBER function to number the rows so you can do the self-join correctly.)
    (3) Use the analytic LAG function to copy the necesssary columns from the previous row in the query.

  • Cursor Focus

    Hi,
      I have a testedit UI field in my view  with data and edit button also there down of the textedit.now when i clicked edit button the cursor should be displayed in the textedit filed.Can anybody give me idea regarding this.
    With Regards,
    Prasad

    hello prasad,
    To set the cursor focus on the text edit on click of the button edit, do the following
    1. bind the UI element Text Edit to one context attribute (suppose it is a value attribute bound                                                                               
    directly to context root node named                                                                               
    source )
    2. create an action for the click event of the Button EDIT (suppose its name is EDIT)
        This will create an eventhandler OnActionEdit() in the implementation.
    3. Now write the code in the event handler as shown below
        //@@begin javadoc:onActionEDIT(ServerEvent)
      /** Declared validating event handler. */
      //@@end
      public void onActionEDIT(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionEDIT(ServerEvent)
        IWDAttributeInfo attrinfo = wdContext.getNodeInfo().getAttribute(IPrivateTEST_appView.IContextElement.SOURCE);
        wdThis.wdGetAPI().requestFocus(wdContext.currentContextElement(),attrinfo);
        //@@end
    4. deploy and run
    done
    Hope it is clear
    Sarbjeet Singh

  • PPR event hides button click :(

    Hi,
    I have a problem with the PPR event.
    I have a PPR on a field. If I change this field without tabbing out from it, and I press a button, the code in the button is not performed. I read the OAF DEV Guide, and I put in the processRequest the code:
    << OAWebBean body = pageContext.getRootWebBean();
    if (body instanceof OABodyBean)
    body.setAttributeValue(OAWebBeanConstants.FIRST_CLICK_PASSED_ATTR, Boolean.TRUE);
    >>
    but it does not work.
    Could you kindly help me?
    Thanks a lot,
    Rosanna.

    Sorry for the delay Rosanna.
    How are you capturing the event's such as when save button is pressed/ppr action fired. I assume you differentiate the save button's event by setting an attribute name something similar to "saveEvent" and the field's ppr event attribute as "varianceEvent" or something. Then on the controller code you could do pageContext.getParameter("event") and compare it with saveEvent and varianceEvent to differentiate what hte user has clicked on.
    You can also club the processing that you do for PPR enabled fields with the save part of the code. Then remove the PPR on the fields. You will have the fireaction/firepartialaction only on the save button in the page. Could you check if this approach works for you.
    Thank you,
    Arun

  • When typing in a website after opening in a tab, the cursor focuses to the address bar and makes logging to things difficult, how do I change this?

    As stated in the question on any website I open regardless of whether it is a new tab or just a new destination, the cursor focuses on the address bar and makes logging in to sites very infuriating. Any help is much appreciated.

    Thanks for the help, it didn't help with this particular problem. I figured it out though, I had an issue with the AVG safe search. I had to just delete the file in the program files x86.

  • HELP!!!...Firefox 4...STOP cursor focus from going to Bing search box????

    I just installed Firefox 4....Now every time I open firefox the cursor will automatically jump to the bing search box.
    I want it to start and stay inside the address bar.
    A long time ago I had this same problem and searched online and found a solution. I don't remember exactly what it was, but it was something like going into about:config and switching some settings inside there. That fixed the issue and ever time I would open Firefox my cursor would START and STAY in the address bar.
    Can anyone help me figure this out again? I don't want any add ons or extensions, I want it back to the way it was this morning before I upgraded to version 4.
    Thanks in advance!

    ***SOLVED***
    I finally found the solution...
    I have a Windows 7 64bit laptop, but this should work for Vista users as well...possibly XP users too, if you switch a couple of the folders around, if you're an advanced user you shouldn't have a problem....
    add this code to your firefox '''''"prefs.js"''''' file, you can find pref.js here, just follow the steps...
    C:\Users\<you>\AppData\Roaming\Mozilla\Firefox\Profiles\f9cunhcx.default\prefs.js]]
    Now add this line to the bottom of the list. Keep in mind for changes to take effect you must have Firefox closed, otherwise it'll just over write any changes you attempt to make and nothing new will happen.
    '''user_pref("capability.policy.default.HTMLInputElement.focus", "noAccess");'''
    After adding the above line, save the pref.js file and reopen Firefox, you'll now notice your cursor won't be in the search box. You'll have to manually put the cursor to where you want it to be. I have my home page set to www.msn.com it would drive me nuts that as soon as I open the page my cursor focus would go to the bing search bar. It wouldn't be so bad if it went to the google search bar in the top right hand corner...but anyways I hope this helps someone else out. If it does please leave a comment on your experience for the next person.
    Thanks,
    James

  • HTML DB Cursor Focus

    Hi everybody,
    I work with HTML DB 1.6. My question is about Cursor Focus. In my page Cursor Focus is SET TO: First item on page
    My first item is a Select list, my second item is an other Select list and my third item is a Text area. My cursor is focus on my third item; WHY ?. I want on my first one.
    Another question, is it possible to move our cursor to the next item after entering data in an item or to choose to don't have cursor on some item?
    Thanks. Bye.

    Thank you Mr. Horowitz,
    But, I just have to write tabindex=''1'' for example or I have to add a tag.
    Thanks. Bye.

  • Cursor focus bug(?) in v10.5

    Didn't notice this until 10.5. It makes it hard to switch to iTunes and use space bar to pause/play.
    1. Play something in iTunes. Note the cursor focus is in the songlist area of iTunes so that you can use spacebar to pause/play.
    2. Hide the app (via the dock or by cmd-tab and hitting 'h').
    3. Switch back to iTunes.
    4. Try using spacebar to pause/play. You can't. The focus is in the entire iTunes window, so you need to click into the songlist area to use spacebar.
    I am **pretty** sure this did not use to be the case as it is a common behavior for me and it's not working anymore.
    Anyone else notice this?
    -Matt
    Message was edited by: Matthew Grayson. Spelling correction.

    OK, I will post more pictures.
    So, I try to customize the standard waveform graph in LV, but right-clicking on the plot and select Advanced-> Customize or Edit->Customize Control form the menu.  Go into Customize mode.
    In 8.2 and before, you used to be able to just right-click on the decoration for the plot legend and replace it with something from the clipboard, etc.
    In 8.5, this functionality has been removed.
    However, you can select the item and go to Edit->Customize Control (I show it here for the cursor legend, as it works).  You get a new control window.
    (Continued in next post)
    Message Edited by Matthew Kelton on 11-06-2007 03:23 PM
    Attachments:
    cursors customize.png ‏15 KB
    customize dec 8.2.png ‏12 KB
    customize dec 8.5.png ‏11 KB

  • Firefox flickers during ADF PPR

    Hi,
    When a PPR event is fired on ADF page element, which sets values to other fields, the panel or page is going grey for a while before re-rendering. Did anyone face this? This 'flicker' is supposed to be firefox bug as per some forums. Also, this flicker is not seen on IE.
    Thanks
    Chinni

    PPR causes a repaint, so in my opinion, if you put a partial trigger on the page component, then the page component is redrawn resulting in a flicker.
    - Ansuman

  • Enabling PPR Event across the regions

    Hi All
    I dearly need all your thoughts on the following requirement.
    I have 2 items in 2 different regions referring to different CO's. For instance, first region is having a text item and the second region is having a MessageChoice item. Now if i change the value of the first item eventually the value in the second region's messageChoice item should be populated. How can i enable PPR event across 2 items referring to different COntroller files. Any input on this will help me a lot for proceeding further.
    Thanks
    Praveen

    You can use the pageContext.putSessionValue and getSessionValue to get the value.
    Yes you can change the parameter pass to a pass. In the Controller you can call the page with the help of pageContext.setForwardUrl.
    You can just check the condition like on the basic of some condition like If A then code will execute [[With 1 parameter]] else another code will execute [[with 2 parameter]]
    Thanks
    --Anil                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • PPR event for messageLovInput

    I have a lov item - which 4 different values. When the value of the lov is changed, it fires a PPR event (LOV automatically fires a predefined
    PPR client action) and the below code is executed but if the user enters the value manually without clicking the LOV to select a value if (pageContext.isLovEvent()) never gets fired.
    I would like to fire the PPR event when the user tabs out from the LOV field without the user implicitly clicking the LOV field to select a value from the list. Is there any way to accomplish this?
    This fires only if you click the LOv item to change the value.
    if (pageContext.isLovEvent()) {
    String lovInputSourceId = pageContext.getLovInputSourceId();
    if ("SalesContact_qry".equals(lovInputSourceId))
    OAMessageLovInputBean mBean=(OAMessageLovInputBean)webBean.findChildRecursive("SalesContact_qry");
    String s = (String)mBean.getValue(pageContext);
    /** get AM details **/
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    Boolean executeQuery = BooleanUtils.getBoolean(false);
    String v_SalesContact = pageContext.getParameter("SalesContact_qry");
    Serializable[] parameters = {v_SalesContact,executeQuery };
    Class[] paramTypes = { String.class, Boolean.class };
    am.invokeMethod("HandleSalesContact",parameters, paramTypes);
    }

    I am experiencing a similar problem as the original post with one difference. Validation on the field is triggering a lovValidation PPR event when the user tabs off the field. I can then catch that event in my processFormRequest and respond accordingly.
    However, when the user doesn't tab off but instead clicks on a submit button or another field's LOV flashlight icon, the processFormRequest never receives the LOV PPR event. It instead receives the event that is triggered from the submit button or the other field's LOV flashlight icon.
    Has anyone else run into this issue? I would imagine the MyOAF will run into this problem as well.

  • Bug: No Cursor Focus with Instant Preview Message Replies

    When you receive an Instant Preview Message and click on this notification (not shortcut reply but click on the notification itself for bbm or text messages) this brings you into the Hub to reply to that message. 
    The cursor focus is now in the reply field blinking however the typing focus is not here. You must explicitly click in the reply field to re-set the cursor focus. Now you can type to reply.
    Is this a known bug? Is there a fix?
    Blackberry Q10
    OS Version: 10.2.0.1803

    cor-el, Thank you for the quick response. However, I am not a techie by any stretch and am totally disabled. Your answer basically made no sense to me, sorry. I also have something called Session Manager, in this case irrelevant as my FF page never stayed up long enough for me to do anything even to click on Restore.
    I have in the meantime, simply reverted back to an installation of 3.6.8 and everything is working fine right now. I hope others will find benefit from your response as it is way too deep for me to venture.
    Thank you again for your response.

  • Call Webservice/API during browser close event

    Hello,
    I am using JDEV 11g. My application catches the browser close event to call a return Task Flow.
    I am wondering if its possible to call a webservice/API during the same event.
    Thanks
    Padmapriya

    Probababy too late to ask .. did u manage to get this resolved.
    I am not able to call any server Listeners during browser close event ...
    Details here -Re: Calling an ActionListener on browser window close using JS event queuing

Maybe you are looking for

  • From External Hard Drive to iTunes

    I recently had to reload my computer again, but I did manage to copy my entire My Music Folder and all of its contents. Now I can't get my music back onto my iPod. I keep getting those annoying little "music not found icons." Can someone tell me how

  • How do I install FCE-HD 3.5 on Lion?

    When I try to install FCE-HD 3.5, I get a pop-up that says "can't load, PowerPC apps no longer supported".  What gives? I bought this product from Apple Store in November 2007.  I have the product ID, the original packaging, etc.  I had it installed

  • SMTP Postfix refuses all connections both internal and external

    My server initially started bouncing all outgoing e-mail from our users saying that an invalid user name and password has been specified. Now it has progressed to bouncing all SMTP traffic both incoming and outgoing. I've got hours into trying to dec

  • How can I choose number of pixels

    How do I determine or change number of pixels in photo for posting?

  • HD Video Compression Issue

    I'm looking for information on weather or not Flash CS5 (I currently use Flash 8) can handle HD video compression for web streaming.  I have tried this using Flash 8 but only get an error, however as you might expect Flash 8 does compress standard de