AF:table tableSelectMany does not work with DataModel!

Hi all

Our version JDev is 10.1.3

I use the following 'GroundBlog by Duncun Mills' code



< f: facet = 'selection' name >
< af:tableSelectMany text = "select a lot and" >
< text af:commandButton = 'delete '.
action = "#{newMapRequestItem.DeleteRow}" / > "
< / af:tableSelectMany >
< / f: facet >

Set < Key > selectedRowSet = getJobsTable () .getSelectionState () .getKeySet ();

If (! selectedRowSet.isEmpty ()) {}
for {(clé clé: selectedRowSet)}
tableBindingIterator.setCurrentRowWithKey (key.toStringFormat (true));
Do something interesting for example to remove it.
Object result = deleteBinding.execute ();
}
}
and reset the selection
selectedRowSet.clear ();
}


Now the problem is that my table is of type DataModel and has no methods such as getSelectionState(). Please let me know how I can get tableSelectMany to work. I can successfully delete a line using tableSelectOne (using getItemsTableModel.getIndex ()), but this isn't what we want. Also the table (Modedonnees) cannot be changed at this time since the entire application use it. (although we can do manipulations in the deleteRow method)

< af:table var = 'table '.
value = "#{myBean.itemsTableModel}" >

private DataModel = new ListDataModel() itemsTableModel;


Help, please!

Thank you

User,

getSelectionState() is a method of the object of the Table of the ADF (not the underlying model). In your example, the af: table must be bound to a jobsTable property in your beans. Hope it makes sense.

John

Tags: Java

Similar Questions

  • Get all the different values in a table - 'or array elements' does not work with I32

    Hello

    I just found out that "array elements or" does not work with a table 1 d of integer values. I didn't expect that.

    I did a semi quick forum search and did not find a pointer to an effective solution. Can someone give me a hint?

    Do not back my initial intention is to list all the values that appear in an array of integers.

    I thought that if I converted the figures for powers of 2 and or I had solved the problem at hand - only to discover that the elements of array does not.

    If someone could propose a different approach, I'd be happy too.

    I should mention that the execution time is a factor here - I need a fast code, but any suggestions are welcome because they could help me get started.

    Best regards Florian

    Hi Florian.

    try this:

    "Function, it seems, the table of GOLD ' is polymorphic (as written in the context-sensitive help), but does not support arrays of I32. At least the error message means just that...

  • the joystick does not work with windows 8

    Hello

    I have a problem using the joystick; When I used it with windows 7 it works, but when I tried to use it with windows 8, even if it is detected in windows, it does not work with any of my VIs(labview_2012).is there an issue with labview, or there is a solution to solve this.

    Thank you

    I wrote this VI in order to study how to integrate a Joystick into my LabVIEW code (I called the "Joystick Sampler" VI).  It has two parts - the lowest fact function, "Query Input Devices", an array of devices, their names and the number of Axes, buttons and POV "hat", in a table called "Joystick Info".  Look at this attention first, in pay to the array Index that seems to match your gamepad, when plug you it into a USB port.

    The upper code can enjoy (one of the) Joystick (s) at the rate of 10 Hz, which allows you to test the buttons, axes, etc..  Note that the primary function of "Initialize the Joystick" takes a parameter (default = 0) which corresponds to the Index of Joystick, you have discovered by looking at the table Info Joystick (see previous paragraph) - If your joystick, for example, seems to be at Index = 4, thread has '4' in the function Initialize Joystick.

    BS

  • I had a computer repair man replace my hard drive and restore my laptop and now my orginal key does not work with the copy of vista it has installed and it won't validate.

    I had a computer repair man replace my hard drive and restore my laptop and now my orginal key does not work with the copy of vista it has installed and it won't validate how can I solve this
    I have an acer

    Diagnostic report (1.9.0027.0):
    -----------------------------------------
    Validation of Windows data-->
    Validation status: invalid license
    Validation code: 50
    Validation caching Code online: n/a, hr = 0xc004f012
    Windows product key: *-* - XY9X3 - JDXYP-6CJ97
    The Windows Product Key hash: xFQJU8srKsovk6p1Lk1yW93in4E =
    Windows product ID: 89583-OEM-7332157-00211
    Windows product ID type: 2
    Windows license Type: OEM SLP
    The Windows OS version: 6.0.6002.2.00010300.2.0.003
    ID: {F20B4B72-1308-45BE-8F90-95E91A3F0AAF} (1)
    Admin: Yes
    TestCab: 0x0
    LegitcheckControl ActiveX: N/a, hr = 0 x 80070002
    Signed by: n/a, hr = 0 x 80070002
    Product name: Windows Vista (TM) Home Premium
    Architecture: 0 x 00000009
    Build lab: 6002.vistasp2_gdr.110617 - 0336
    TTS error:
    Validation of diagnosis:
    Resolution state: n/a

    Given Vista WgaER-->
    ThreatID (s): n/a, hr = 0 x 80070002
    Version: N/a, hr = 0 x 80070002

    Windows XP Notifications data-->
    Cached result: n/a, hr = 0 x 80070002
    File: No.
    Version: N/a, hr = 0 x 80070002
    WgaTray.exe signed by: n/a, hr = 0 x 80070002
    WgaLogon.dll signed by: n/a, hr = 0 x 80070002

    OGA Notifications data-->
    Cached result: n/a, hr = 0 x 80070002
    Version: N/a, hr = 0 x 80070002
    OGAExec.exe signed by: n/a, hr = 0 x 80070002
    OGAAddin.dll signed by: n/a, hr = 0 x 80070002

    OGA data-->
    Office status: 109 n/a
    OGA Version: N/a, 0 x 80070002
    Signed by: n/a, hr = 0 x 80070002
    Office Diagnostics: 025D1FF3-364-80041010_025D1FF3-229-80041010_025D1FF3-230-1_025D1FF3-517-80040154_025D1FF3-237-80040154_025D1FF3-238-2_025D1FF3-244-80070002_025D1FF3-258-3

    Data browser-->
    Proxy settings: N/A
    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Win32)
    Default browser: C:\Program Files (x 86) \Mozilla Firefox\firefox.exe
    Download signed ActiveX controls: fast
    Download unsigned ActiveX controls: disabled
    Run ActiveX controls and plug-ins: allowed
    Initialize and script ActiveX controls not marked as safe: disabled
    Allow the Internet Explorer Webbrowser control scripts: disabled
    Active scripting: allowed
    Recognized ActiveX controls safe for scripting: allowed

    Analysis of file data-->

    Other data-->
    Office details: {F20B4B72-1308-45BE-8F90-95E91A3F0AAF}1.9.0027.06.0.6002.2.00010300.2.0.003x 64*-*-*-*-6CJ9789583-OEM-7332157-002112S-1-5-21-923204104-223683984-168055983Acer Extensa 5630 Phoenix Technologies LTD.V1.30 20090319000000.000000 + 00070333507018400FA04090409US Mountain Standard Time(GMT-07:00)03ACRSYSACRPRDCT109

    Content Spsys.log: 0 x 80070002

    License data-->
    The software licensing service version: 6.0.6002.18005
    Name: Windows Vista, HomePremium edition
    Description: operating system Windows - Vista, channel OEM_SLP
    Activation ID: bffdc375-bbd5-499d-8ef1-4f37b61c895f
    ID of the application: 55c92734-d682-4d71-983e-d6ec3f16059f
    Extended PID: 89583-00146-321-500211-02-1033-6002.0000-0042012
    Installation ID: 004511331255365043724851364501374781338933223323713385
    Processor certificate URL: http://go.microsoft.com/fwlink/?LinkID=43473
    The machine certificate URL: http://go.microsoft.com/fwlink/?LinkID=43474
    Use license URL: http://go.microsoft.com/fwlink/?LinkID=43476
    Product key certificate URL: http://go.microsoft.com/fwlink/?LinkID=43475
    Partial product key: 6CJ97
    License status: Notification
    Notification reason: 0xC004F063.

    Windows Activation Technologies-->
    N/A

    --> HWID data
    Current HWID of Hash: OgAAAAEAAgABAAIAAwACAAAAAwABAAEAeqjWy6pVxGJ6f0DXhgfkNoBBsJzy9ErM1F/eG4QdrFYqhQ is

    Activation 1.0 data OEM-->
    N/A

    Activation 2.0 data OEM-->
    BIOS valid for OA 2.0: Yes
    Windows marker version: 0 x 20000
    OEMID and OEMTableID consistent: Yes
    BIOS information:
    ACPI Table name OEMID value OEMTableID value
    APIC APIC PTLTD
    FACP INTEL CRESTLNE
    HPET INTEL CRESTLNE
    START PTLTD $SBFTBL$
    MCFG INTEL CRESTLNE
    SLIC ACRSYS ACRPRDCT
    ASF!            OEMID OEMTBL
    SSDT BrtRef DD01BRT
    SSDT BrtRef DD01BRT

    Ah! -in this case, it is not necessary.

    I see from my records that a similar case has been solved by uninstalling and reinstalling the update WAT - KB971033

    Open the Windows Update - click the link view updates installed on the left of the page

    in the list, find the WAT update KB971033, and then uninstall it.

    Then restart and reinstall the update from here - http://support.microsoft.com/kb/971033

    redemarrer restart again, then try to change your product key to the one on the sticker - what is happening this time?

  • It does not work with macbook air 2008! What should I do?

    It does not work with the macbook air 2008 os x 10.5.8. What should I do?

    What does not work?

    More details please!

  • Why do code grayscaler site image Web does not work with Mozilla Firefox, but it does to another browser?

    I just noticed that my code (in my blog site), which is a regular code that allows the image to transform into its form in grayscale and cast its original color, does not work with the Mozilla Firefox browser. But with other browsers, it works. I hope you can help me with this little problem. Thank you!

    Should I use a CSS rule that is similar to:

    filter: grayscale(100%)
    

    This property is not yet implemented in Firefox. It is supposed to be implemented in Firefox 34, according to https://developer.mozilla.org/en-US/docs/Web/CSS/filter

  • iCloud 5.2.1.69 does not work with Outlook 2016 (16.0.6965.2053)

    I installed the new iCloud (v5.2.1.69) and found that it does not work with Outlook 2016 (16.0.6965.2053). There is no button "Options"... "to"Mail, Contacts, calendars and tasks"(see photo). In addition, the iCloud Outlook add-in does not display in Outlook. I tried to reinstall the Office 365 and iCloud, but nothing has changed.

    I have exactly the same problem with the latest version of iCloud.  I have Outlook 2016 and 10 Windows and when I try to install iCloud there saying "set up" next "Mail, Contacts, calendars and tasks.  I left it for hours and it does not go beyond this point.  Outlook displays the listed add-in but it is not doing anything.  I tried to remove all of the Apple software, and then reinstall iCloud without result. I've deleted and reinstalled MS Office and then tried to reinstall iCloud - once again no luck.

  • keyconfig does not work with FF 24.0. Is there a way?

    I just finished rebuilding my PC from a hard drive format. In doing so, I loaded the last 24.0 FF.
    Part of my essential app is a script used keyconfig causes a single copy to send the source page to the Clipboard, where the script analysis. Unfortunately, keyconfig does not work with FF 24.0.

    Writing for easy copy begins to explain how acting on a combination of keys, rather than the action of the mouse, without the use of keycopy - but then told how he has no need, because it's too much effort, and besides - keyconfig exists and does the job - which, I agree, he used, very well - but it is no more.

    What should do? If there is no other way, can I get a downgrade of FF that works with keyconfig?

    There is a new add-on, key config (note the space), but it does not what keyconfig did.

    The end of the thread main support doesn't mention a major problem in Firefox 24: keyconfig 20110522 - mozillaZine Forums.

    Did you install from source: http://mozilla.dorando.at/keyconfig.xpi

    Is the problem that Firefox won't let you activate keyconfig, but the dialog box opens, or you can activate or extension allows you to create shortcuts but they do not work?

  • Downloaded the new firefox and it told me that it does not work with my software, how do I go back to my old version

    I have a mac 10.5.8 software. I downloaded moxilla firefox 24 and has replaced the old version to download. Then I got a message that firefox 24 does not work with my software. How to bring back the old version?

    Hello patcouse, if you want to stay with you older version of the OS, then firefox 16 is the last version available that will run in this environment. for a download link, please refer to the Firefox no longer works with Mac OS X 10.5 (at the end of the article).

  • The CD/DVD does not work with El Capitan 10.11.5 on Macbook Pro

    Hello everyone, I spent the time to research on the here and the other site on why the CD/DVD does not work with El Capitan 10.11.5 on MacBook Pro mid 2009. This discussion forum has said that he will not work with the El Capitan software. Any idea or suggestion? Back to Marverick or Yosemite? I tried to use SMC reset, restart, recovery and still the same issue.

    I thank in advance.

    ~ Mike

    I have my doubts that the (10.11.5) software is the problem.  Are you sure that the DVD player is simply not defective?  Have you tried to clean the lens?  What is the State of the disc?

    Your best option may be a date at a bar in engineering of the Apple store for a FREE evaluation.

    Ciao.

  • SQLite Manager does not work with the v11. Until make you it easier to go back to older versions or newer versions stop, breaking most of the modules I won't use Firefox

    SQLite Manager does not work with the v11. Until that make it easier to return to older versions or newer versions stop, breaking most of the modules I use FirefoxHow to come back at 10 Firefox?

    Update Firefox 23.0 which published yesterday afternoon.

  • Norton Toolbar does not work with Firefox 17, provided Comcast Norton Security Suite, Win 7.

    I have Norton Security Suite provided by Comcast. Norton Toolbar does not work with Firefox 17.0.1 on my Win 7 machine. I lived all the questions on this topic and did all the steps and when I click on "Add-ons", he always says that the toolbar is not compatible. It works with IE, but I prefer to use Firefox.

    I had the same problem in the past. If you call customer Norton service toll-free they have always helped me start (without charges) when I have updated to a new version of Firefox - seems to happen every time even if I run the updates regularly. Hope that this phone help-Norton support is always very friendly and helpful-just Google their 800 number.

  • How can I get a previous version of Firefox. 17 Firefox does not work with online banking

    How can I get a previous version of Firefox. 17 Firefox does not work with banking online edit

    Similarly I cannot now (with v 17) start a download from a Web site to Quicken. At least it seems with four different financial institutions, I've tried. Each of them worked before version 17. I am now on 17.0.1 so that does not solve the problem.

  • The latest Firefox does not work with Mac OS 10.4.11. How can I get the previous version of Firefox?

    I have Firefox 12.0. It does not work with Mac OS 10.4.11. I don't want to have to buy a new computer right now. I would go back to a previous version of Firefox that will work with my operating system. How can I download an older version of Firefox?

    You can find the latest version of Firefox 3.6.x in all languages and for all systems operating here:

  • New iPhone IS does not work with MAC Mini 10.6.8. Apple support says upgrade your iTunes. Its the wrong color icon. WHAT? iTunes is the last 11.4 for my mac. All my music is on my Mac. Help!

    New iPhone IS does not work with MAC Mini 10.6.8. Apple support says upgrade your iTunes. Its the wrong color icon. WHAT? iTunes is the last 11.4 for my mac. All my music is on my Mac. Help!

    That is right. The requires iTunes 12.3.3 and in order to get it, you will need to update OS X to El Capitan. That's how Apple has created for better or worse, I'm sorry.

Maybe you are looking for