SetCurrentRowWithKey return wrong key when range is not the first

I have searchEmployees jsp with a read only table Employees (EmpResultsIterator) that have range navigation of 10 rows, and have selection enable, in the selection facet i create a button called edit with an af:setActionListener: From: #{bindings.EmpResultsIterator.currentRow.key} and To: #{sessionScope.rowKey}
And this button Action property goes to page editEmployees.jsp which have a form based on AllEmployees (AllEmployeesIterator) and the cancel button have code on the managed bean of the page editEmployees (scope request):
public String cancelEditButton_action() {
BindingContainer bindings = getBindings();
OperationBinding operationBinding =
bindings.getOperationBinding("Rollback");
Object result = operationBinding.execute();
DCIteratorBinding dciter = (DCIteratorBinding) bindings.get("AllEmployeesIterator");
ValueBinding vb = FacesContext.getCurrentInstance().getApplication().createValueBinding("#{sessionScope.rowKey}");
Key rowKey = (Key) vb.getValue(FacesContext.getCurrentInstance());
System.out.println("rowKey:"+rowKey);
vb = FacesContext.getCurrentInstance().getApplication().createValueBinding("#{data}");
BindingContext _ctx = (BindingContext) vb.getValue(FacesContext.getCurrentInstance());
DCBindingContainer dcb = (DCBindingContainer)_ctx.findBindingContainer("pages_searchEmployeesPageDef");
DCIteratorBinding dciterb = (DCIteratorBinding) dcb.get("EmpResultsIterator");
dciterb.executeQuery();
dciterb.setCurrentRowWithKey(rowKey.toStringFormat(true));
int indxInRange = dciterb.getCurrentRowIndexInRange();
System.out.println("IndxInRange:"+indxInRange);
int rangeSize = dciterb.getRangeSize();
int rangeStart = 0;
if (indxInRange +1 > rangeSize){
rangeStart = (indxInRange /rangeSize) *rangeSize;
dciterb.setRangeStart(rangeStart);
return "cancelEditEmp";
When i am on the first range of the table AllEmployees rows 1 to 10 it works ok the cancel button, it returns to the correct row and the message IndxInRange it show the correct index number. But when i change to the next 10 rows (the next range) when i edit for example the first row and then press cancel in the message IndxInRange it shows me number 5 and then returns to number five of the first range (rows 1 to 10) instead of stay on range 2, rows 11 to 20. When i am on rows 11 to n and i edit a row and press cancel button it always return to the range of rows 1 to 10.
any help?
Thanks.

Looks guy -- another Apple employee.
Let's get him!!!!
I agree with you 100%.
Wish I had waited, and ain't happy.
But it's part of the being responsible for your own decisions that apparently very few here also subscribe to.

Similar Messages

  • Repairing Library Permissions: But the instructions didn't work  clicking the iPhoto icon with the Option and Command keys opened iPhoto but not the First Aid as promised

    Went to Help.  But the instructions didn't work
    clicking the iPhoto icon with the Option and Command keys opened iPhoto but not the First Aid as promised

    Give this a try:
    1 -be sure to have a current backup of the iPhoto library.
    2 - download and launch http://www.macchampion.com/arbysoft/BatChmod.
    3 - click on the File button, locate and select your iPhoto Library.
    4 - check the Unlock and Apply to enclosed checkboxes.
    5 - make no changes to the other checkboxes
    6 - click on the Apply button.
    OT

  • Making the second gmail account the primary login when TB starts not the first one.

    Hi I added an additional gmail account but can seem to change log-in so it is the second/new account that I log into when I open TB not the first account?

    The mail account listed at the top of Folder Pane and top one in Account Settings is the default mail account.
    To set a different default mail account:
    'Tools' > 'Account Settings'
    or
    'Menu icon' > 'Options' > 'Account Settings'
    * Select the account name you want as default
    * Click on 'Account Actions'
    * Select: Set as Default'
    * Click on OK

  • Receive msg that the new catridge is in wrong position when it is not

    I replaced the ink cartridges and now I a receiving the message that the cartridge is in  the wrong position when they are not.

    Dear Betty2015,
    Please follow the steps of this document:
    http://support.hp.com/us-en/product/HP-Officejet-4600-e-All-in-One-Printer-series/5305049/model/5305...
    I hope you find it helpful.
    Greetings.
    * I am not an employee of HP, my work is voluntary.
    If this answer was helpful and clarify or resolve your problem, please mark the issue as resolved and click my star next to give a kudo as thanks.
    I am not an employee of HP, my work is voluntary. If this answer has been helpful and clarifies or solves your problem, please click the button
    and click on the icon if you want acknowledge the assistance.

  • After upgrade SP-Crawl Error: The SharePoint item being crawled returned an error when attempting to download the item.

    Hi All - After the upgrade, I am getting SP-Crawl Error for certain links. I check the Crawl component has proper permission.
    Google is showing some article like
    http://blog.karstein-consulting.com/2012/04/20/error-in-crawl-log-the-sharepoint-item-being-crawled-returned-an-error-when-attempting-to-download-the-item/
    not sure if this resolution is referring to 2010 and/or 2013. 
    I checked the registery editor. I couldn't find 14.0 under the Office Server.
    Any clue?
    Regards,
    Khushi
    Khushi

    I checked the web application policy the search crawl account has full read permission.
    Crawl
    Fiddler
    Log Error referring the Correlation ID
    01/06/2014 13:05:06.14  w3wp.exe (0x1698)                        0x0118 SharePoint Foundation        
     Monitoring                     nasq Medium   Entering monitored scope (Request (GET:/sites/HR/Shared%20Documents/Benefits/Insurance%20Benefits/Life%20Insurance/Basic%20Life%20and%20ADD)).
    Parent No 
    01/06/2014 13:05:06.14  w3wp.exe (0x1698)                        0x0118 SharePoint Foundation        
     Logging Correlation Data       xmnv Medium   Name=Request (GET:<SiteURL>/sites/HR/Shared%20Documents/Benefits/Insurance%20Benefits/Life%20Insurance/Basic%20Life%20and%20ADD) e8b1679c-0476-70d4-9fcd-2cef5be44461
    01/06/2014 13:05:06.14  w3wp.exe (0x1698)                        0x0118 SharePoint Foundation        
     Authentication Authorization   agb9s Medium   Non-OAuth request. IsAuthenticated=True, UserIdentityName=, ClaimsCount=0 e8b1679c-0476-70d4-9fcd-2cef5be44461
    01/06/2014 13:05:06.15  w3wp.exe (0x1698)                        0x1738 SharePoint Foundation        
     General                        af71 Medium   HTTP Request method: GET e8b1679c-0476-70d4-9fcd-2cef5be44461
    01/06/2014 13:05:06.15  w3wp.exe (0x1698)                        0x1738 SharePoint Foundation        
     General                        af75 Medium   Overridden HTTP request method: GET e8b1679c-0476-70d4-9fcd-2cef5be44461
    01/06/2014 13:05:06.15  w3wp.exe (0x1698)                        0x1738 SharePoint Foundation        
     General                        af74 Medium   HTTP request URL: /sites/HR/Shared%20Documents/Benefits/Insurance%20Benefits/Life%20Insurance/Basic%20Life%20and%20ADD e8b1679c-0476-70d4-9fcd-2cef5be44461
    01/06/2014 13:05:06.17  w3wp.exe (0x1698)                        0x1738 SharePoint Foundation        
     Files                          aise3 Medium   Failure when fetching document. 0x80070090 e8b1679c-0476-70d4-9fcd-2cef5be44461
    01/06/2014 13:05:06.17  w3wp.exe (0x1698)                        0x1960 SharePoint Foundation        
     Monitoring                     b4ly Medium   Leaving Monitored Scope (Request (GET:<SiteURL>/sites/HR/Shared%20Documents/Benefits/Insurance%20Benefits/Life%20Insurance/Basic%20Life%20and%20ADD)).
    Execution Time=20.5461867360237 e8b1679c-0476-70d4-9fcd-2cef5be44461
    01/06/2014 13:05:06.17  w3wp.exe (0x1698)                        0x1960 SharePoint Foundation        
     Monitoring                     b4ly Medium   Leaving Monitored Scope (Request (GET:<SiteURL>/sites/HR/Shared%20Documents/Benefits/Insurance%20Benefits/Life%20Insurance/Basic%20Life%20and%20ADD)).
    Execution Time=29.917489513332 e8b1679c-0476-70d4-9fcd-2549ba3ee9d4
    01/06/2014 13:05:06.17  w3wp.exe (0x1698)                        0x1960 SharePoint Foundation        
     Monitoring                     nasq Medium   Entering monitored scope (Request (GET:<SiteURL>nsurance%20Benefits%2fLife%20Insurance%2fBasic%20Life%20and%20ADD&FolderCTID=0x01200039DA632EEACF264685CF39D68A18F7C8)).
    Parent No 
    Any clue?
    Regards,
    Khushi
    Khushi

  • The SharePoint item being crawled returned an error when attempting to download the item.

    I get this error when I run full crawl.
    The SharePoint item being crawled returned an error when attempting to download the item.
    I did make sure that the crawl account has full read access to the web application. I am able to access the page and site just fine from a browser. I am not sure what is causing the problem.

    On closely looking at ULS logs, this is what I am noticing....
    CSTS3Accessor::Init: SharePointError found in URL
    http://xxxxx/default.aspx header value 0, hr=8004FD0F  [sts3acc.cxx:566]  d:\office\source\search\native\gather\protocols\sts3\sts3acc.cxx 
    CSTS3Accessor::Init fails, Url sts4://xxxx/siteurl=/siteid={c011d5c9-9019-41e8-bf5a-5176739b2b79}/weburl=xxxxx/webid={e42001c0-2ef1-4a8e-8fe5-361d72fa60c2}, hr=8004FD0F  [sts3handler.cxx:312]  d:\office\source\search\native\gather\protocols\sts3\sts3handler.cxx 
    CSTS3Handler::CreateAccessorExD: Return error to caller, hr=8004FD0F            [sts3handler.cxx:330]  d:\office\source\search\native\gather\protocols\sts3\sts3handler.cxx 

  • Jump cuts to beat when NOT the first clip

    Hi I want to add jump cuts to a sound clip that is not the first one in the project.
    After a lot of false starts in trying to get jump cuts onto a clip when the music was just
    (a) attached to an exisitng film clip (green underneath the clip)  - Won't work. or
    (b) a pinned - sound clip first, movie clip second but where the sound does not butt up against another background clip (wrapped in purple)  - Won't work
    I've got it to work where it is background music - sound first, movie second (wrapped round in green). I've opened up the Clip Trimmer, added the beats on the beat with the 'M' key - highlighted the movie cliip - selected Clip>Jump cut to Beat Markers> chosen a frame rate BUT only where the background clip is the FIRST background.
    If you add more songs to a project and go through the same sequence as before the number of frames is not greyed out but the app just doesn't do anything. All the tutorials online only ever show you adding jump cuts to the one and only music track but never to the second one.
    This is v. frustating. Sounds like a bug to me.
    Is there a way of breaking up the project so that it will play as one continuous film and so allowing different parts of the film to be the first piece of background music?
    Thanks.

    Hi Ameer,
    Can you please try with the link "http://servername:portnumber/nwa", this is to open NettWeaver Mobile Administrator, as on the above reply Namitha said there is no Webconsole on MI 7.0(NW2004s) .
    Regards,
    Satyendra

  • Just upgraded to Lion an am discovering that I cannot send email photos from within iPhoto. Error message says bad Internet connection or server not working, when that's not the case. Never happened in Snow Leopard! Help!!!

    Just upgraded to Lion an am discovering that I cannot send email photos from within iPhoto. Error message says bad Internet connection or server not working, when that's not the case. Never happened in Snow Leopard! Help!!!

    what email service - Yahoo mail have been acting up lately
    you can try setting Mail as your email client - it resolves this pfoblem for some people
    LN

  • HT204053 I bought the iPhone 5 today.  I have 2 apple IDs.  I entered the wrong one when I set up the phone.  How can I change it to the other ID?

    I bought the iPhone 5 today.  I have 2 apple IDs and I entered the wrong one when I set up the phone.  How can I change it to the other one?

    Start Over...
    ERASE / Clear All Data
    See  Erase your device  Here  >  http://support.apple.com/kb/HT4137
    Go to Settings > General > Reset > Erase all content and settings

  • Hello guys ..when i try to update any applecation..it puts the first user a ccount and it ask the password which i dont know it cause im not the first user of this i pad ,,,,so how can i changebit to update apps dute to my account name and password???

    hello guys ..when i try to update any applecation..it puts the first user a ccount and it ask the password which i dont know it cause im not the first user of this i pad ,,,,so how can i changebit to update apps dute to my account name and password???
    please answer me

    Delete all apps that were purchased with the former ID and renown load or purchase them with your ID.

  • My iphone 6plus not working not charge but when i run it the first time working half an hour  when you attempt to run it again light up thr screen and showws the apple logo and after the pice screen illuminates red and does not work what do i do now

    My iphone 6plus not working not charge but when i run it the first time working half an hour  when you attempt to run it again light up thr screen and showws the apple logo and after the pice screen illuminates red and does not work what do i do now

    Hello Nadersalah,
    It seems you're experiencing multiple issue with your iPhone. Based on the information you have provided, it appears your iPhone needs to be serviced. The following link should help you get started with the process and has links with additional information on topics such as warranty and service pricing, battery replacement, and express replacement service.
    iPhone Repair and Service - Apple Support
    Thank you for contributing to Apple Support Communities.
    Cheers,
    Bobby_D

  • .. If the app is – in or out of background - (if in background NOT the first app) and the  device locked – when you get a push message and DO NOT response straight away. Later  unlock, click the app icon (which will have a badge on it) and it fails.

    .. If the app is – in or out of background - (if in background NOT the first app) and the  device locked – when you get a push message and DO NOT response straight away. let it fade off then, Later unlock, click the app icon (which will have a badge on it) and it fails to pop up my internal alert box and my notification message is gone(cannot get access to it in code).. other times it works . Including if you tap the messaeg from app centre. (this is all on a iPod 5.1.1).
    Here is someone else with same problem http://stackoverflow.com/questions/7080266/receive-remote-notification-when-ios- device-is-locked-and-im-not-responding-imm

    Tell Apple
    Apple - iTunes - Feedback

  • Hi there, I updated to ML about 3 weeks ago I can not get in to my apps to download it again as when it was installing the first time I decided to skip the part where it said do i want to do the iTunes and iCloud thing. any sugentions how to go back and

    Hi there, I updated to ML about 3 weeks ago I can not get in to my pps to download it again as when it was installing the first time I decided to skip the part where it said do i want to do the iTunes and iCloud thing. any suggentions how to go back and change that part or do I have to download it again.
    Thanks
    GeeRic

    To set up iCloud, open System Preferences > iCloud, and follow its steps to use iCloud

  • I downloded iphoto 11 9.2 and when opened it for the first time and the program started to update my iPhoto library the file got corrupted. That has happened in the two macs I have (both of them rather new and updated to last Lion version 10.7.2).

    I downloaded Iphoto 11 9.2 from the apps store (was on iphoto '09 before version 8.x) and when opened it for the first time it tried to update my photo librery and ended up corupting it to the extreme that I had to get a backup from time capsule and downgrade my iphoto version. I spent yesterday 6 hours at the genius bar in an apple store and they were not able to provide me with any other solution. In the emantime, I have to forget about about photo streaming... Any idea, is this a bug that somebody knows how tp fix?

    In fairness, this isn't an issue in iPhoto 11 but one in your Library. Some file or other in there is damaged and that's what causes the crash during the upgrade.
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.  

  • How To Overcome When User Incorrectly Opened The First Inventory Accounting Period As Next Month

    Hi,
    User has opened the wrong first inventory account period. Instead of Aug-14, next period Sep-14 has been opened. There are transactions which need to be posted in Aug-14. How can I rectify this?
    During my search in oracle support, I found below information but the note is not accessible.
    "Internal Note 400900.1 How To Overcome When User Incorrectly Opened The First Inventory Accounting Period As Next Month"
    Regards,
    Ahmed

    Hi ,
    Try This Way...
       If you want to use the uesr exit in two places...
          If area = xyz
           variable1
         else
             variable2.
    same function module you can use in different places...
    If still not clear send me the full details where you want to use then i can send it to you with sample code.
    Thanks..
    Siri N

Maybe you are looking for

  • Unknown indexes in ABAP dictionary

    Hi all, can anyone help me with the procedure to handle unknown indexes in ABAP dictionary for a BW SAP_BW 350 Production system? The list of some of the indexes are as follows : /BI0/E0CCA_C11~P /BI0/E0FIGL_C01~P /BI0/E0OPA_C11~P /BI0/E0PS_C04~P /BI

  • All_tab_columns says NULLABLE = 'Y' while there is a NOT NULL constraint

    Hi all, I created a table MANT (here is the script) : CREATE TABLE DMI.MANT   MANT     NUMBER(7)                            NOT NULL,   SPER     NUMBER(7)                            NOT NULL,   RANT     VARCHAR2(10 BYTE)                    NOT NULL,

  • Location of iMovie Events and Projects

    Is there some way to reset the default location for the Events & Projects? I'd like to be able to keep them on an external drive, but I can't seem to find the option to change it. Todd

  • Data changed and REUSE_ALV_GRID_DISPLAY

    Hi, I have a problem for get the data which changed on my internal table : wlt_final CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'     EXPORTING       i_buffer_active         = space       i_callback_program      = sy-repid       I_CALLBACK_USER_COMMAND = c

  • I can't sign in to my itunes account. I had email sent to reset password but none came through

    How can I sign in to my account if email sent to reset password does not get sent from itunes to my email?