How to set current row in the table after use the button tab on inputText

Hi all
My first post.., I am beginner in ADF and I'll try to explain my problem.

For now we use ADF 11 g (11.1.1.4), in a jsff page I have a table with a column of inputText.
On the the inputText valueChangeListener, I invoke a method in a bean viewScope that call an EJB method, make some services to the EJB on the modified line. After that, I update the VO and the table (because other values in the row have been changed) and reset the focus on the inputText even modified by the user with javaScript, because the focus was lost after updating.
So far, everything works fine.

When I use the arrow keys to change the selected line in the table, this is excellent work (focus is always in the inputText next or previous), but if the user tries the key tab allows you to change the current line, the inputText on the line that has the focus, but the current row in the table is not changed (I think that is normal).

My question: How can I change the current line after the tab key in this case?

I don't know if it is really clear, not easy to explain, do not hesitate to ask for more details.
Thanks in advance.

Hello

My question: How can I change the current line after the tab key in this case?

Use a client event to listen to the keyboard entry and intercept the tab. Use af:serverListener to call the server to set the rowKey on the table and deliver a PPR for the table to repaint

See example 11 on http://www.oracle.com/technetwork/developer-tools/adf/learnmore/index-101235.html#CodeCornerSamples

to learn more on how to use the client listener and the receiving server

Frank

Tags: Java

Similar Questions

  • How to set a background of the button as an image?

    Hey guys... I was wondering if there was a way I could change the background of the button component spark to an image?

    Ive looked in the property icon of the ignition button, but not what I need--I need all the background of the image is a picture...

    any ideas?

    Thanks in advance!

    Custom skin with a BitmapFill instead of filling LinearGradient.

  • Using Merge in oracle 11g this error SQL Error: ORA-30926: failed to get a stable set of rows in the source tables

    whenever I run this code I get this error

    SQL Error: ORA-30926: failed to get a stable set of rows in the source tables

    30926 00000 - "impossible to get a stable set of rows in the source tables.

    * Cause: A stable set of rows could not be achieved due to the large dml

    activity or one not deterministic where clause.

    * Action: Remove any non deterministic of the clauses and reissue of the dml.

    Don't know wht goes wrong!


    SQL:

    MERGE IN VENDORS_ACTIVE_DATE s

    USING (nvl (d.VENDOR, s.VENDOR) selection of the SELLER,

    NVL (d.COMPANY_CODE, s.COMPANY_CODE) COMPANY_CODE.

    (case when ((d.VENDOR = s.VENDOR) and (d.COMPANY_CODE = s.COMPANY_CODE)))

    )

    then "MATCH".

    When d.COMPANY_CODE is null

    then 'DELETE '.

    When s.COMPANY_CODE is null

    then "INSERT."

    else 'UPDATE '.

    chck end)

    from (select * from VENDORS_ACTIVE_DATE where COMPANY_CODE = 2) s

    full outer join (select * provider where COMPANY_CODE = 2) d

    on (d.COMPANY_CODE = s.COMPANY_CODE AND s.COMPANY_CODE = 2)

    ) d

    WE (d.COMPANY_CODE = s.COMPANY_CODE AND d.chck in ('UPDATE', 'GAME', 'DELETE'))

    WHEN MATCHED THEN

    UPDATE SET s.VENDOR = d.VENDOR

    WHERE d.chck in ('UPDATE', 'DELETE')

    DELETE WHERE d.chck = 'DELETE '.

    WHEN NOT MATCHED THEN

    INSERT (SELLER, COMPANY_CODE)

    VALUES (d.VENDOR, d.COMPANY_CODE)

    Work request: (deleted the duplicate data in tables (source and target))

    MERGE IN VENDORS_ACTIVE_DATE s

    USING (nvl (d.VENDOR, s.VENDOR) selection of the SELLER,

    NVL (d.ACTIVEDATE, s.ACTIVEDATE) ACTIVEDATE.

    NVL (d.COMPANY_CODE, s.COMPANY_CODE) COMPANY_CODE.

    (case when ((d.VENDOR = s.VENDOR))

    - AND D.ACTIVEDATE = S.ACTIVEDATE

    and NVL (d.ACTIVEDATE, trunc (sysdate)) = NVL (s.ACTIVEDATE, trunc (sysdate))

    and (d.COMPANY_CODE = s.COMPANY_CODE)

    )

    then "MATCH".

    When d.COMPANY_CODE is null

    then 'DELETE '.

    When s.COMPANY_CODE is null

    then "INSERT."

    else 'UPDATE '.

    chck end)

    from (select * from suppliers where COMPANY_CODE = 2) d

    full outer join (select * from vendors_active_date where COMPANY_CODE = 2) s

    on (d.COMPANY_CODE = s.COMPANY_CODE and s.vendor = d.vendor)

    ) d

    WE (d.COMPANY_CODE = s.COMPANY_CODE AND d.VENDOR = s.VENDOR AND d.chck in ('UPDATE', 'GAME', 'DELETE'))

    WHEN MATCHED THEN

    S.ACTIVEDATE = UPDATE SET d.ACTIVEDATE

    WHERE d.chck in ('UPDATE', 'DELETE')

    DELETE WHERE d.chck = 'DELETE '.

    WHEN NOT MATCHED THEN

    INSERT (VENDOR, ACTIVEDATE, COMPANY_CODE)

    VALUES (d.VENDOR, d.ACTIVEDATE, d.COMPANY_CODE)

  • FUSION IN: ORA-30926: failed to get a stable set of rows in the source tables

    Hi all

    Database Oracle 12 c Enterprise Edition Release 12.1.0.1.0 - 64 bit Production 0

    PL/SQL Release 12.1.0.1.0 - Production 0

    CORE 12.1.0.1.0 Production 0

    AMT for 64-bit Windows: Version 12.1.0.1.0 - Production 0

    NLSRTL Version 12.1.0.1.0 - Production 0

    When you use the MERGE clause, if executed more than once, I get the below error

    ORA-30926: failed to get a stable set of rows in the source tables

    create table CBC (nums number, sname varchar2 (10))

    create tar (tnum number, tNom varchar2 (10)) table

    Insert in src values (1, 'a')

    Insert in src values (1, 'b')

    Insert in src values (2, "c")

    merge into tar

    using the CBC

    on (nums = tnum)

    when matched

    then

    update the value tNom = sname

    When not matched

    then

    Insert the values(snum,sname);

    What expect, it's that first time itself (when inserted), he must raise the error. But it's not.

    Select * from tar

    TNUM TNOM

    1 b

    1 a

    2 c

    But if we run for the second time it shows the error.

    I saw the document of the Oracle and he said

    MERGEis a deterministic statement. You cannot update the same row in the target table multiple times in the same MERGE statement.

    I've seen below cela son but failed to get the solution for this.

    MERGE STATEMENT ORA-30926: failed to get a stable set of lines in the source

    Nondeterministic fusion?

    Someone at - it make a clarification?

    I don't want to insert records into the first time itself. for example, to run the first time he must raise the error. can I do this using MERGE?

    Thank you

    Hello

    O - O wrote:

    Thanks knani, Frank.

    One more doubt.

    When you run the MERGE statement, the first time, there is no rows in the target table, so no rows in the target table is what it is.

    So we cannot perform below sqls using MERGE when the target table is empty?

    insert into tar values (1, 'a')

    updated tar tNom = 'b' set where tnum = 1

    insert into tar values (2, "c")

    Is - that means that the MERGER will be only works with validated data?

    Right; a MERGE statement will not update a line which has been previously inserted into the same MERGE statement.  All fact tables reference to the data in the tables by the time the MERGER began.

  • Impossible to get a stable set of rows in the source tables

    Hi guys,.

    I use the following query to fusion in a stored procedure.
       MERGE INTO tt_OPEN_IN_TMP B
       Using (Select * From Tt_Sl_Fifo) A 
       ON ( A.Store_Code = B.Store_Code
         AND A.item_code = B.item_code
         And A.Packing = B.Packing
         And A.Serial_No = B.Serial_No )
       When Matched Then Update Set Opn_Fifo_Cost = A.Rate_Bc;
    The procedure raises error * "Unable to get a stable set of rows in the source tables" * as a result of the query. But if I run the query individually, it works very well. Please help me solve this problem.

    Thank you
    RAM.

    The error is due to what there is in double store_code, item_code, packaging, combination of serial_no in the Tt_Sl_Fifo table. If there are multiple records with the same store_code, item_code, packaging, serial_no Oracle has no way to determine which to use for the update. If you know that there is whenever duplicates they will all have the same column of rate_bc then instead of using

    (select * from tt_sl_fifo)
    

    use

    (select distinct store_code, item_code, packing, serial_no, rate_bc from tt_sl_fifo)
    

    Or if there is other criteria, like a date column, you can use to determine what is the one you want to use to day then you can use something like

    (select store_code, item_code, packing, serial_no, rate_bc from tt_sl_fifo
      where (store_code, item_code, packing, serial_no, add_date) in
           (select store_code, item_code, packing, serial_no, max(add_date)
              from tt_sl_fifo group by store_code, item_code, packing, serial_no))
    
  • ORA-30926: failed to get a stable set of rows in the source table

    Dear all

    When I try to load my cube I get the error "ora-30926: failed to get a stable set of rows in the source table.
    Any idea? Googling for this error has not returned all the solutions.

    My env:

    Source: Oracle 10g (10.2.x)
    Target: Oracle 11g (11.1.0.7)

    I use the generator to warehouse 11.1.0.7 on Linux

    Thank you

    Hello

    Yes, I'm very sure. The error is revived by the MERGE statement.
    If the cube is empty, it is not a problem. All of the rows from the source Gets a surrogate key.
    If you run the cube for the second time, and you have two or more lines with exact in the attributes values as you use for correspondence, this error occurs.

    Kind regards
    Carsten.

  • How to set up and enable the WINS and WINS-R resource records?

    How to set up and enable the WINS and WINS-R resource records?

    Hello

    Please repost these questions in the Technet Forums

    http://social.technet.Microsoft.com/forums/en-us/category/WindowsServer

    See you soon.

  • How to set background color of the text?

    I have a TextFrame: abcd

    I want to set the background color of the text "bc" is red

    How to set background color of the text?

    Who would be with custom underscore. Set the solid style, choose a color and to adjust the weight and offset of an underline, making it thick and move up behind the text.

  • How can I restart firefox with the same tabs and windows?

    How can I restart firefox with the same tabs and windows?

    It is not in the file menu or tools. I get nothing when searching for help. FF still knows how to do it, say to update extensions.

    I know that I can do by saving my session, coming out, reboot and restore the session but is there a single command to do this?

    Thank you. -David

    I have attached a screenshot showing how to select restore automatic session just above the setting of the Home Page where it says "When Firefox starts".

    With this set, you can restart Firefox manually out using the menu-

    • "3-bar" menu button > button "power".
    • (menu bar) File > Exit

    -and then restart Firefox.

    If you want a real reboot with a click of button, you can check something on the Add-ons site: https://addons.mozilla.org/firefox/

  • How can you get rid of the "new tab" page that flashes what you did recently? I don't like this option...

    How can you get rid of the "new tab" page that flashes what you did recently? I don't like this option. If I wanted to Flash all the pages I've visited, I would. It is not YOUR place to do it for me. I'll change the browser if it is not changed.

    Hello, please refer to customize the page new tab to turn off the function.

  • How is it possible to change the 1 tab to Page 2 and page 3 page, etc. by using a Boolean control?

    Hi Sir,

    I created a 4-page tab control. How is it possible to change the 1 tab to Page 2 and page 3 page, etc. by using a Boolean control?

    Thank you vey much Mr. It worked

  • How to add more application under the new tab shortcuts when we right click on the desktop.

    How to add more application under the new tab shortcuts when we right click on the desktop.

    Hello

    I suggest you to post your questions in the forums 'Development of the User Interface for Windows Desktop' for better assistance.

    Here is the link: http://social.msdn.microsoft.com/Forums/en-US/windowsuidevelopment/threads

  • Stupid question CS6. How can I get rid of my experience after using the quick selection tool?

    Stupid question CS6. How can I get rid of my experience after using the quick selection tool?

    The best way would be to make sure that your layer is not a background layer: click the lock icon in this case. Then click the icon at the bottom of the layer panel layer mask. This will create a mask that you can refine and not be destructive.

  • How can I get the button tab to work again?

    The button tab and the '+' have been working fine until this morning. Since this afternoon, however, they are all two has stopped working. I click on each of them and nothing happens. I can't open a new tab. I have to open multiple browsers in order to work with the different windows. I followed the suggestion of another user and checked the Add-ons, and nothing happened. I have no ASK bar, so that came out also. Can you help me? I ran out of resources. Thank you!

    Hi, madperson! And thanks for your reply. Yesterday, when I posted my request, I had already run FF in safe mode and checked all the (and some) ext/addons I have. The problem persisted, while I posted my question. This morning, however, the glitch seems to have emptied himself! The button tab and the icon "+" both work as before! Don't ask me what happened, I couldn't even begin to try to explain. In any case, here's the ext/addons I: Norton Protection against vulnerabilities. Personas; Flash Video Downloader; Groowe Search Toolbar (which was proposed by Mozilla); and Yahoo Toolbar. Thanks again for your help, I appreciate it.
    Marcia

  • I'm trying to schedule a task, but when I open the buttons/tabs 'Action' & 'View' are missing.

    I'm trying to schedule a task, but when I open the buttons/tabs 'Action' & 'View' are missing. I tried just clicking around to see if the options menus/come to bring back the buttons/tabs or change the display to do this. But nada. Could you please help? Thank you

    Puzzled.

    Original title: Task Scheduler

    I solved it in fact reading the complete list of the options when I right click at the top of the window.

Maybe you are looking for

  • How can I send a scam I had to Apple?

    I had received a notice from Apple that I bought an object. Went on their website and noticed that something was fishy when I couldn't do anything else that put in my email, credit card, for a purchase that I did not buy. Don't fill out the info, cre

  • Manual not in English

    Hi I just bought the HP Envy 750-274na and have found no boot drive and the manual does not have a section in English

  • Yoga 2, windows 8: cannot adjust the brightness or connect to external monitor

    I have been using my yoga 2 with an external monitor via micro-hdmi port, but a week ago, it stopped working. The monitor does not recognize laptop. In addition, I can't adjust the brightness of my laptop screen, the keyboard, or in the control panel

  • my computer telling me windows stopped my internet page and it keeps telling me it's a DEP error

    original title: Windows Vista I need help, my computer telling me windows stopped my internet page and it keeps telling me that it is a mistake of the DEP and won't let me on all Web sites successfully. He keeps it close. What should I do? Frankly, i

  • DirectX cannot find my camera!

    I went on a hard drive died on my new windows 7 machine for a perfectly fine car from a mobile phone earlier but dead.  I get all sorts of problems, but I think that the message of directx, I received is probably the origin of my solution.  Here is a