rowSetIterator.getRow (key) is null first time click ADF table row

Hello experts, I have very strange problem in ADF table with multiple selection mode. First time when I select a folder and a command button press to treat the selected query, rowSetIterator.getRow (key) throws null pointer exception.   Second time click on any record command button and hit it again, rowSetIterator.getRow (key) does not throw an error it gives me rather recording.  Here is my code:

< af:table value = "#{bindings.paymentList.collectionModel}" var = 'row' "

Rows = "#{Bindings.paymentList.rangeSize} '"

emptyText = "#{bindings.paymentList.viewable?" "{"No request found.":"Access Denied."}"

columnStretching = "column: c8" width = "860px";

fetchSize = "#{bindings.paymentList.rangeSize} '"

disableColumnReordering = "true" rowBandingInterval = "1".

inlineStyle = ' height: 400px; "

filterModel = "#{bindings.paymentListQuery.queryDescriptor} '"

queryListener = "#{bindings.paymentListQuery.processQuery} '"

filterVisible = "true" varStatus = "vs."

selectionListener = "#{viewScope.myBean.currentSelectionListener} '"

rowSelection = "multiple".

ID = "t1".

Binding = "#{viewScope.myBean.MyTable}" >

< af:column... >

.....

< / af:table >

< af:commandButton text = "ProcessRequest".

ID = "cbProcReq".

Binding = "#{viewScope.myBean.processReqCB} '"

action = "#{viewScope.myBean.processRequests}" > "

< / af:commandButton >

currentSelectionListener():


rksSelectedRows = searchResultTable.getSelectedRowKeys ();

If (rksSelectedRows! = null & &! rksSelectedRows.isEmpty ()) {}

System.out.println ("rksSelectedRows is not null or empty");   / / always runs

}

}

processRequests():

RowKeySet rksSelectedRows = myTable.getSelectedRowKeys ();

If (null! = rksSelectedRows & &! rksSelectedRows.isEmpty ()) {}

Iterator itrSelectedRows = rksSelectedRows.iterator ();

RowSetIterator rowSetIterator = dcItteratorBindings.getRowSetIterator ();

While (itrSelectedRows.hasNext ()) {}

Key = (Key) ((List) itrSelectedRows.next () .get (0);

If (null! = rowSetIterator.getRow (key)) {//works only 2nd time click.}  First, click on throw null for getRow()

PaymentReq paymentReq = (PaymentReq) ((DCDataRow) rowSetIterator.getRow (key)) .getDataProvider ();

reqList.add (paymentReq);

} else {}

System.out.println ("getRow() is null");

}

}

I noticed that the key is never null.  Something is still getting filled.    No idea why this glitch.  Why always 2nd time click work?

I also checked thatRow myRow = rsiSelectedRows.getRow(key); is showing  myRow as null  for the first time. But  2nd time when I click and hit button,  myRow is not null !!  Do not know what is this glitch.


Appreciate your help.

Thank you

Finally I was able to solve the problem.   Noticed that code clear filter in backing bean caused this problem.   I am clear the filter of bean support when the user forgets to clear the filter in the user interface and that caused the issue with table selection.  I commented on this code and table selection works perfectly well.

Tags: Java

Similar Questions

  • I had to redo my computer why can't use my product key when I installed windows, the first time

    I had to redo my computer why can't use my product key when I installed windows, the first time

    How to solve the error codes on Windows 7 0xC004C008 Activation of Volume
    http://Windows.Microsoft.com/en-us/Windows7/Windows-7-activation-error-0xC004C008

    Have you tried to restart by phone?

    How to activate Windows 7 manually (activate by phone)
     
    1) click Start and in the search for box type: slui.exe 4
     
    (2) press the ENTER"" key.
     
    (3) select your "country" in the list.
     
    (4) choose the option "activate phone".
     
    (5) stay on the phone (do not select/press all options) and wait for a person to help you with the activation.
     
    (6) explain your problem clearly to the support person.
     
    http://support.Microsoft.com/kb/950929/en-us

  • I wanted to remember my password in a single site, but first time I clicked the issue appeared in the No. and now I don't know hot to set it to. I have

    I want to save my password in mozilla firefox in a single site.
    But what first time I wrote my pass and this question appeared to remember (save) my pass
    I clicked on no for missclick. Now I can't change it. I tired to clear the cookies and history.
    I visit this site of more than 10 times a day and my connection is quite long.
    How can I save password and login in this site now?

    You can delete all stored data with a specific area through "Forget this Site" from the context menu of the history entry (see the history or the history sidebar) or via the subject: permissions page.

    With the help of "Forget this Site" will delete everything as bookmarks, cookies, passwords, cache, history, and exceptions in this area, so be careful and if you have a password or other data from that domain that you do not want to lose so take note of these passwords and bookmarks.
    You can't recover from which "forget" unless you have a backup of the affected files.

    It has no lasting effect, so if come back you on such a 'forgotten' site, then the data of this Web site will be saved once more.

    The website may use autocomplete = off to prevent Firefox to save and fill in the name and the password.

    You can remove autocomplete = off with a bookmarklet to make Firefox to record names and passwords and other form data.

  • I downloaded Firefox for the first time, when I click on the logo it says "zero KB available." What should I do?

    I am a first time user. I now have the logo display. When I click it it says, "2 points" and he says: "zero KB available." How can I start?

    where can I call to get a response?

  • Windows key does nothing the first time I press it

    I was wondering about this since a long time. I use a lot of keyboard commands, especially the Windows key + R, to open the Run dialog. But I noticed that if I didn't hit the Windows key for a long period, say, maybe 10 minutes, the key won't do anything the first time that I hit him. I have to hit it twice in order for the start menu appears. Then only, the Windows key work immediately, assuming I'm not too long without support. This is normal behavior in Windows? It is certainly not a problem with my keyboard because the same thing is happening with my old keyboard and my brand new one that I just got. Is it possible to fix this? It's really annoying not being able to depend on one of your keys and having to hit twice as if to say, ' I really want you to open the start menu now Windows!

    Thank you, Stephanie. I tried a clean boot and the Windows key worked continuously as it should. One, back, I added my services and startup programs and tested the key. There are several non-Microsoft services that were previously activated, such as those related to my iPod or Nero, I left off. My Windows key still works normally. I don't know who services, has been the cause of the problem, but at least it seems to be resolved for now. Thank you!

  • Clicking on the tab help for help with photoshop first time get in "photoshop online help could not be displayed because you are not connected to internet" but I'm connected to the internet?

    Dear all

    I need help with the following problem:

    Clicking on the tab help for help with photoshop first time get in "photoshop online help could not be displayed because you are not connected to internet" but I'm connected to the internet.

    Appreaciate help on this problem.

    MSD

    I find it easier and faster to use just this link, which goes to the same place as aid > online help for Photoshop:

    Using Photoshop | Photoshop help

    To bookmark so that you can find.

  • When I choose my quick selection tool, I click and drag the first time, and he adds (my selection). BUT if I let go of the mouse button and try to select more it goes to Negative (-) and removes all selections I made and won't allow me not one

    When I choose my quick selection tool, I click and drag the first time, and he adds (my selection). BUT if I let go the mouse button and try to select it goes to Negative (-) and removes all the selections I made and not will not let me add again. I never had this problem before, you usually need to hold down the Alt (or Option MAC) to subtract from selections. No one knows what happened or how to fix this problem, maybe a setting I accidentally hit? Thanks for your suggestions! :))

    Look at the options of quick selection - particularly the four icons on the left.

  • Cannot access a property or method of an object coming null for the first time reference

    Hello

    I have four components, two textInputs and two Date fields.
    Where my requirement is enetred TextInputs in one line and display DateFileds selected in another line in a text box.

    < mx:Canvas label = "Search Datebase" toolTip = "Search Datebase" >

    < mx:TextInput id = "FromTI" x = "85" width = "373" change = "enterContext ()" / > "
    < mx:TextInput id = "ToTI" x = "85" y = "33" width = "100%" change = "enterContext ()" / > "

    < mx:DateField id = "AfterDF" x = '80' y = '17' / >
    < mx:DateField id = "toDF" x '80' = y = "56" / >

    < / mx:Canvas >

    I tried this way:

    Application.application.myTA.text = FromTI.text +""+ ToTI.text + "\n"+AfterDF.text+""+ toDF.text;


    The problem is, I get this error whenever I walked into something on the FromTI TextField (it's only coming for the first time)

    Could someone please help me, thanks.

    Initially, I would do the following, to see who has the null value:

    if(application.application.myTA == null) {}

    trace ("application.application.myTA");

    }

    if(FromTI == null) {}

    trace ("FromTI");

    }

    if(application.application.myTA == null) {}

    trace ("ToTI");

    }

    if(application.application.myTA == null) {}

    trace ("AfterDF");

    }

    if(application.application.myTA == null) {}

    trace ("toDF");

    }

    However, if one of these referenced components are in the opinion of non-use first to a ViewStack, accordion or TabBar, and this container navigator isn't creationPolicy = "all", then it will probably happen.

    If this post answers your question or assistance, please mark it as such. Thank you!

    http://www.chikaradev.com
    Adobe Flex development and Support Services

  • problems of the admin: message saying insufficient privileges: you must be an administrator when you run this application for the first time

    I bought this new comp with windows 7 already installed. has worked fine up intill a week or two it y a. I installed a new game, and after installation, I press launch to play it and pop up with a message saying not sufficient privileges: you must be an administrator when you run this application for the first time. also, I thought that I must be the administrator when I tried to launch the disk defragmentation. my account is the administrator account so I don't understand why they say that.

    I'm sorry. I was reading through additional FAQS regarding the same problem. I saw where someone said to try to add another admisistrator account to try to take on the former. but I had no luck with this ether. I also downloaded the program of the UAC, and I turned it off, reset my computer and still no change to my problem. I also tried to download the MSE restore tool, but I found myself with a message saying that I have no MSE

    Sorry, the MSE tool is to set the MSE when its broken.
    UAC controller Tool v1.0 can be used to control the
    The UAC settings.

    However, I suggest you restart the PC and after BIOS hold the F8 key
    and when the Windows Startup Menu appears, select Mode safe mode with networking.

    Now, you will enter Safe Mode. On the page to connect, you will see the
    Standard Windows administrator click it to open a windows session, press and hold
    in mind, the password can be blank.

    Once you have done that make a new account administrator and giv it a name.
    Restart the PC. That you did this newspaper using the new account.
    Once you have done that decide what to keep with your current administrator
    account once you've done it restart the PC, BIOS hold down the F8 key and
    Select Mode safe mode with network and enter dependencies the Standard Windows administrator.

    Go to control panel-> user accounts control and security for the family-> user accounts, then
    Select manage another account. In the list, select the administrator account
    your select and then delete the account, then it will ask you if you want to keep
    files etc, it's your own decision. Itknowledge24.com

  • Interactive report Javascript Refresh, working only the first time

    Hello

    I'm trying to implement a dynamic action on an interactive report that fires a pl/sql procedure and then reload the IR.

    I have something like this:

    Select par.*,
    CASE
    WHEN (SELECT 1 OF THE AddressBook ch WHERE ch.usr_id = (select id where email = usr: APP_USER) AND ch.address_id = par.id) IS NOT NULL
    THEN ' < img src = "" #IMAGE_PREFIX #wwv_cancel.gif "class alt"Y"="delAddressFromBook"id =" "| par.ID | "" / > "
    ELSE ' < img src = "" #IMAGE_PREFIX #add.gif "alt ="N"class ="addAddressToBook"id =" "| par.ID | " » / >"
    Mapped END
    of nominal addresslist

    My dynamic action uses the '.addAddressToBook' jquery selector, and it fires properly the first time I click Add image. My pl/sql code runs correctly and ist updated IR.
    It is, when I click the second time in another entry, nothing happens. Looks like the javascript works always something.

    Updating of the IR ist done with javascript gReport.pull ().

    Thanks in advance.

    Florian

    Florian,

    If you bind an event javascript on an element that is get updated then after that it gets updated, it will no longer be bound to her event. It is possible to use the event to this situation (http://api.jquery.com/on/) delegation, he took advantage of event bubbling (http://www.quirksmode.org/js/events_order.html) and handles the event to an element that is not updated to a kind of AJAX call.

    Edit
    The following code binds the event listener for the document, but it does that raise the event handler if the initiator of the event matches the selector ".addAddressToBook". I chose the document object, because each page has a document, but you can consider using a parent element that is much closer to the initiator of the event.

    //jQuery 1.7+ use "on"
    $(document).on("click", ".addAddressToBook", function(event){
        alert('addAddressToBook Clicked');
    });
    
    //jQuery1.4.2+ use "delegate"
    $(document).delegate(".addAddressToBook", "click", function(event) {
        alert('addAddressToBook Clicked');
    });
    

    Good luck
    Janet Tyson

    Published by: Tyson Janet on January 23, 2012 07:27

  • Is my getRow (key) a few cards short of a bridge or what?

    JDev gurus,

    With the help of Studio Edition Version 11.1.1.3.0

    The following code is meaningless to me. The getRow (key) method does not have the key, but findByKey(key,1) not?


            RowSet basePriceListRows = (RowSet) basePriceList.getAttribute("BasePriceListRowsView");
            System.out.println("BPL Rows: " + basePriceListRows.getRowCount());
    
            Key key = new Key(new Object[]
                { basePriceList.getAttribute("BasePriceList"),
                  (String) part.getAttribute("PartNumber") });
            System.out.println("Key: " + key);
    
            Row test1 = basePriceListRows.getRow(key);
            Row[] test2 = basePriceListRows.findByKey(key,1);
    
            if(test1!=null)
            {
              System.out.println("Test1 found.");
            }
            else
            {
              System.out.println("Test1 NOT found.");
            }
            if(test2[0]!=null)
            {
              System.out.println("Test2 found.");
            }
            else
            {
              System.out.println("Test2 NOT found.");
            }
    BPL Rows: 139
    Key: oracle.jbo.Key[1 01-303 ]
    Test1 NOT found.
    Test2 found.
    Also, if I put in a System.out.println (test1.getAttribute ("PartNumber")); JDeveloper does not print. No code after will, execution and there is no error message.

    UH... What?

    Will be

    In general, as mentioned above, we do not recommend use getKey() unless you know the line you are looking for has already been played in all of the lines. Otherwise, the getRow (Key) API through the lines of the rowset (retrieve the lines of the DB if necessary) so that the key match. In the worst cases, if your VO sorts data and the key you are looking for is the last line of the play of lines, you'll get all the lines in the database just to find what you are looking for.

    On the other hand, findByKey() a request targeted by using the attribute key (s) and retrieves the database line if it can already find the line in the cache.

    Is there a reason that your VO wouldn't read all lines?

    For example, if you have an EmpView with ORDER BY EMPNO and you called setMaxFetchSize (5) on the VO EmpView during execution, then it will only look for 5 rows and the getRow() for an employee with key as 7934, would not be recovered because is not in the five first lines of EmpView results in a sorted order.

  • My AS3 buttons only work the first time

    I set up my buttons so that are each a movieclip with 'plus' and 'out' States/frame labels. They exist in the main timeline. Their control actionscript code is located in a frame on the main timeline and the holding frame that actionscript is about even in the main scenario where the buttons are introduced. I use actionscript 3.

    The buttons have been implemented so that they navigate to another image in the main scenario and on this frame are a film. The dimensions of the movie are smaller than the main stage so that the buttons are still accessible when each video is played.

    The problem is that my buttons work only once - by that I mean they go to the correct place when you click on the first time, but when they are clicked they still sail elsewhere.

    Totally doing my head in trying to find a solution and if someone can help and show me what I'm doing wrong, what would be really useful. Here is the code I used for the buttons...

    Stop();


    function mainBtnOver(event:MouseEvent):void {}
    event.target.gotoAndPlay ("over");
    }
    /////////
    function mainBtnOut(event:MouseEvent):void {}
    event.target.gotoAndPlay ("out");
    }

    CLICK INDIVIDUAL BUTTON FUNCTIONS
    function mainBtn1Down(event:MouseEvent):void {}
    gotoAndPlay ("01Movie");
    }
    function mainBtn2Down(event:MouseEvent):void {}
    gotoAndPlay ("02Movie");
    }
    function mainBtn3Down(event:MouseEvent):void {}
    gotoAndPlay ("03Movie");
    }
    function mainBtn4Down(event:MouseEvent):void {}
    gotoAndPlay ("04Movie");
    }
    function mainBtn5Down(event:MouseEvent):void {}
    gotoAndPlay ("05Movie");
    }


    Button 1 listeners
    mainBtn1.addEventListener (MouseEvent.ROLL_OVER, mainBtnOver);
    mainBtn1.addEventListener (MouseEvent.ROLL_OUT, mainBtnOut);
    mainBtn1.addEventListener (MouseEvent.CLICK, mainBtn1Down);
    2 button headphones
    mainBtn2.addEventListener (MouseEvent.ROLL_OVER, mainBtnOver);
    mainBtn2.addEventListener (MouseEvent.ROLL_OUT, mainBtnOut);
    mainBtn2.addEventListener (MouseEvent.CLICK, mainBtn2Down);
    Button 3 listeners
    mainBtn3.addEventListener (MouseEvent.ROLL_OVER, mainBtnOver);
    mainBtn3.addEventListener (MouseEvent.ROLL_OUT, mainBtnOut);
    mainBtn3.addEventListener (MouseEvent.CLICK, mainBtn3Down);
    Button 4 listeners
    mainBtn4.addEventListener (MouseEvent.ROLL_OVER, mainBtnOver);
    mainBtn4.addEventListener (MouseEvent.ROLL_OUT, mainBtnOut);
    mainBtn4.addEventListener (MouseEvent.CLICK, mainBtn4Down);
    Key 5 listeners
    mainBtn5.addEventListener (MouseEvent.ROLL_OVER, mainBtnOver);
    mainBtn5.addEventListener (MouseEvent.ROLL_OUT, mainBtnOut);
    mainBtn5.addEventListener (MouseEvent.CLICK, mainBtn5Down);

    I'm sure it's doing me something very stupid - I am very new to AS3. Any help much appreciated.

    Thank you :-)

    If the image labels, you have video clips that have the content of your presentation, you must use gotoAndStop ("frameLabel") instead of gotoAndPlay ("frameLabel"). There is no need to play the main scenario, when you go to and present one of these clips. I don't know if that's your problem, but... Using your code, I had no problem.

    In addition, you can configure your animated buttons in a way that eliminates the need to have your ROLL_OVER and ROLL_OUT event. It is not necessarily better, but just another method. Although I could use other ways to animate a button, I don't want to reduce the code to use the buttons in an interface and use only the CLICK in the majority of cases.

  • iMac 5 k end of 2014 for the first time enable FileVault stuck Reboot

    Hi all

    I just got the FileVault on my iMac 5 k end of 2014 with fusion drive for the first time.  It is said that a restart is required. He could not restart and stuck on the black screen. No apple logo, nothing.

    Here are the steps I've tried

    1 restart by holding the power button and turning it back on

    2. reboot into recovery by now cmd + R Mode

    3. enter in disk utility

    4 did not have a first-aider for my drive of fusion

    5 tried by clicking file > open or remove encryption (both selections are greyed out)

    6. I tried to enter the Terminal. Typed in fdesetup disable (no command found, Ditto for sudo)

    7. click on the left upper Apple logo > disc start > selected my drive > chose Unlock > typed my password > selected reboot > same, stuck.

    I need help.

    Thanks in advance

    Hello. Please let me know if figure you it out. Your question sounds the same I am facing with my Mac mini (published earlier today). Turn on Filevault and all I get is a white screen.

  • first time using flash in private browsing content opens the non-private

    I already asked this question (using firefox, 20 at the time) about 1 year. I leave a link to this thread for reference https://support.mozilla.org/pt-PT/questions/955788#answer-425110.

    2 computers (a desktop and a computer laptop operating system: windows 7 and firefox 29.0.1 in both).

    Basically what is going to happen, it's that if you open a private window and then use a flash content, first time you do this, the non-private window opens. You can easily return to the overing private window right-click the firefox icon and choosing the private window. A work about already presented by jscher2000 is to have a tab with flash content before opening the private browsig.
    I raised this issue once again just to ask if there is any chance to fix this in the near future?
    Thanks a lot for any input and please accept my greetings.

    HI JoaoNT,
    Please check back with your question. It is a pleasure to help again. I understand that when you view flash content, the new window the opens the private window is no longer a private window. (forgive the verbosity)

    I'll try to replicate this >

    1. A private window open a youtube.com page
    2. Right-click on one of the videos suggested to open in a new tab.

    Results: It is opened in a new private window.

    An other stepsbased in the stages of the adobe bug
    (note I have updated to 12 and will also try that in 13)

    1. Open the test page
    2. Right click on the first result
    3. Choose the option "open in a new window of private".

    Results: see private window to the top.

    It seems good, what version of Flash are you using? I don't have a Netscape or other plugins, if these are disabled if the issue persists. (Most likely it will not make a difference)

  • Music player "Shuffle all" don't work the first time, you must go back and tap it again every time that the application starts, what gives?

    On the Open of ZTE, the music player "Shuffle all" failed the first time, pressed, instead, it will just load a song at random and read the rest of the list in the order; It's not until I click "Shuffle all" and back again it will play in fact mixed. Is this a bug? All solutions?

    Hello

    Yes, I think that it is a known bug in Firefox OS v1.0. Bug 883781.

    The bug is marked as resolved in Firefox OS v1.1. Once that ZTE full update to version 1.1 the bug on your device.

    version 1.1 of Firefox OS was officially released yesterday. If all goes well, it won't be too long before it reaches the Open of ZTE. See here for more details:

    Update OS of Firefox (1.1)

    I hope this helps.

Maybe you are looking for