SelectBooleanCheckbox  and  entity deletion in DB

Hi,
In HtmlDataTable i am displaying entities from DB , and i am associating a checkBox to each entity(dynamic for n nuber of entities), when user select on a check box that corresponding entity i have to capture in Backing bean to make deletion.
There is no relation ship between checkbox and entity displayed in data table( i can't associate coz im getting Data Layer from another person). is there any way to do this .

im getting this excetion when doing like u said in jsf page
javax.servlet.ServletException: javax.servlet.jsp.JspException: java.lang.IllegalArgumentException: argument type mismatch
before my data table
<h:dataTable id="my_docs" value="#{ManageDocument.listOfDocuments}" binding="#{ManageDocument.markedForDeletion}" var="myDocItem" bgcolor="silver">
         <h:column>
            <f:facet name="header"> <h:outputText value="Select" />
            </f:facet>
            <h:selectBooleanCheckbox>
            </h:selectBooleanCheckbox>
         </h:column>
         <h:column>
            <f:facet name="header">
             <h:outputText value="File Name" style="font-size:smaller;width:150px;" />
           </f:facet>
           <h:outputText value="#{myDocItem.fileName}" />
         </h:column>
         <h:column>
          <f:facet name="header">
            <h:outputText value="File Size" style="font-size:smaller;width:150px" />
          </f:facet>
          <h:outputText value="#{myDocItem.fileSize}" />
         </h:column>
         <h:column>
          <f:facet name="header">
            <h:outputText value="Date Uploaded" style="font-size:smaller;width:150px"/>
          </f:facet>
            <h:outputText value="#{myDocItem.dateFileUploaded}" />
         </h:column>
      </h:dataTable>after ur suggesion
<h:dataTable id="my_docs" value="#{ManageDocument.listOfDocuments}" binding="#{ManageDocument.markedForDeletion}" var="myDocItem" bgcolor="silver">
         <h:column>
            <f:facet name="header"> <h:outputText value="Select" />
            </f:facet>
            <h:selectBooleanCheckbox binding="#{uidocument.selected}">
            </h:selectBooleanCheckbox>
         </h:column>
         <h:column>
            <f:facet name="header">
             <h:outputText value="File Name" style="font-size:smaller;width:150px;" />
           </f:facet>
           <h:outputText value="#{myDocItem.fileName}" />
         </h:column>
         <h:column>
          <f:facet name="header">
            <h:outputText value="File Size" style="font-size:smaller;width:150px" />
          </f:facet>
          <h:outputText value="#{myDocItem.fileSize}" />
         </h:column>
         <h:column>
          <f:facet name="header">
            <h:outputText value="Date Uploaded" style="font-size:smaller;width:150px"/>
          </f:facet>
            <h:outputText value="#{myDocItem.dateFileUploaded}" />
         </h:column>
      </h:dataTable>and in backing table the Binding with HtmlDataTable.
before ur suggesion my dataTable value attribute is value="#{ManageDocument.listOfDocuments}" ,
which arrayList of Documents
after ur suggesion it is arrayList of MyDcouments

Similar Messages

  • Does refreshing a report that includes Scope and Entity require elevated rights / permissions?

    This relates to the following thread:
    Why does refreshing a report in the EPM Add-In need to edit the Ownership Manager?
    Since I've received no responses on the above thread, I thought I might approach this from a different angle.
    If we have a report that includes both Scope and Entity, in SAP BPC 10 NW (801 SP03) / EPM Add-In 10.0 SP 16 Patch 1, does this require a user to have elevated permissions in order to refresh the report?  I ask because I have users who have rights to view reports, but they error out when they try to refresh a report's data, only where Scope and Entity are used in the report.  The tasks that error are:
    P0081
    Run Consolidation Tasks
    P0082
    View Ownership Manager
    P0083
    Edit Ownership Manager
    I do not understand why any of these should even be called by refreshing the report, as the user is simply "viewing" data that already exists in the environment.
    Can someone please shed some light on this or point me in the direction of how I can go about resolving this issue?
    Your help is greatly appreciated.
    Jeff

    Hi
    I am facing the same issue despiste the elevated app permission as per
    https://msdn.microsoft.com/en-us/library/office/jj822159.aspx?f=255&MSPPError=-2147217396
    I still had the error 401
    the solution for me was
    Under list settings -> advanced settings update the Create and Edit access settings from "Create and edit all items"
    the add the user the right to add only ( no edit , no delete) .
    Eric Caron

  • Generator Locales and Entity Message Bundles

    I'm using 7 different languages within my application and have set the Internationalization entries within the JHeadstart Application Definition Editor to use a propertyFile and I have supplied all the relevant generator locales. That is all working fine. My confusion now lies with the generation of MsgBundles when creating validation rules on an entity attribute. On doing that a EntityImplMsgBundle java class is created but only for the default locale.
    1. Is there an easy way to generate the different localised entity MsgBundles
    2. better still, how can I change the entity validation to use my JHeadstart generarted property files rather than a MsgBundle java class ? I thought I may be able to copy the rule name and message over to my properties file and then delete the MsgBundle but I can't seem to delete the MsgBundle
    Many thanks for your help. Cheers,
    Brent

    Brent,
    1. No, you have to manually create those files
    2. Not possible either, even if you do not use declarative validation but do it in code and throw a JboException, the message bundle must be a java class.
    I believe that in JDev 11, you can have centralized resource bundles, like in JHeadstart.
    You might try the JDev forum for better alternatives though, since these are really ADF BC specific issues.
    Steven Davelaar,
    JHeadstart team,

  • How do i move my itunes library from one acc't to another and then delete itunes on the old acc't?

    I would like to set up a media acc't for my family of four to listen to our music library and view all of our photo's.  Then I would like to delete Itunes from my personal acc't.  I have been able to establish a media acc't for all family member's and opened Itunes (i can see all of my purchased songs, but not the ones i have downloaded from personal CD's) to use however, i need assistance in moving over all my music and then deleted the old Itunes from my personal acc't.  Can anyone assist me?
    Thanks.

    Locate the song files in the Finder, drag them to a location in the /Users/Shared/ folder, load the shared iTunes library, drag them into the open iTunes application window, and delete the old iTunes library. If desired, you can move the old iTunes library to the Shared folder instead of individually moving the music files.
    (81922)

  • I tried to sync my iPod touch to a new laptop and it deleted all of my music and videos. I called tech support and they told me to email iTunes and they would give it back to me. How do I do this??

    I  tried to sync my iPod touch to a new MacPro laptop and it deleted all of my music and videos. I called tech support and they told me to email iTunes and they would give it back to me. How do I do this??

    Correct. When you update via iTunes all synced media that is not in your iTunes library will be lost.
    As IO said before:
    You can redownload most iTunes pruchases by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    I do not think it included audio books.

  • How do I reinstall Adobe Acrobat XI Pro from the Creative Cloud? I was deleting another program and accidently deleted Acrobat.

    How do I reinstall Adobe Acrobat XI Pro from the Creative Cloud? I was deleting another program and accidently deleted Acrobat.

    Sweetmelissa63 for information on how to reinstall Adobe Acrobat XI Professional please see CC desktop lists applications as "Up to Date" when not installed - http://helpx.adobe.com/creative-cloud/kb/aam-lists-removed-apps-date.html.

  • If I delete my songs from my "Downloads" folder, have them in my "Trash" and then delete them from my "Trash", will I still be able to play the songs on my iTunes or will they be deleted on my iTunes as well?

    I want to clear some space on my Mac since it is filling up and I don't have much room left on it. I want to delete all my songs from my "Downloads" folder and then delete them from my "Trash" to free up space however, I'm worried that if I do this then iTunes will not play any of the songs I deleted.
    Will I still be able to play my songs on iTunes even if they are not in my "Downloads" or "Trash" folders?
    Thank you.

    All tracks in iTunes (if you use default settings) should be in various artist and album folders in the main media folder in the iTunes folder. You can right click a track to reveal its location in Finder.  If there's a copy there then it doesn't really matter what you do with other copies.
    I have never downloaded from iTunes but I thought it placed files directly in the correct locations, or is this some other downloads folder to which you are referring?
    Normally if you download a file from another source and add it to iTunes by dragging it there, or using the Add To menu item, it places a copy of the file in iTunes.  You can discard the original, but if you're concerned you can check which copy iTunes is actually using as above.

  • I deleted my playlist off my iPhone (on my phone not on iTunes) and it deleted the playlists from my iTunes and I NEED them back...how?

    It seems TOO MANY people are having this same problem.  Honestly, Apple is just dirt now...more problems than now.  I need help asap. 
    I went onto iTunes and clicked on my phone's name in the upper right corner.  I have my music set on 'selected playlists, artists, albums, and genres' which this usually means, I just click below to which playlists I want on my phone.  However, none of my playlists were updating (none of the new songs I added to my playlists already on my phone were transfering) so I went on my phone and simply deleted the playlists there, then was planning on re-syncing them on my phone from iTunes on my computer.  BUT when I went onto my iTunes, somehow ALL my playlists were deleted EVEN THOUGH I ONLY DELETED THEM OFF MY PHONE NOT MY COMPUTER!  THESE PLAYLISTS ARE EXTREMELY IMPORTANT AND I NEED THEM BACK NOW!  I tried using the backup, which was done before the playlists were deleted, but of course Apple, it did not work.  Great job, there.  I just want these playlists back, both on my computer and on my phone.  I have plenty of space free to hold these playlists/songs.
    Apples exceptional failure of everything iPhone and iTunes related is too maturfully pathetic I don't know if I have the patience or time to deal with this company anymore, even though I have been along for the ride since the first iPhone came out.  Congratulations, Steve Jobs would be so happy with how far Apple's sunk.
    Problems:
    Video's not synching
    Playlists not updating
    Playlists deleting from iTunes when simply deleted from iPhone
    New songs not transfering to iPhone
    My battery jumping from 30% to 5% in less than a minute
    My phone completely shutting down at 30% and not turning back on, saying it needs to be charged
    When above happens, and I plug it in, after it turns back on, it pumps straight to 30% battery again
    Lock screen not always locking, even though it is set to 1 minute

    I'm not ranting at you, I'm ranting at Apple. 
    Yes, I backed it up.  It did not work when I tried this to get my playlists back.

  • I have an ipod 8generation and i deleted all of my things to download a few shows then deleted them to get my things back but it wont let me it says i have no space. Why?

    I have an ipod 8generation and i deleted all of my things to download a few shows then deleted them to get my things back but it wont let me it says i have no space. Why?

    Hello,
    Sometimes that you see something it saves in cache, (or could be that the show is in progress to be deleted) so here's the problem.
    Just restart your device to see if the cache of the shows deletes themselves.
    Then try to import your music again.
    Cheers.
    You can use this tool to quickly clean all the cache that needs to be deleted-
    http://www.imobie.com/phoneclean/

  • HT4847 I have a new iphone and cannot delete the backup from icloud.  It says that it is in use.  I have read some of the other threads and it only seems to be haphazard solutions. Is there a definite way to fix this? I am not able to change icloud accoun

    I have a new iphone and cannot delete the backup from icloud.  It says that it is in use.  I have read some of the other threads and it only seems to be haphazard solutions. Is there a definite way to fix this? I am not able to change icloud accounts.

    Follow the steps in wjosten's post here: https://discussions.apple.com/message/13356770#13356770 (for Windows, substitute Outlook in step 2).

  • Unable to delete email from trash bin.  How do I do this?  If I select and chose delete, it doesn't.  What am I doing wrong?  My grand daughte is using my iPad and I don't want her to see some of the mail there.

    Unable to delete email from trash bin.  How do I do this?  If I select and chose delete, it doesn't.  What am I doing wrong?  My grand daughte is using my iPad and I don't want her to see some of the mail there.

    There are two ways that should work. When you are in the trash folder, you can swipe on the email in the list - left to right - and a red Delete button should pop up. Or you can select - Edit - at the top of the list of messages and then select the message and tap delete.
    Not sure exactly how this works - but if you have restrictions enabled - especially since you let your grandchild use the device - that may be restricting what you can do in the mail app. Go to Settings>General>Restrictions. If you have it set to on - turn it off or see if you have mail restricted.

  • Problem with trigger and entity in JHeadsart, JBO-25019

    Hi to all,
    I am using JDeveloper 10.1.2 and developing an application using ADF Business Components and JheadStart 10.1.2.27
    I have a problem with trigger and entity in JHeadsart
    I have 3 entity and 3 views
    DsitTelephoneView based on DsitTelephone entity based on DSIT_TELEPHONE database table.
    TelUoView based on TelUo entity based on TEL_UO database table.
    NewAnnuaireView based on NewAnnuaire entity based on NEW_ANNUAIRE database view.
    I am using JHS to create :
    A JHS table-form based on DsitTelephoneView
    A JHS table based on TelUoView
    A JHS table based on NewAnnuaireView
    LIB_POSTE is a :
    DSIT_TELEPHONE column
    TEL_UO column
    NEW_ANNUAIRE column
    NEW_ANNUAIRE database view is built from DSIT_TELEPHONE database table.
    Lib_poste is an updatable attribut in TelUo entity, DsitTelephone entity, NewAnnuaire entity.
    Lib_poste is upadated in JHS table based on TelUoView
    I added a trigger on my database shema « IAN » to upadate LIB_POSTE in DSIT_TELEPHONE database table :
    CREATE OR REPLACES TRIGGER “IAN”.TEL_UO_UPDATE_LIB_POSTE
    AFTER INSERT OR UPDATE OFF lib_poste ONE IAN.TEL_UO
    FOR EACH ROW
    BEGIN
    UPDATE DSIT_TELEPHONE T
    SET t.lib_poste = :new.lib_poste
    WHERE t.id_tel = :new.id_tel;
    END;
    When I change the lib_poste with the application :
    - the lib_poste in DSIT_TELEPHONE database table is correctly updated by trigger.
    - but in JHS table-form based on DsitTelephoneView the lib_poste is not updated. If I do a quicksearch it is updated.
    - in JHS table based on NewAnnuaireView the lib_poste is not updated. if I do a quicksearch, I have an error:
    oracle.jbo.RowAlreadyDeletedException: JBO-25019: The row of entity of the key oracle.jbo. Key [null 25588] is not found in NewAnnuaire.
    25588 is the primary key off row in NEW_ANNUAIRE whose lib_poste was updated by the trigger.
    It is as if it had lost the bond with the row in the entity.
    Could you help me please ?
    Regards
    Laurent

    The following example should help.
    SQL> create sequence workorders_seq
      2  start with 1
      3  increment by 1
      4  nocycle
      5  nocache;
    Sequence created.
    SQL> create table workorders(workorder_id number,
      2  description varchar2(30),
      3   created_date date default sysdate);
    Table created.
    SQL> CREATE OR REPLACE TRIGGER TIMESTAMP_CREATED
      2  BEFORE INSERT ON workorders
      3  FOR EACH ROW
      4  BEGIN
      5  SELECT workorders_seq.nextval
      6    INTO :new.workorder_id
      7    FROM dual;
      8  END;
      9  /
    Trigger created.
    SQL> ALTER SESSION SET NLS_DATE_FORMAT = 'DD-MON-YYYY HH24:MI:SS';
    Session altered.
    SQL> insert into workorders(description) values('test1');
    1 row created.
    SQL> insert into workorders(description) values('test2');
    1 row created.
    SQL> select * from workorders;
    WORKORDER_ID DESCRIPTION                    CREATED_DATE
               1 test1                          30-NOV-2004 15:30:34
               2 test2                          30-NOV-2004 15:30:42
    2 rows selected.

  • I updated to iOS7 and my deleted photos came back.  How do I make sure this doesn't happen again?

    I updated to iOS7 and my deleted photos came back.  How do I make sure this doesn't happen again?  I want to get rid of the ones I already got rid of, but if they just keep coming back that will be a waste of time. 
    Can anyone help?
    When I sync with itunes, the photos sections says I am syncing with my iphone, so I assume that anything I physically delete from my iphone should not be showing up again.  Right?
    Thanks in advance.
    CM
    PS- I don't use iphoto. 

    Is that really how sync works?
    If you read this, http://support.apple.com/kb/ht4236  and this http://support.apple.com/kb/TS1314  they don't actually make how sync works very clear.  I had thought that syncing my device to itunes would allow I tunes to copy what was currently on my phone so that I could restore that information when needed ie if your phone dies and you need to do a clean install of the iOS system, you always have what is currently on your phone saved in Itunes.
    Specifically reading this:
    To delete Camera Roll photos and videos from your device
    There are two methods to delete items from the Camera Roll:
    Import the Camera Roll to your computer and choose to delete items after import.
    Delete photos and videos from your device manually:
    Open the Photos application and open the Camera Roll.
    Tap the Action button.
    Tap each photo to select it.
    Tap the Delete button.
    Note: For photos and videos you want to save, import them to your computer before deleting them from the Camera Roll.
    What you seem to be saying is that iTunes saves every contact, message, photo etc and when you click sync, it reuploads things that you deleted?  This seems like it should work the opposite.  Make a mirror image of my iPhone on my computer, not make a mirror image of my computer onto my iPhone.  You delete things for a reason. 
    Help- anyone else?  Is razmee209 right?

  • Pages crashes when opening any document on iPad 3 Latest version.   I could find on the net and finally deleted Pages from my device and reinstalled it. Still when I try to create anew document or open a document it just cr

    Pages crashes when opening any document on iPad 3 Latest version. I tried everything I could find on the net and finally deleted Pages from my device and reinstalled it. Still when I try to create a new document or open a document it just crashes out.

    Try this:
    Make sure IOS is updated to latest version
    Reboot device by pressing both the home button and sleep/wake (power) buttons at the same time for 10-15 seconds until the apple logo appears on the screen, then let go.
    If that doesn't work then reset the device by going to settings/general/reset/reset all settings

  • I am having problems gettting my mail to work ... Mac telling me that my start up disk id full and to delete some files to free up space ... have done this but when i open mail from the dock it just brings up the colour wheel and nothing happening

    I am having problems gettting my mail to work ... Mac telling me that my start up disk id full and to delete some files to free up space ... have done this but when i open mail from the dock it just brings up the colour wheel and nothing happening ... it shows when you right click on the mail icon that " application not responding"

    If your hard drive is getting full, you need to free up, at least, 20 GBs of space on your iMac's hard drive.
    If your Mac is running a fairly recent version of OS X, here are some general guidelines.
    Follow some of my tips for cleaning out, deleting and archiving data from your Mac's internal hard drive.
    Have you emptied your iMac's Trash icon in the Dock?
    If you use iPhoto, iPhoto has its own trash that needs to be emptied, also.
    If you use Apple Mail app, Apple Mail also has its own trash area that needs to be emptied, too!
    Other things you can do to gain space.
    Delete any old or no longer needed emails and/or archive to disc, flash drives or external hard drive, older emails you want to save.
    Look through your Documents folder and delete any type of old useless type files like "Read Me" type files.
    Again, archive to disc, flash drives, ext. hard drives or delete any old documents you no longer use or immediately need.
    Download an app called OnyX for your version of OS X.
    When you install and launch it, let it run the automatic ans S.M,A.R.T. tests,  then go to the cleaning and maintenance tabs and run the tabs that have the ability to clean out all web browser cache files, web browser histories, system cache files, delete old error log files.
    Typically, iTunes and iPhoto libraries are the biggest users of HD space.
    move these files/data off of your internal drive to the external hard drive and deleted off of the internal hard drive.
    If you have any other large folders of personal data or projects, these should be archived or moved, also, to the optical discs, flash drives or external hard drive and then either archived to disc and/or deleted off your internal hard drive.
    Good Luck!

Maybe you are looking for