How to get detailStamp working in an af:table when using request scope ?

<af:table var="row" id="t1" value="#{listUsers.users}" summary="Userlist" binding="#{listUsers.ATable}" [...]
<af:column sortable="false" headerText="Username" id="c13" filterable="true">
<af:outputText value="#{row.username}" id="ot13"/>
</af:column>
<f:facet name="detailStamp">
<af:panelFormLayout rows="4" labelWidth="33%" fieldWidth="67%" inlineStyle="width:795px" id="pfl1" labelAlignment="start" >
<af:group id="g1">
<af:panelLabelAndMessage id="plamNumber" label="Number" for="number">
<af:outputText value="#{row.address.number}" id="number"/>
</af:panelLabelAndMessage>
I feel there is nothing special with this.
But I've tested with 2 rows in my table and when I disclose rows, I get random results :
sometimes I get the details related to the row disclosed, but sometimes I get the details of the other row.
I've read several posts on the subject but none really helpful.
Another problem ; I've noticed that when I disclose or close a row, getUsers() is called, this method fetch the data from the DB, any way to prevent it ?
For the second problem, the solution I see would be to : change scope of listUsers to session instead of request, fetch from the DB only when "refresh", not when "detailStamp",
but I've no clue on how to actually do the "only when part"
Thanks in advance,
JP

Ok when I change the scope of ListUsers to session it's "ok" since I only load the list from the DB once (just like the demo that does not have this problem since the demo does not use the DB)
When I change the scope for request and that the page is refreshed then the object ListUsers is "recreated" and the data reloaded : that's the expected behavior
So I prefer to have the scope sets to request
The problem is that when a user disclose/close a detailstamp and that the scope is set to request,
then the data is reloaded from the DB
because apparently this event acts like a "refresh"
because this event (disclose/close) cause the destruction of what is in the request scope ...
That's my understanding, probably few mistakes, I'm beginning with ADF/JSF
It seems that when I load the data from the DB, it's not always in the same order, causing the problem itself probably, which is not ADF related BUT ;
what I would like to know is how to (elegantly) prevent the event of "disclose/close" to act like a "refresh" ?
Because even if I fix the "not ADF related problem" (if there is one), loading the list from the DB each time, appears really useless and the DBA won't like me !
A solution could be to leave the session scope, but then my question would be ;
*how to know I've to reload from the DB ?"
I could just "reload it on page load", seems ok to me but
I'm not sure it's the best, I would like to have your opinion, I've found this article for the "on page load" part ;
http://groundside.com/blog/DuncanMills.php?title=adf_executing_code_on_page_load&more=1&c=1&tb=1&pb=1
Thanks,
JP

Similar Messages

  • How to get index of the item from table when user double click on an item

    Can anyone tell me how to get the corresponding index of a table in which
    elements are listed as array of strings? I am looking for the index of the
    item being double-clicked on?
    Thank you in advance
    Cheers,
    NQ.

    Hi NQ,
    Although the question is not thouroughly clear, I can give a few suggestions. You can use the property node for table to refer to any particular row or column of the table. The correpsonding elements in the property node will be "SelStart", "SelSize" etc. Just as a side thought, the index of a table starts with (0,0).
    I am attaching a test file. Please see if it helps you in figuring out what exactly you want. This example VI is just to help you try different options under property node (if you havent already tried)to get what you want.
    Regards,
    Sastry Vadlamani
    Applications Engineer
    National Instruments
    Attachments:
    test.vi ‏27 KB

  • How to handle the failed records from the table when using DB Adapter

    Hi,
    I am reading some records from table using DB Adapter inside my synchronous BPEL process. Say like reading 100 records from table in between after successful reading of 90 records an error occured in 91st record due some various reasons(like DB down, Connection interrupted etc.). Then how to handle this situation, whether i have to read all the records from the begining and is there any option to continue from where it stopped reading.
    Can please anybody help me out in the regard?
    Thanks in advance
    Regards,
    Aejaz

    we had the same requirement some time ago and had two option:
    1. ask the R/3 development team add a deletion indicator in the table (and thus not actually deleting the record). this deletion indicator could then be used like for any other standard datasource
    this option was however refused, due to huge data volume after a while
    2. at the end of the load we copied the ZTABLE1 to ZTABLE2. then in the begin of the load (day after) we compare the data of table1 to table2. entries available in table2 but not in table1 are deleted, and we put a 'D'. in deletion indicator; as we only keep the deleted entries for one day, the volume of the new table is acceptable.
    M.

  • Is fast boot not working for you? This is how you get it working correctly...

    Ok so after two days of trying to register on this site, the 50th activation email finally worked...
    Anyway I was trying to figure out why fast boot wasn't making much of a difference it seemed like once it booted quick but may have just been random. My setup is Z77a GD65 with two Samsung 830 128GB in RAID 0.
    It was taking about 30 seconds from pushing the power button to getting into windows and that was with fast boot enabled. That did not seem right. After messing around for a while and researching I came across many mixed reviews about doing this or doing that. Windows 8 Feature... The windows 8 feature is from my understanding and research for secure boot...
    If your just wanting the faster boot times using fast boot. Just enable MSI Fast Boot, and install the Fast Boot utility so you can get back into the bios. When you enable fast boot, this disables usb devices etc so you can't get into the bios when booting. This little utility is really useful as it will boot you from windows right into your bios etc. KEEP READING STILL NEED TO DO MORE!!!!!
    Now for fast boot to work correctly you need to make sure you installed windows 8 in uefi mode. I read a couple people ask this question but I don't think they got the right answer or people just said yea I have a uefi motherboard and windows 8. That is not what people have been asking you.
    To get this working correctly format a flash drive using rufus while choosing your win 8 iso.
    You can get that here and it explains it and the settings to choose. I had to break up the link as the forum would not let me post the link. Maybe a mod can fix the links.
    eightforums .com/tutorials/15458-uefi-bootable-usb-flash-drive-create-windows.html
    After that is done you should then see in the bios a boot option for a UEFI usb flash drive. Make sure your boot mode is using UEFI. Otherwise it will be using legacy mode and not show uefi devices. I selected UEFI only just to make sure. Then choose this uefi flash drive as your first boot device and save and reboot to install windows from this uefi flash drive.
    It should look like this
    Once your at the install screen delete your partititons from the drive you are going to install windows on. So that it is unallocated. Then select new and apply. This will create 4 partitions. Here is a nice quide for doing that and explains it all. eightforums .com/tutorials/2328-uefi-unified-extensible-firmware-interface-install-windows-8-a.html
    Basically your partitions should look like this.
    Once you have installed windows you will then know if you installed in uefi as your splash screen will be different. Instead of just the MSI splash screen you will then see the windows loading square/circle as well on this same splash screen. You will now have a boot option called UEFI Windows Boot Manager. Select that one as your first boot device and then enable MSI Fast Boot.
    Sorry if this post is cluttered I will add some more pics and clean it up in a bit. It's really early.

    Quote from: RemusM on 22-February-14, 01:41:27
    If one SSD fails, you lose the data on both SSDs.
    In your case, you lose 128 GB.
    Period.
    You continue to argue on silly things and you miss the main point:
    RAID 0 on SSDs does not make any sense.
    RAID 0 (striped volume) has been designed for spinners.
    It's a workaround to reduce the access time (a few miliseconds) caused by the mechanical parts of the HDD.
    For a SSD (with a few microseconds access time) does not bring any boost.
    http://www.tomshardware.com/reviews/ssd-raid-benchmark,3485-10.html
    On contrary: shorter lifetime for both SSDs
    So (for the last time) the best solution in your case is:
    Put the OS on the first SSD (drive C) and the other programs/games on the second one (drive D).
    There is no need to kill both SSDs at the same time (for nothing).
    And finally, talking about this silly "fast boot" of yours:
    5,10,20, or 30 seconds is something irrelevant.
    Simply because you get the max speed on an "empty" OS only.
    With every installed app (most of them come with bloatware anyway), your boot time is getting longer and longer.
    On the other hand, who cares if it takes 10 or 20 seconds?
    Only someone with mental problems needs to boot up the computer all day long.
    99.99% of the users boot up the computer once or twice per day.
    From my point of view, this topic is closed.
    You're free to think and do anything you like.
    I take it you are extremely hard headed and only view this from your opinion. Even with your logic of "If a drive fails you lose 128GB of data is wrong." If a drive fails I would lose 256GB of data if the RAID was full...
    The way you originally worded it made it sound like you thought RAID 0 only uses the capacity of one drive... I was trying to clear that up by saying it uses the capacity of both drives and ends up being 256GB capacity but I guess you couldn't wrap your head around what I was trying to say.
    Think what you want... but everyone I know on all of the tech forums I have been on for years, "EVGA, HARD, etc" 99% of users prefer running OS in RAID 0 on SSD's. Anyone with half a brain does not store important files on a RAID 0 array. I even created a new thread on EVGA asking how members prefer installing Windows with two identical SSD's. Most of them said they always run a RAID 0 for OS on SSD's. A couple others said they prefer running Windows/Programs on one SSD, and Games on the other. Usually that is because when they reformat they can simply re initialize the steam directory on the second SSD and then you don't have to reinstall all of your games.
    I respect your opinion but saying RAID 0 on SSDs does not make any sense is crazy talk. And that fast boot is only for people with mental problems lol... you sir have issues. Why do you think they made this feature? Why do people OC? A lot of people do it because it is fun, they are enthusiast, and they like to push a system. Why do people buy SSDs if its only a few seconds faster when you only turn on your computer once twice a day? When you only open an app or launch a game a couple times a day.

  • TS1814 I have an iPhone 3GS and was trying to restore it. Now it won't let me activate my phone and my itunes tells me I have no SIM card inserted when I do. Any ideas on how to get it working again?? I'm dying without it!

    I have an iPhone 3GS and was trying to restore it...
    Now it won't let me activate my phone and my itunes tells me I have no SIM card inserted when I do.
    Any ideas on how to get it working again?

    This means that the phone was previously hacked to carrier unlock (unauthorized unlock), and when you restored, the hack was removed and it became re-locked to its original carrier.  It will now accept a SIM card only from that carrier.
    Your only option is to contact the carrier it's locked to and enquire if they will provide authorized unlocking.  Not all carriers will unlock and those that do usually have requirements and qualifications - i.e. you have to be a current or former customer in good standing.

  • Ive just upgraded to Mountain lion, I was using Safari and tried to use iCloud tabs. When I open it up there are no tabs there, anyone have any ideas on how to get it working?

    Ive just upgraded to Mountain lion, I was using Safari and tried to use iCloud tabs. When I open it up there are no tabs there, anyone have any ideas on how to get it working?

    Can you check system update? I think I did a system Update 1st, a day before installing OSX Lion and there is a Safari update. If not try logging in iCloud.

  • I installed Photoshop Elements 12 and its icon is on desktop, but when I launch it, I get error messages.  How to get it working?

    I installed Photoshop Elements 12 and its icon is on desktop, but when I launch it, I get error messages.
    How to get it working?

    My guess is that you won't be able to do much if you threw away the serial number before using it.  The serial number will not have been externally visible on the box though... doing that would make it available for use by anyone who sees the box in any store.
    To locate the serial number:
    http://helpx.adobe.com/x-productkb/global/find-serial-number.html
    If you remain unable to locate the serial number you might need to head back to wherever you purchased the product to confirm whether or not you might have thrown out the serial number or if it could even possibly have never been provided.
    Beyond that you need to resolve serial number issues with ASdobe Support directly.  Here is a link for chat:
    Serial number and activation chat support (non-CC)
    http://helpx.adobe.com/x-productkb/global/service1.html ( http://adobe.ly/1aYjbSC )

  • Hi My Iphone 4 keeps on turning off with no reason and there is no way of turning it on. any advice of how to get it working?

    Hi My Iphone 4 keeps on turning off with no reason and there is no way of turning it on. any advice of how to get it working?

    I guess but that was what I was on earlier but it wasn't of much help.
    I need to chat with an apple person but don't know how if I don't have a phone accessible.
    Is there a way to connect thru a laptop or something?

  • How to get a work roster into ical

    Hi there
    Does anyone know how to get a work roster into ical so I can then sync it with my iphone and view my roster on my phone?
    Any help would be greatly appreciated.
    All the best
    Enigma

    Depends on the format of the "work roster" - if it's a calendar file, you can import it with File menu > Import. If it's some other file type, you may not be able to import it and need to enter the events manually instead.
    You might try the iCal forum.

  • How to get QTP11 work with FF17. Unable to get Quicktest Proffessional11 plugin

    How to get QTP11 work with FF17. I have already installed Patch_090 and 0122.
    Unable to get Quicktest Proffessional11 plugin even after creating temp directory, into FF “extensions” directory.
    Please help

    If I may ask is there a recommended version of Firefox for the extension? [http://www.qatutorial.com/files/QTP_Install_Guide.pdf] is all I could find on how to install the software, is this the right add on?

  • How to get af:commandbutton id in java code when it is triggered?

    Hi All
    In my application's homepage, I am using 2 af:commandbuttons and each using action attribute to call a method. Both are calling the same method, and based on its id, it should perform different operations. Could anyone please tell me how to get command buttons id in java code, when it is triggered.
    Regards
    Venkat

    Venkat,
    why not call different methods from each button?
    public String actionButton1()
    return doAction("button1");
    public String actionButton2()
    return doAction("button2");
    public String doAction(String aBuuton)
    if ("button1".equalsIgnoreCase(aButton))
    // do work for button 1
    return "abc";
    }else {
    // do work for button 2
    return "abc";
    }Now you user actionbutton1 for the first button and actionButton2 for the second.
    Or you directly implement two different methods in the bean and call each one directly from the button.
    Timo

  • How to get sum of quantity column in table control

    Hi, expert ,
    Someone can guide me how to get som of qty column in table control ?
    I created a screen with a table control  and has a  qty quantity field .
    I want to show total of qty  in a  field .
    my code like this ...
    PROCESS AFTER INPUT.
      LOOP AT I_tab.
        CHAIN.
           FIELD I_tab-COUNTQTY MODULE  caculate_total_qty .
        endchain.
        MODULE UPDATE_TOTAL_QTY  .
      ENDLOOP.
    but, when I Back to the previous screen
    It's caculate again so I always get wrong Total quantity .
    anyone can help me ...

    Hi , Dhina
    I have another question .
    I use internal table data in table control to update  database table .
    The data in the db will be change ,
    but each record I want to delete in table control , it's still exist in database .
    my code is
    WHEN 'SAVE'
         MODIFY YDSGBT53 FROM TABLE I_YDSGBT53 .
         COMMIT WORK .
      END CASE
    How  to fix my code and let it can change and delete data in database  ?
    or
    when I delete record  in table control I must to delete data in the database too .
    Edited by: TitusFang on Jun 16, 2011 3:21 AM

  • How to get rid of /j2ee prefix from URL when I use the OC4J via Oracle HTTP server

    In 9iAS 9.0.2 Oracle HTTP Server (OHS) is pre-configured to assign requests to the Home OC4J instance via the URL-prefix "/j2ee"/
    For example, the TEST servlet under OC4J would be passed through OHS using:
    http://urmachine:urApachePort/j2ee/TEST
    whereas in the standlone OC4J version, this URL works:
    http://urmachine:urOC4JPort/TEST
    How to get rid of /j2ee prefix from URL when I use the OC4J via Oracle HTTP Server?

    It is getting the url prefix from mod_oc4j.conf
    under /ora9ias/Apache/Apache/conf
    You can read more on this at
    http://otn.oracle.com/docs/products/ias/doc_library/90200doc_otn/web.902/a92173/confmods.htm#1008977
    -Prasad

  • How can I get audio to play from my TV when using hdmi cable?  Video looks great, just no sound.

    How can I get audio to play from my TV when using hdmi cable?  Video looks great, just no sound.
    I've tried plugging the hdmi into the TV directly and the receiver.
    I get video every time.  HBO to Go , Xfinity, ABC, Youtube, etc...
    just no audio.  Any suggestions? 
    I've tried starting the apps then plugging in the hdmi cable.
    I never tried this before I upgraded to IOS 5.

    Claudiamil-
    I had not tried it with mine since upgrading to iOS 5, so I just did.  I'm using a small Vizio HDTV.  I did not try YouTube, but did try several videos and musical numbers.  In all cases there was sound, including stereo when the source had it.
    I assume you are getting sound from the iPad when the adapter is not connected, so the volume is not turned down.  Dah*veed's suggestion to reset may be what you need.
    Fred

  • How to get selected  row index  of a Table ?

    hi gurus,I'm new  to Webdynpro for abap
    I'm displaying    just Flight details in a Table  so
    how to get selected  row index  of a  Table  and need  to be display in Message manager.

    Hi,
    For getting the row index use the following code.
    DATA lo_nd_node TYPE REF TO if_wd_context_node.
      DATA lo_el_node TYPE REF TO if_wd_context_element.
      DATA index TYPE i.
    * navigate from <CONTEXT> to <NODE> via lead selection
      lo_nd_node = wd_context->get_child_node( name = wd_this->wdctx_node ).
      lo_el_node = lo_nd_node->get_lead_selection(  ).
      index = lo_el_node->get_index( ).
    node is the name of the node which is binded to the table.
    For printing the message u can use code wizard.
    Press ctrl-F7. Now Select generate message.
    IN this select the method  REPORT_SUCCESS
    In the code now u can give index to Message text Exporting parameter. Comment receiving parameter.
    Write the whole code in onLeadSelect of the table.
    Regards,
    Pankaj Aggarwal

Maybe you are looking for

  • With holding tax exempt in reporting currency?????????/

    Hi friends, We do not do any with holding, so we have configured witholding tax functionality with 0% now when I ran the 1099-misc report , it shows that certain invoices has portion of amount going into with holding exempt in reporting currency and

  • FEBP - difference too large for clearing

    Hi SAP experts, I am facing an issue after FEBP is run. The error message below appears and in the last line you see the information that the Document was posted in the company code. My question is: Is the document really cleared or the error message

  • Creating a trigger

    Hi all, I need help. I'm stuck. I'm trying to create a trigger in a TABLE_1 table. I've created a view that calls a function and outputs document number(number value) and the addition of business days (number value). VIEW CASE_A DOC BUSINESSD 21562 5

  • PSE8 Trial Hangs After Photomerge

    I have been attempting to get PSE8 to produce Photomerge Panoramas without success.  I am using JPG files that successfully created panoramas in PSE2.  PSE8 creates the panoramas and displays them on the screen.  However, approximately 20 seconds lat

  • Should I continie to wait for 64 bit windows 7 sp1?

    OK I currently have a woefully inadequate setup to edit hdv-PrPro CS4 bundled with Production suite CS4 windows xp pro SP3 32 bit 2 GB ram 1.66GHZ duo core proc- I could go on but I think I can hear the laughs from this side of the computer screen al