AF:table with Pagination. How to get to the specific page?

Hi all!

I use jDev 12.1.3

I have the following case, based on the Employees of HR schema table.

In a stubborn workflow, I have 2 pages.

The 1era page has a read-only table with the employees. The peculiarity is that the instance of the opinion of the employees is tuned with Page Ranging (lazy employees is a huge table).

Af: table has autoHeightRows = "15" scrollPolicy = 'page' and the iterator has RangeSize = 15.

By clicking on a button, the user goes to the second page, where the selected record should be changed (with the help of the SetCurrentRowWithKey method). Then, the user wants to go back to the first page.

The question starts here.

Assume that the user is on the page with the table and wants to change an employee who is on the page of the 3rd (paging) of the table. After the change of registration, the user wants to return back to the page 'table', but not on the first page (of the paging), but 3rd page.

So, how I put the current page and the return line to the initial selection of the user?

I ' tried scrollToRangePage() but nothing seems to happen.

Thank you very much

~ Apostolos

You can do it if you save the page the row is turned on, or the beginning of the beach page. Her edit you the line and after you have finished editing, you set the rear range.

To set a table on a specific page, you use a RangeChangeEvent where you specify the table, oldstart, oldend, newstat index values and newend.

Before you begin to modify or end edit, you can calculate the values of the iterator. Something like

{} public void onGotoPage (ActionEvent actionEvent)

BindingContainer bindingContainer is BindingContext.getCurrent () .getCurrentBindingsEntry ();.

get the number of page to goto

AttributeBinding attr = bindingContainer.getControlBinding("gotopage1") (AttributeBinding);

Entire NewPage = (Integer) attr.getInputValue ();

If (newPage == null) {}

return;

}

first page starts at index 0 so subtract 1 from the number of page

-newPage;

DCIteratorBinding iter = bindingContainer.get("EmployeesView1Iterator") (DCIteratorBinding);

calculate the old and new rage for the RangeChangeEvent

range int = iter.getRangeSize (); Note both the table and we take the RangeSize of the iterator page size

int oldStart = iter.getRangeStart ();

int oldEnd = oldStart + Beach;

Newstat int newPage = * rank;

int newEnd = Newstat + range;

Find the table

UIViewRoot iViewRoot is FacesContext.getCurrentInstance () .getViewRoot ();.

UIComponent table = iViewRoot.findComponent("t1");

create the event and fire

Event RangeChangeEvent = new RangeChangeEvent (table, oldStart, oldEnd, Newstat, newEnd);

table. Broadcast (Event);

Update table

AdfFacesContext.getCurrentInstance () .addPartialTarget (table);

}

I've marked the essential parts "BOLD".

Timo

Tags: Java

Similar Questions

  • Start Mozilla Firefox changed yesterday my page. It is heavy. How to get back the start page I had before?

    The new start page fills the entire screen. It is the slider against the top margin to reveal the bar showing the tabs and the 'X' to close in the HR area. Inside, the start page covers the box 'Start' and the information on the bottom row. Now, I can't click on bookmarks - I have to click on the logo, then use the side bar to access the bookmarks. I also lost the ability to switch between the net and the document I'm trying.
    This new configuration may be suitable for some people, but the previous one was simpler and better for me. How can I get it back and prevent the update again for this version of Firefox?

    Hello, sounds like you have accidentally activated in mode full screen - please press F11 to leave again.

  • How to get out the mode safe mode with msconfig.

    I'm working on my computer and need to start in safe mode. I ran the msconfig and reboot the laptop. I get to the login screen, but when I get my username and password it tells me that the user name and password is not correct. How to get out the mode safe mode with msconfig.

    When you run msconfig to get set to Safe Mode, you just activate/check the option/SafeBoot at startup. INI tab or did you do something else?

    There is some malware that if you use the/SafeBoot option, you will not be able to use your system again until you remove the switch/SafeBoot the boot.ini for you can boot normally.

    Maybe it's not your exact problem, but I will never suggest to anyone to use the option / SafeBoot never again - too risky when troubleshooting since you can always start new or will never connect again until you remove the switch/SafeBoot.

    Anywho, if that's what you have done, you can start in the XP Recovery Console and then either make a new boot.ini file containing the switch/SafeBoot or simply rename the boot.ini file, you have something like boot.ini.old if you don't have a boot.ini file (I know it seems like a weird idea).

    In a single partition configuration, XP is not even a file boot.ini to boot.  XP will complain if there is no boot.ini file, but will always start very well without one (non-believers - try it!).

    After you get booted up and logged in, you can rename boot.ini.old in boot.ini and run msconfig to remove the option/SafeBoot, and never use it again.

  • I was change in 'Basic' in the 'Development' of Lightroom module, but in some sort the 'Basic' program has disappeared, and I find myself with more detailed editing tools that I don't want. How to get back the menu basic edition?

    Question: I've been change in 'Basic' in the 'Development' of Lightroom module, but in some sort the 'Basic' program has disappeared, and I find myself with more detailed editing tools that I don't want. How to get back the menu basic edition?

    Hello

    Click on the window inside Lightroom go to control panel > and select Basic from there.

    Thank you

  • How to get all the style of paragraphs and their policies of an indesign file and write all the info with info para in a txt file with scripts

    @

    How to get everyone how to get all the style of paragraphs and their policies of an indesign file and write all the info with info para in a txt file with scriptingstyle and their policies of an indesign file and write all the info with info para in a txt file with scripts

    Hello

    Try this,

    var doc = app.activeDocument,
        pstyles = doc.allParagraphStyles,
        report = "";
    for(var i =0;i
    

    Kind regards

    Cognet

  • How to get back the bar under the top search bar?

    How to get back the bar under the bar top search which were listed in all things, such as facebook, outlook, uncle henry wtc that I dragged from the entries in the top search bar? I lost him after a refresh. I also can't connect to mozilla accounts with my user name and password. Thank you.

    You can enable (or disable) built-in Bookmarks Toolbar in Firefox using one of the following methods to view the list of the toolbar:

    • Right click on a place empty on the tab bar (or the button '+')
    • Press the Alt key to activate the classic menu bar > view > toolbars
    • in customize mode > show/hide toolbars

    Does it work? And your bookmarks are still there?

    About your accounts of Mozilla, what kind of accounts are - websites? Sync? etc.

  • How to get a normal white page when open a new tab, using ' + '.

    When you open a new tab, using '+', I want Firefox to open the blank page. But it shows all my sites from the browsing history. 'White page' is with images-hyperlinks to these Web pages! How to get a normal white page without images-hyperlinks in navigation history without deleting all browsing history?

    Click on the button 'Hide new tab page' in the upper right corner of the page

  • How to get to the carmera on this computer?

    original title: carmera

    How to get to the carmera on this computer?

    Hello

    1. What is the number of brand and model of your computer?

    2. what version of Windows you are running on the computer?

    If you are referring to the webcam built into your computer, then check the documentation that came with the computer to turn it on, let me know if it's something else.

    See the link below

    See to believe

    http://Windows.Microsoft.com/en-us/Windows-Vista/seeing-is-believing-use-a-webcam-to-bring-your-Instant-Messaging-to-life

    You might want to know

    What version of the operating system Windows am I running?

    http://Windows.Microsoft.com/en-us/Windows7/help/which-version-of-the-Windows-operating-system-am-i-running

  • I built in webcam on my laptop but I don't know how to get to the top to see?

    original title: built in Webcam

    I built in webcam on my laptop but I don't know how to get to the top to see?

    What should I go for?

    First of all, your system must have appropriate drivers for your webcam and then you need an application to use it.

    You could get the app and drivers both with your PC you can use these, otherwise go the manufacturer's Web site and find what is appropriate for your system.

    You can try Windows Update for drivers too.

  • How to get around the problem of printing from the printer driver Adobe PDF for Notepad instead of a PDF Document?

    How to get around the problem of printing from the printer driver Adobe PDF for Notepad instead of a PDF Document? I tried the tool 'Repair Acrobat Installation' and other problems listed on the forums, but nothing worked. In the Notepad document is the following ' % [ProductName: distill] % X937B6DD4 not found, using the mail service.» X07BB154E not found, by using the messaging service. % [Page: 1] %% % [Page: 2] % % [Page: 3] % % [Page: 4] % % [Page: 5] % X4EEBB81F not found, by using the messaging service. %% [Error: invalidfont;] OffendingCommand: show; ErrorInfo: CharOffsets ss %% [Flushing: rest of work (end of file) will be ignored] %% %% [warning: PostScript error.] No PDF file produced. ] %%."

    The log file indicates that the Distiller cannot find fonts and besides, fonts with very weird names. (These names can often appear when printing from an application, WPF such as Internet Explorer 9, 10 or 11.)

    My best guess is that the problem is with the options set for the PostScript of PDF from Adobe printer driver instance. Exit the application you were initially impression since. Open the Adobe PDF printer Properties . Then click the Advanced tab. Then click on the button default printing . This should produce a significant window default print Adobe PDF is already opened in the Adobe PDF settings tab. On this tab, there is a checkbox to rely on system only fonts; do not use fonts in the document. If this box is checked, uncheck it and press apply , then OK. Then go to the general tab and press the button Preferences giving the window entitled Adobe PDF printing preferences. Again once, look for the box to rely on system only fonts; do not use document fonts. If this box is checked, uncheck it and press apply , then OK. Then back in the Adobe PDF Properties dialog box main, press apply (if it is enabled), and then click OK. Re-enter the app you were original print and try to print again. Let us know if that fixes the problem.

    -Dov

    PS: Unfortunately, rely on fonts system only turned on by default, causing problems for many applications. I always recommend turning it off (i.e., unchecking it)!

  • How to get to the BIOS on new XPS 8700?

    How to get to the BIOS on new XPS 8700?

    This is a brand new machine with Win 8.1, a SSD boot drive, etc.

    I need to get in the BIOS so that I can prepare for the recovery with Acronis backup program. This program will generate a recovery disk or flash drive. If my boot drive does not start, I will use the recovery point, but I need to have the BIOS first try to start from that before the C drive.

    Reading messages on the Acronis forum, I heard for the first time on UEFI - I barely understand what it is - but apparently, a replacement for the BIOS?

    Is it likely that my new machine has UEFI rather than a BIOS? and how do to it? Press a function button for the system to start? A person on the Acronis forum suggested to win 8.1 to restart and hold the SHIFT key while doing.

    I do not experiment on my PC unless I am sure it is the right method. This is my 4th Dell-all previous versions came with a manual that could give me the answer to a question like that.

    The "missing manual" is perhaps on the Dell website?

    Joe

    Your system is UEFI.

    As the UEFI systems start very quickly, you start typing (do not hold) F2 as soon as you power on open configuration. Otherwise, it will just start normally from the hard disk.

    Alternatively, you can start to type F12 as soon as you turn on that should give you a start with options menu to boot from the optical drive or USB. Note: To boot from USB FlashDrive bootable is connected before you turn on the system, otherwise it does not appear as an option in the menu of F12.

    See page 82 in the Manual.

  • Att/yahoo updated my email, which suggests to select Firefox as the browser, but how to get back the taskbar?

    Att/yahoo updated my email, which suggests to select Firefox as the browser, but how to get back the taskbar?

    Hi, you are missing the taskbar Windows, which usually appears at the bottom of the screen? Firefox normally does not block the taskbar if you do not use the mode full-screen. To check if you are using full-screen, you can use the F11 key that toggles between full screen and normal mode.

    Or if you meant the menu bar (File, Edit, View), you have two options:

    (1) display on request: press the ALT key to press F10 to display bar temporarily

    (2) time full display: you can use one of the following methods to view the list of the toolbar, and then select menu bar it:

    Success?

  • My favorite toolbar after installation of El Capitan is on the left.  How to get to the top when I open Safari?

    My favorite toolbar after installation of El Capitan is on the left.  How to get to the top when I open Safari?

    Chances are you have the sidebar option.

    To hide the side, go to view and click the Hide sidebar

  • How to get back the original format of e-mail? Is there a choice? I feel that outlook has too many restrictions!

    How to get back the original hotmail format? Is there a choice? I feel that outlook has too many restrictions. For example, I have to send an e-mail during the... For some reason, Outlook does not allow me to.

    Unfortunately, if you were auto update, there is no option to return back.  Microsoft upgrades everyone to Outlook.com in the coming weeks

    http://Windows.Microsoft.com/en-us/Windows/Outlook/auto-upgrade-Outlook-FAQ
    If you have specific questions, we would be happy to help but Outlook.com is here to stay.
  • My watch clock: 2012,03,2012 at 20:10. How to get back the Date please.

    My watch clock: 2012,03,2012 at 20:10.  How to get back the Date please.

    http://www.ehow.com/how_2052285_change-time-date-Windows-XP.html

    http://support.Microsoft.com/kb/307938

    UTC/GMT is 20:12 on Friday, February 24, 2012

Maybe you are looking for

  • How to make a Time Capsule external hard drive backup

    Hi I just got a time capsule airport which I backed up on my iMac.  I have an external seagate HD plugged on my mac via USB.  I have a catalog photo large library and adobe lightroom on the external hard drive I use and change almost every day. These

  • ink cartridges Dell v505 update are striking against the inside when I plug

    my ink cartridges are striking against the inside when I plug. I unplugged it for about 4 days it started the on print alignment and in the Middle he came on the screen, I was out of ink.  I went and got new replaced ink cartridges and he started to

  • XP Pro key validates the AOC but no cd... What can I do?

    XP Pro key validates the AOC but no cd... What can I do?  Had a reconstructed virus so a system of 2005.  Have no HP recovery without cd XP Pro but who have a valid key and coa... what I can do.  I have read this and other forums and it may be that i

  • Flash Adobe 11.4 x 32 drive does not work.

    I have Windows XP Home Edition 2002 SP3 and it wouldn't will come after I have download and click on "run". No idea if my version of xp is 32-bit or not, but it says that its required for the program. Should wat I do?

  • OfficeJet 6700: Utilities for HP unable to detect internet connection

    It is a minor problem, but needs to be addressed.   When I try to use either HP printer install Windows Wizard, I get "Sorry, you don't have an active internet connection."    This makes the utility does not work.    I get a similar message of HP pri