Problem giving the focus to an element

Hi,
I have a complex page, with lots of refresh, execute, method which change the selected row of my table from java...
And i want, when a row of my table is selected, to automatically give the focus to the 2nd column of the selected row.
For this in my java code, i get the id of the good column of the selected row and call this javascript function:
function setFocusId(id) {
    var t = document.getElementById(id);
    t.focus();
}The java code:
        ExtendedRenderKitService service = Service.getRenderKitService(facesContext, ExtendedRenderKitService.class);
        service.addScript(facesContext, "setFocusId('" + inputId + "');");That works when i click on a line of my table !
But sometimes i change the selected line from the java code, and i have to refresh my table. To refresh the table i use :
    AdfFacesContext.getCurrentInstance().addPartialTarget(this.getTable());And when i refresh the table with this, and then i call my function to give the focus to the column, that do not work, the focus is not given...
Do Someone have an idea to solve that problem ?
Regards,
Trigger

Hi Frank
I have the good ID of the component:
        RichTable table = this.getTquest();
        FacesContext facesContext = FacesContext.getCurrentInstance();
        String tableId = table.getClientId(facesContext);
        RowKeySet rks = table.getSelectedRowKeys();
        String inputId = "";
        if (rks != null && rks.size() > 0) {
            Object rowKey2 = rks.iterator().next();
            String rowId = table.getClientRowKeyManager().getClientRowKey(facesContext, table, rowKey2);
            inputId = tableId + ":" + rowId + ":" + "otOvprCode::content";
        } else {
            System.out.println("Error");
        ExtendedRenderKitService service = Service.getRenderKitService(facesContext, ExtendedRenderKitService.class);
        service.addScript(facesContext, "setFocusId('" + inputId + "');");It works, the id is always good, but the focus is not given when i refresh the table before ...
Julien
Edited by: Trigger on 3 août 2011 13:13

Similar Messages

  • Problems with the Focus in different JTables

    Hello,
    I got the following problem.
    First of all, I use a Splitpane to show 8 different tables. Four of them (tables 1-4) are placed in the left part of the Splitpane. The other four tables (5-8) are on the right hand side.
    The four tables on the left got their own TableCellRenderer and the four tables on the right got also their own TableCellRenderer.
    If i load the side, I want the focus to be in table 2 and in table 5. How can i do that? Their is never a focus in any of them at the beginning but I need them in TWO of them.
    Secondly, I don't know how I can leave the one focus between tables 1-4 AND tables 5-8????
    I can click through tables 1-4 without any problems but the focus in one of the tables on the right side disappears. The same on the other side if I click through tables 5-8?
    Can anyone give me an answer? I am looking for hours already and I am so frustrated right now.
    Thank you so much....

    http://www.bulletsandbones.com/GB/GBFAQ.html#recordlinein

  • How do I show the focus point in Elements 12?

    How do I show the focus point in Elements 12?  There are times when displaying the camera focus point(s) in either the organizer or the editor would be very helpful in analyzing pictures.  Is there a way to do this?

    As far as I know this is a feature specific to a given camera manufacturer. Only their proprietary editing softwares can interpret the proprietary metadata...

  • The organizer of Photoshop Elements 8 - Problem of sequence of dates

    Bonjour,
    I have a problem with the organizer of Photoshop Elements 8, especially with the sequence of the pictures in the catalog.
    My understanding is that the sequence of the pictures depends of the Exifs dates.
    Problem in my catalog: It takes generally the date taken, but sometimes the date digitized even if the date taken is available.  I have used Exifer to check the dates but also PhotoMe and Exif Manager.
    Thanks in advance for a solution.

    The problem with 2002-12-25_F1030011.jpg is that it contains an invalid date/time in the XMP:DateTimeOriginal field of its metadata:
    Date/Time Original: 2002:12:25 08:29:00
    The XMP metadata specification requires that a time zone be specified, e.g.
    Date/Time Original: 2002:12:25 08:29:00+01:00
    Evidently, when PSE doesn't find a valid XMP:DateTimeOriginal field, it then uses the EXIF:CreateDate field, "2008:04:10 14:59:08".
    I believe that Microsoft Pro Photo Tools wrote the invalid value in XMP:DateTimeOriginal.   It's shown as the last software to have modified the XMP section:
    ---- XMP ----
    About                           : uuid:faf5bdd5-ba3d-11da-ad31-d33d75182f1b
    Date/Time Original              : 2002:12:25 08:29:00
    Date/Time Modified              : 2002:12:25 08:29:00
    Software                        : Microsoft Pro Photo Tools
    Software                        : Microsoft Pro Photo Tools
    Creator Tool                    : Microsoft Pro Photo Tools
    Creatortool                     : Microsoft Pro Photo Tools
    I verified that my Pro Photo Tools incorrectly writes dates/times without a time zone.
    You could fix this with the free Exiftool by doing:
    exiftool -xmp:datetimeoriginal= 2002-12-25_F1030011.jpg
    This deletes the XMP:DateTimeOriginal field, causing PSE to use the EXIF:DateTimeOriginal field, which is also present in the file.   You could run exiftool on all your photos that might be affected via:
    exiftool -xmp:datetimeoriginal= -r c:\users\you\pictures
    Then select the corresponding thumbnails in the Organizer and do Edit > Update Thumbnail to cause PSE to re-read the metadata.  Note that Exiftool will make copies before modifying files, adding _original to the name of the copies.

  • Problems with the catalog

    The following problem in the organiser of photoshop element 9  makes me crazy.
    Perhaps you can help me.
    If I open the organiser, and I select a folder in the catalog than I am missing photos and I see pictures that don't belong there.
    Importing files to the catalog dont work.
      When I go to reveal in Explorer then I do see the exact files that  should be displayed.
    When I am trying to get photos and videos from files  then he gives that they are already in the catalog.
    If I have a picture that doesn't belong in a folder and delete just another other picture shows that doesn't belong there.
    The help function brings me no further. Is there any possibility to fix it? Could the links possibly be removed from the catalog and again everything linked?

    It might be due to some incorrect permissions in the Portal folder due to bad migrations. Try to reset the privileges at the top level and cascade them down.

  • Preventing a window of getting the focus

    Hi,
    I am pretty new to Java and at the moment I have a pretty big problem with the focus. Is it possible to prevent a window from getting the focus? I.e. an application has some kind of "properties" popup. So I don't want to make it impossible for the main window to get the focus until the user closes the "property"-window...
    some hint or even example code would be great!

    I am pretty new to Java and at the moment I have a pretty big problem with the focus. Is it possible to prevent a window from getting the focus? I.e. an application has some kind of "properties" popup. So I don't want to make it impossible for the main window to get the focus until the user closes the "property"-window...
    When you open your properties window you could call setEnabled(false) on the frame that should not be able to get focus and call setEnabled(true) when the user closes the properties window. You will have to pass a reference to the frame to the properties window so that the window can then do yourFrame.setEnabled(false) when it's being closed.

  • I try to create an html for IPad. The html page contains an element overlapping a video, now it works as for view but the focus is still with video. This denies the event of overlapping element from occuring. Can please anyone help to solve this issue?

    I try to create an html for IPad. The html page contains an element overlapping a video, now it works as for view but the focus is still with video. This denies the event of overlapping element from occuring. Can please anyone help to solve this issue?

    Hello,
    '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * On Windows you can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * On Mac you can open Firefox 4.0+ in Safe Mode by holding the '''option''' key while starting Firefox.
    * On Linux you can open Firefox 4.0+ in Safe Mode by quitting Firefox and then going to your Terminal and running: firefox -safe-mode (you may need to specify the Firefox installation path e.g. /usr/lib/firefox)
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    [[Image:FirefoxSafeMode|width=520]]
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    [[Image:Safe Mode Fx 15 - Win]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
    Thank you.

  • JSF: How to determine which element has the focus?

    Hi all,
    I have a JSP with some input fields and a text area. When I press "ENTER" the data I have entered should be saved. That works fine (I use JavaScript to catch the keyPressed-event). But when I want to insert a new line in the text area, I press ENTER too and this invokes the javascript function. So it�s not possible to insert a new line in the text area. And I don`t want to save the data when I�m just inserting a new line.
    is it possible to determine which element has the focus at the moment of pressing ENTER? if it`s the text area then I won�t save the data and inserting a new line is possible? Or how to say: "Insert an new line if the user presses SHIFT+ENTER" or something like that?
    I�m using JSC for my application and this is my JS-function:
    function checkIt(evt)      
    var charCode = (evt.charCode) ? evt.charCode : ((evt.which) ? evt.which : evt.keyCode);
         if (charCode == 13)
              document.getElementById('form1:bt_Save').click();
              return false;
              return true;
    I�m looking for something like that:
    if(charCode == 13) {
    if(document.getElementById('form1:textArea').hasFocus())
    doNothing...
    else {
    document.getElementById('form1:bt_Save').click();
         return false;
    thanks for any help

    Hi,
    I searched through many forums (js of course too) but
    I couldn�t find a solution. Everybody knows how to
    set the focus but not how to get it. We often use
    JSF/JSP with javascript and maybe somebody here has
    another approach to this problem (how to solve it
    using jsf itself or anything else)?Take easy. I just suggested to search in a JavaScript forum , in your question you didn't mentioned this. Good luck man.
    Cya.

  • How to get the focus of particular UI Element

    Hi All,
    How to get the focus of particular UI Element in webdynpro Page,
    I have a page where i am creating a ALV, I want to get that keyboard focus is on that element is there or not?
    Can anyone please give some update?
    Best regards,
    Rohit

    I would suggest try invoking REFRESH of ALV on the ON_CELL_ACTION event.
    Below excerpt is from Thomas
    The Events of inner UI elements are not exposed directly as they normally would be if they were standalone. Generally you can capture them using either the
    ON_DATA_CHECK:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/c8/6c80dbedfe42d1a93f8e6df1d7244a/frameset.htm
    This gets trigger for any press of ENTER, so it generally works like the Input Field onEnter.
    You could also consider ON_CELL_ACTION:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/45/12093591152464e10000000a1553f7/frameset.htm
    It is a higher level Event that encompasses both ON_DATA_CHECK and ON_CLICK.
    if you want to capture & refresh on some hot key combination then refer to this thread
    [https://www.sdn.sap.com/irj/scn/profile?editmode=true&userid=3760417]

  • I purchased photoshop elements and i am having all the problems in the world installing it.... first the link in the emails were errors and secondly i have downloaded and installed multiple times and it says my serial number from the email i received is i

    I purchased photoshop elements and i am having all the problems in the world installing it.... first the link in the emails were errors and secondly i have downloaded and installed multiple times and it says my serial number from the email i received is incorrect.... please help

    Ok, since this forum is for Photoshop Standard and Photoshop Extended, we don't know much about Photoshop Elements. There is a Photoshop Elements forum and I'll link it for you since they best know how to field your questions.
    Photoshop Elements
    Good luck on it! 
    Gene

  • Problem with the preview window in Premiere Elements 10

    Hi guys,
    I have a question:
    I have a new PC (data follow) and Adobe Premiere Elements 10.
    My problem is that I see in the preview-window only one grey picture. The sound runs without problems! In other chats I red, that perhaps my graphic card is the reson of my problam. Is this thus? If so, how I can repair this?
    PC:
    AMD FX-8350 Eight Core Processor 4 GHrz
    NVIDIA GeForce GTX 750 Ti
    Do you need even more?
    What I have already tried:
    - Adobe Premiere Elements 10 anew inst.
    - Graphics drivers update
    - Check DirectX
    - Windows Media Player and QuickTimePlayer anew Inst.
    Already to many thanks for your help!!!!!
    lg
    Börni

    borni123
    What computer operating system is your Premiere Elements 10 to run on?
    You are involved in the Premiere Elements 10/NVIDIA GeForce issue whose full details (description and fix) are included
    in the Announcement at the top of this forum. Copy for your convenience below.
    You gave a lot of details but did not include the computer operating system. This information may be the key whether
    the known fix will work for you. The known fix requires roll back of the driver version to about May 2013. If your computer
    is Windows 8 or 8.1 64 bit, there may not be a driver old enough to resolve the issue. This may force you consider
    a Premiere Elements version other than 10 or a different video card/graphics card for your computer. This issue is
    specific for Premiere Elements 10 and the NVIDIA GeForce cards.
    Copy of Announcement at top of this forum....
    Premiere Elements 10 NVIDIA Video Card Driver Roll Back
    If you are a Premiere Elements 10 user whose Windows computer uses a NVIDIA GeForce video card and you are experiencing
    Premiere Elements 10 display and/or unexplained program behavior, then your first line of troubleshooting needs to be rolling
    back the video card driver version instead of assuring that it is up to date.
    Since October 2013 to the present, there have been a growing number of reports about display and unexplained workflow
    glitches specific to the Premiere Elements 10 user whose Windows computer has a NVIDIA GeForce video card. If this
    applies to you, then the “user to user” remedy is to roll back the NVIDIA GeForce video card driver as far as is necessary
    to get rid of the problems. The typical driver roll back has gone back as far as March – July 2013 in order to get a working
    Premiere Elements 10. Neither NVIDIA nor Adobe has taken any corrective action in this regard to date, and none is
    expected moving forward.
    Since October 2013, the following thread has tried to keep up with the Premiere Elements 10 NVIDIA reports
    http://forums.adobe.com/thread/1317675
    Older NVIDIA GeForce drivers can be found
    http://www.nvidia.com/Download/Find.aspx?lang=en-us
    A February 2014 overview of the situation as well as how to use the older NVIDIA GeForce drivers for the driver
    roll back can be found
    http://atr935.blogspot.com/2014/02/pe10-nvidia-video-card-roll-back.html
    The following is the specific link in the above for determining what older NVIDIA GeForce GTX750Ti driver versions are
    available to you.
    Older NVIDIA GeForce drivers can be found
    http://www.nvidia.com/Download/Find.aspx?lang=en-us
    Please update us on your progress,
    Thank you.
    ATR

  • When attempting to use Lightroom external editor program to edit a photo in Photoshop Elements 10, the photo does not open / appear on photoshop elements screen.  I don't have any problem with this when using Photoshop Elements 6 or Photoshop CS.  I'm usi

    When attempting to use Lightroom external editor program to edit a photo in Photoshop Elements 10, the photo does not open / appear on photoshop elements screen.  I don't have any problem with this when using Photoshop Elements 6 or Photoshop CS.  I'm using a Mac with Mountain Lion OS.  Any solutions?

    Adobe now hides the editor - what looks like it is not - you want the editor hidden in the support folder - see http://forums.adobe.com/message/3955558#3955558 for details
    LN

  • I have a problem with color prints from photoshop elements 12. The pictures are too light and with strange colors. I have a Canon pixma mg615I0 printer and use mac os X yosemite. The pictures are taken with a coanon eos 550d in the color space sRGB. I hav

    Hi
    I have a problem with color prints from photoshop elements 12. The pictures are too light and with strange colors. I have a Canon pixma mg615I0 printer and use mac os X yosemite. The pictures are taken with a coanon eos 550d in the color space sRGB. I have followed adobes recommendations and have tried both letting the printer respektive photoshop manage the colors. But nothing works. I see that there are different opinions about which is best to do so I tried both. I have the latest printer driver installed. Can anyone help me with this?

    Do the following:
    Print a test page from the printer. Perhaps the print head needs cleaning via its maintenance facility.
    Let the printer manage colors, not PSE
    Calibrate the monitor

  • Problems by the Installation of Adobe Photoshop Elements 12

    Problems by the Installation of Adobe Photoshop Elements 12  can some one help me please?

    Thanks you so much,
    Somehow it is solved now. It is now perfectly installed. and when it is as
    easely as I was using 3.2 version, I shall buy it at once.
    God bless you and thanks.
    Alwin lyss
    2014-07-11 22:01 GMT+02:00 kglad <[email protected]>:
        Problems by the Installation of Adobe Photoshop Elements 12  created
    by kglad <https://forums.adobe.com/people/kglad> in *Downloading,
    Installing, Setting Up* - View the full discussion
    <https://forums.adobe.com/message/6543307#6543307>

  • Help,Intermittent problems accessing the Editor in Elements 10

    Sometimes when I try to access the Editor,either  from the Organizer or directly, it will let me in and I can then edit several images, without any problems. Then without warning it fails, and I cannot access the Editor in any of the editing Modes. The only way I have been able to to overcome the problem is to come out of Elements and  Reboot my PC, then re enter Elements and start afresh.
    I am using a Sony Vaio PC with wndows7 Home Premium, and AVG security. I have also fairly recently installed a Bambo Pen and Touch tablet, but I think the problem stems back from before that installation.
    I am not very "computer literate" but any help or suggestions will be much appreciated.
    John.

    Try this:
    Bypass the Unwelcome Screen by creating Desktop shortcuts for the Organizer and the Editor, and restarting your computer.
    The Editor's executable is:
    "C:\Program Files (x86)\Adobe\Photoshop Elements 10\PhotoshopElementsEditor.exe"
    The Organizer's executable is:
    "C:\Program Files (x86)\Adobe\Elements 10 Organizer\PhotoshopElementsOrganizer.exe"
    The Unwelcome Screen leaves a zombie process running which prevents the actual program from launching again.
    Ken

Maybe you are looking for

  • Cost Object in FI document with WBS Settlement

    Hi, I'm testing WBS settlement to G/L account which is cost element. I made some substitution rules because I met an error message saying that "Cost Object is needed" As a result I can settle WBS to cost elements such as COGS etc. I got a FI document

  • Item Details Columns of Production Order

    Hi, In a Production Order Component overview screen,i can see 4 columns related to item details- ITEM, OpAc,ItemID,ItemNo. Can anyone explain what is the use of above 4 columns and how are they different from each other. Does maintaining all the abov

  • CS11 and Recursive

    Hi Due to BOM strucutre change, the BOM was maintain with ECN and now BOM was recursive, due to SAP recursiveness check did not consider BOM effectivity date (note 42891), and now CS11 will stop at the recursive BOM and will not exploide down further

  • Kernel Panic - random

    I'm getting random kernel panic. I've swapped the sims, disks, ran AHT, still panic. If you can share some thoughts, thanks. All panic reports are the same. I can't reproduce it, 'cause it's just random. One potential is under heavy network load, but

  • 10.6.8 and Creative Cloud

    I have tried at least 10 times to download InDesign CS6 without any success. At the very end of the download it gives me an installation error, and I've retried WAY too many times. Any help? Running on 10.6.8 because I don't want to lose Quark 6.5 at