How do i put the row into the target rowset

hi am trying to add new row to another table,by selecting taking values from one table to another,i have below code but its not adding vlues,how can i Creates and initializes a new Row object, and insert it into the Row Set.
my code is
    public void updAddMember(ActionEvent actionEvent) {
        // Add event code here...
        //Code to get the bindings for TargetVO :
        OIDOperations   oIDOperations= new  OIDOperations();
        Map<Object,String> mp=new HashMap<Object, String>();
                DCBindingContainer bindings2 =
                   (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
               JUCtrlHierBinding obj = (JUCtrlHierBinding)bindings2.findCtrlBinding("UserDetailsViewVO1");
               ViewObject targetVO = obj.getViewObject();
          DCBindingContainer bindings =
                   (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
               DCIteratorBinding empIter =
                   bindings.findIteratorBinding("DeltMember1Iterator");
        //SourceVO1Iterator is the iterator under Executables section for the SourceVO1 bindings.
        RowSetIterator roleRSIters = empIter.getRowSetIterator();
        RowSetIterator rs1 = roleRSIters.getRowSet().getViewObject().createRowSetIterator(null);
        rs1.first();
               NameValuePairs nvp = null;
               String username = null;
        while (rs1.hasNext()) {
                           Row r = rs1.next();  
                   nvp = new NameValuePairs();                
                   nvp.setAttribute("Organisationid", getorgid());
                   System.out.println("printedorgid" +getorgid());
                   nvp.setAttribute("Username",r.getAttribute("Username"));
                    nvp.setAttribute("Username1",r.getAttribute("Username"));
                   nvp.setAttribute("Firstname",r.getAttribute("Firstname"));
                   nvp.setAttribute("Surname",r.getAttribute("Surname"));
                   nvp.setAttribute("Emailaddress",r.getAttribute("Emailaddress"));                  
                   targetVO.createAndInitRow(nvp);
               rs1.closeRowSetIterator();
               targetVO.getApplicationModule().getTransaction().commit();
    }Edited by: adf009 on 2013/02/14 10:20 AM
Edited by: adf009 on 2013/02/14 3:32 PM

Thanks BalusC,
I awarded you the points in my other forum...
http://forums.sun.com/thread.jspa?threadID=5376871
If a managed bean is declared with request scope in the configuration file with the help of <managed-bean-scope> tag then the life-time of this bean instance is valid only for the current request. Any attempts to make a reference to the bean instance after the request end will throw in Illegal Argument Exception by the server. To avoid these kinds of Exception, component <a4j:keepAlive> is used to maintain the state of the whole bean object among subsequent request.
Example:
<a4j:keepAlive beanName = "#{myClass.testBean}"/>
The "beanName" attribute defines the request scope bean name you'd like to re-use. Note that this attribute must point to a legal JSF EL expression which resolves to a managed mean instance. For example for the above code the class definition may look like this one:
=====================================================
I still have this issue from the last forum...
nohacks wrote:
Do you have and example of this type of filter?
Just implement javax.servlet.Filter. The coding is fairly straightforward. Just add the desired headers to the HttpServletResponse and map the filter on an url-pattern covering the images.
Why are the images obtained from a separate request? Is that a JSF thing?
Certainly not. Did you check the generated response? It's all plain vanilla HTML.

Similar Messages

  • How can I put my bookmarks into the sequence I want, alphabetical or otherwise?

    How can I put my bookmarks into the sequence I want, alphabetical or otherwise?

    http://kb.mozillazine.org/Sorting_bookmarks_alphabetically <br />
    http://kb.mozillazine.org/Sorting_and_rearranging_bookmarks_-_Firefox

  • How do I put a logo into the address line of my browser?

    How do I put a logo into my site so that it shows up on the browser address line at the top of the page?

    Create a favicon.ico file and put it in the root folder, use this site to make one from an existing image file
    Flush your browser cache, it won't appear right away but will show after a few loads

  • How do I put a password into the time cap. so no one can steal my internet

    We have had a time cap for awhile, have backed up our pictures etc. and have a password for that.
    We just got onto wireless internet and we would like to password that part of it. Please explain how we can do this and each time we open up our computers to use, will we have to put in the password?
    Thank you
    Arlene

    You would use AirPort Utility to enable wireless encryption on the Time Capsule. You will want to select WPA2 or WPA because those are much more secure than the older WEP.
    You would need to enter those passwords once on your Macs when you connect to the network. The Mac will then remember the password and use it in the future when needed.

  • How do i put three items into the footer of each page aligned differently

    Hi,
    I am trying to have the footer of each page in my document with 3 items : -
    1 logo aligned left
    1 text (date and page number) aligned centre
    1 logo aligned right.
    If I add the logos as background they only seem to appear on the first page.
    Thanks,
    James

    James,
    It may not be clear in the small screen shot, but I used Tabs for alignment. Here is a close-up of the Ruler:
    You can get even more control if you place the text in a Text Box and place the text box into the Footer, between the graphics.
    Regards,
    Jerry

  • How do I create a 1d array that takes a single calculation and insert the result into the first row and then the next calculation the next time the loop passes that point and puts the results in thsecond row and so on until the loop is exited.

    The attached file is work inprogress, with some dummy data sp that I can test it out without having to connect to equipment.
    The second tab is the one that I am having the problem with. the output array from the replace element appears to be starting at the index position of 1 rather than 0 but that is ok it is still show that the new data is placed in incrementing element locations. However the main array that I am trying to build that is suppose to take each new calculation and place it in the next index(row) does not ap
    pear to be working or at least I am not getting any indication on the inidcator.
    Basically what I am attempting to do is is gather some pulses from adevice for a minute, place the results for a calculation, so that it displays then do the same again the next minute, but put these result in the next row and so on until the specifiied time has expired and the loop exits. I need to have all results displayed and keep building the array(display until, the end of the test)Eventually I will have to include a min max section that displays the min and max values calculated, but that should be easy with the min max function.Actually I thought this should have been easy but, I gues I can not see the forest through the trees. Can any one help to slear this up for me.
    Attachments:
    regulation_tester_7_loops.vi ‏244 KB

    I didn't really have time to dig in and understand your program in depth,
    but I have a few tips for you that might things a bit easier:
    - You use local variables excessively which really complicates things. Try
    not to use them and it will make your life easier.
    - If you flowchart the design (very similar to a dataflow diagram, keep in
    mind!) you want to gather data, calculate a value from that data, store the
    calculation in an array, and loop while the time is in a certain range. So
    theres really not much need for a sequence as long as you get rid of the
    local variables (sequences also complicate things)
    - You loop again if timepassed+1 is still less than some constant. Rather
    than messing with locals it seems so much easier to use a shiftregister (if
    absolutely necessary) or in this case base it upon the number of iterations
    of the loop. In this case it looks like "time passed" is the same thing as
    the number of loop iterations, but I didn't check closely. There's an i
    terminal in your whileloop to read for the number of iterations.
    - After having simplified your design by eliminating unnecessary sequence
    and local variables, you should be able to draw out the labview diagram.
    Don't try to use the "insert into array" vis since theres no need. Each
    iteration of your loop calculates a number which goes into the next position
    of the array right? Pass your result outside the loop, and enable indexing
    on the terminal so Labview automatically generates the array for you. If
    your calculation is a function of previous data, then use a shift register
    to keep previous values around.
    I wish you luck. Post again if you have any questions. Without a more
    detailed understanding of your task at hand it's kind of hard to post actual
    code suggestions for you.
    -joey
    "nelsons" wrote in message
    news:[email protected]...
    > how do I create a 1d array that takes a single calculation and insert
    > the result into the first row and then the next calculation the next
    > time the loop passes that point and puts the results in thsecond row
    > and so on until the loop is exited.
    >
    > The attached file is work inprogress, with some dummy data sp that I
    > can test it out without having to connect to equipment.
    > The second tab is the one that I am having the problem with. the
    > output array from the replace element appears to be starting at the
    > index position of 1 rather than 0 but that is ok it is still show that
    > the new data is placed in incrementing element locations. However the
    > main array that I am trying to build that is suppose to take each new
    > calculation and place it in the next index(row) does not appear to be
    > working or at least I am not getting any indication on the inidcator.
    >
    > Basically what I am attempting to do is is gather some pulses from
    > adevice for a minute, place the results for a calculation, so that it
    > displays then do the same again the next minute, but put these result
    > in the next row and so on until the specifiied time has expired and
    > the loop exits. I need to have all results displayed and keep building
    > the array(display until, the end of the test)Eventually I will have to
    > include a min max section that displays the min and max values
    > calculated, but that should be easy with the min max function.Actually
    > I thought this should have been easy but, I gues I can not see the
    > forest through the trees. Can any one help to slear this up for me.

  • HT2518 How do I transfer music from an external hard drive to my itunes on my mac? I have put the files into the itunes media, but they are not showing up in iTunes!

    How do I transfer music from an external hard drive to my itunes on my mac? I have put the files into the itunes media, but they are not showing up in iTunes!

    Hi, did you try iTunes>File>Import?

  • I recently thought I was updating my Safari browser. When completed, I put all those little files that were on the desktop into the trash. Now my trash is saying it can't be emptied because there are locked files and I don't know how to unlock them

    I recently thought I was updating my Safari browser. When completed, I put all those little files that were on the desktop into the trash. Now my trash is saying it can't be emptied because there are locked files and I don't know how to unlock them or get them out of my trash and they keep multiplying. And to make matters worse, I tried renaming them as pdf files thinking that might do the trick.

    oh boy ! I'd ask you if you knew what kind of files they were or where they came from, but I don't think you could help me a bunch. Try going to the Utilities folder and running Disk Utilities.  If you want to empty the Trash and it won't empty, go to the finder and choose "secure Empty trash". Worse case scenario-you may have to reinstall Snow Leopard, but I don't know what else to suggest. If you have a DVD of Snow Leopard, boot up from that,  and reinstall the OS. This will not touch the stuff you have on your Hard Drive, then you can update from 10.6 to 10.6.8, otherwise Onyx? Maybe those files are part of the OS which needs them to keep running.  if you hold down the Shift key on reboot, you can reboot in Safe mode and maybe you can take the files out of the trash that way
    good luck
    John B

  • How do I delete old email addresses from the pop up list that comes up when I put a letter into the "To" box. These addresses are not in my address book.

    How do I delete old email addresses from the pop-up list that comes up when I put a letter into the "To" box? They are not in my Address Book.  Wrong addresses get in the way and I sometimes select the wrong one.

    Edit the list the comes up when you go to the Window menu and select "Previous Recipients".
    charlie

  • How can i put one scene into JPanel of the swing?

    how can i put one scene into JPanel of the swing?

    980571 wrote:
    ty for the information but i have a problen with JFXpanel when i try to into a panel it doesnt display insideSorry to hear that. If you want assistance with the code, feel free to post the relevant parts of it. Make sure to use \ tags when you do.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How come F10 does not put my clip into the timeline ?

    How come F10 does not put my clip into the timeline ?
    When I pressed F10, the sound icon appears instead.
    Am I missing out something ?
    Thanks

    skalicki` wrote:
    Technically, to make the function keys work you don't need to change the second box to dash. I don't know why I gave that advice, but it isn't necessary. I guess I said that simply because that's what I have it set to.
    The reason there are two boxes is so that you can set Exposé to using both the function keys and the mouse. For example, if I have +All Windows+ set to F9 and Secondary Mouse Button, then it will show all open windows if I click F9 or right-click. That is why you actually don't need to have the second boxes for any of these set to dashes. You could set them to your mouse buttons, or if you wanted you could set the first box of any of these to any function key, as long as it isn't set to the same one as the key you want to use for your shortcuts within FCE.
    I hope this made sense, I realize that I might not have explained it very clearly.
    Message was edited by: skalicki`
    Thanks skalicki, I think I got it. You've been of great help !!

  • How can I put the signature into the data file.

    Hi all,
    I want to put the signature into the data file, mean the data file will be on the top and the signature will be at the buttom.how can i do that?
    Thanks.
    example:-
    dataFile.txt
    Name=...
    Address=...
    Signature=6A07C70E....123FEAB(Hex)

    Thanks for your reply.
    First, i have a keypair (public key and private key).
    I use the private key to initialize the Signature and
    use the Signature to sign a data file ( dataFile.txt) .
    So when i need to comfirm the data file not being modify
    I have to verify the data file with the Signature and the public key.
    I hardcoded the public key in my program so my client (receiver of data)
    need only the Signature file and the data file (2 files).
    So how can i combine the Signature file and the data file into 1 file?

  • I have a macbook.  Whenever I put a disk into the disk drives it keeps ejecting the disk after 2 secs.  How can I fix this?  Thanks

    have a macbook.  Whenever I put a disk into the disk drives it keeps ejecting the disk after 2 secs.  How can I fix this?  Thanks

    I am also having a similar issue. I used Adobe Lightroom and my whole display goes black. Even my laptop screen and the lights on the keyboard go black. I can still hear the fan running, so I assume it is just the display. This is my first Mac and I have had nothing but issues. I think I am going back to Windows after this.

  • How can I display the rows into columns.

    How can I display the rows into columns. I mean
    Create table STYLE_M
    (Master varchar2(10), child varchar2(10));
    Insert itno style_m
    ('MASTER1','CHILD1');
    Insert itno style_m
    ('MASTER2','CHILD1');
    Insert itno style_m
    ('MASTER2','CHILD2');
    Insert itno style_m
    ('MASTER3','CHILD1');
    Insert itno style_m
    ('MASTER3','CHILD2');
    Insert itno style_m
    ('MASTER3','CHILD3');
    Note : The Master may have any number of childs.
    I want to display like this..
    Master child1, child2, child3, .......(dynamic)
    MASTER1 CHILD1
    MASTER2 CHILD1 CHILD2
    MASTER3 CHILD1 CHILD2 CHILD3
    Sorry for disturbing you. Please hlp me out if you have any slution.
    Thanks alot.
    Ram Dontineni

    Here's a straight SQL "non-dynamic" approach.
    This would be used if you knew the amount of children.
    SELECT
         master,
         MAX(DECODE(r, 1, child, NULL)) || ' ' || MAX(DECODE(r, 2, child, NULL)) || ' ' || MAX(DECODE(r, 3, child, NULL)) children
    FROM
         SELECT
              master,
              child,
              ROW_NUMBER() OVER(PARTITION BY master ORDER BY child) r
         FROM
              style_m
    GROUP BY
         master
    MASTER     CHILDREN                        
    MASTER1    CHILD1                          
    MASTER2    CHILD1 CHILD2                   
    MASTER3    CHILD1 CHILD2 CHILD3             Since you said that the number of children can vary, I incorporated the same logic into a dynamic query.
    SET AUTOPRINT ON
    VAR x REFCURSOR
    DECLARE
            v_sql           VARCHAR2(1000) := 'SELECT master, ';
            v_group_by      VARCHAR2(200)  := 'FROM (SELECT master, child,  ROW_NUMBER() OVER(PARTITION BY master ORDER BY child) r FROM style_m) GROUP BY master';
            v_count         PLS_INTEGER;
    BEGIN
            SELECT
                    MAX(COUNT(*))
            INTO    v_count
            FROM
                    style_m
            GROUP BY
                    master;
            FOR i IN 1..v_count
            LOOP
                    v_sql := v_sql || 'MAX(DECODE(r, ' || i || ', child, NULL))' || ' || '' '' || ';
            END LOOP;
                    v_sql := RTRIM(v_sql, ' || '' '' ||') ||' children ' || v_group_by;
                    OPEN :x FOR v_sql;
    END;
    PL/SQL procedure successfully completed.
    MASTER     CHILDREN
    MASTER1    CHILD1
    MASTER2    CHILD1 CHILD2
    MASTER3    CHILD1 CHILD2 CHILD3I'll point your other thread to this one.

  • I have an iPod 2009, must be the 5th generation. How can influence the volume adjustments? It is a nightmare, even when putting the iPod into the docking station of the Bose wave system with the highest volume, it is low.

    I have an iPod 2009, must be the 5th generation. How can the volume adjustements can be influenced? It is a nightmare, even when putting the iPod into the dockingstation of a BOSE wavesystem, the volume cannot be raised. It is much too low. Has anybody had this problem and solved it?

    i guess you could put the aiport utility app on your iphone, click on the aiport express there, it will show you how many devices are connected to it and the mac addresses of those devices.

Maybe you are looking for