What's the best way to determine which row a user clicked on via a link?

Hello. Probably simple question, but my googleing is failing me. I have a table, with a column that is a command link. How can I determine which row the user clicked on? I need to take that value, and pass it to a different page to bind it for a different query. I was thinking of setting the result in a session bean? Or is there a better way?
Thanks!

Hi,
You have two options:
1. (Complex) Have your ActionListener evaluate the event to get the source, then climb the component tree up to the table and get the current row data;
2. (Simple) Add a setPropertyActionListener to the link with value="#{var}" target="#{destination}" where var is the table's var attribute value and destination is your managed bean that required the clicked row.
Regards,
~ Simon

Similar Messages

  • What is the best way to get data to a user interface?

    Hi,
    I'm using labview 6i. I have an application with a handful of "core" vi's that actually run my application, doing the data acquisition, analysis, and control. I am currently using these same vi's for my user interface. I also have a number of vi's that contain menu's for configuring the "core" vi's. My questions is, what is the best way to seperate the "core" vi's from the user interface vi's. Global's, data socket, control references, others?
    Thanks for the help.

    Hi Sal,
    I have been a strong advocate of control refnums ever since LV 6i hit the streets. I recomend you look into using them to provide this conectivity.
    You could accomplish this by using a variation on the following.
    In your UI, create refnums for each of the controls or indicators that must be monitored or updated. Pass the appropriate refnums to each of the "core.i's" at program init time. Inside each of the core.vi's, use property nodes to read the control's values when appropriate and similarly for display purposes. (Note: Not all boolean mechanical actions are compatible with this technique. In those case you will have to explicitly write false values after find the control to be true or vise versa).
    By using this technique, you can keep the UI diagrams clea
    n. Depending on your app. the UI diagram could consist of the init's I mentioned above, and a while loop that watches if it's time to exit.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • What is the best way to record a project to an external recorded via firewire. Also, who makes a recorder that works with a mac?

    What is the best way to record a project from the timeline to an external recorder via firewire? Also, who makes a recorder that works with a mac and recordes in realtime? This is possible right?

    While theoretically possible, sometimes the camera people disable recording back to tape from the computer due to DRM (digital rights managment) issues. They will allow tape to tape transfers however.
    Test your process first is all I can advise.
    x

  • What is the best way to configure my iPods and user accounts?

    I'm looking for a little guidance. Here is my situation:
    I am running the latest version of Tiger. It is currently configured with three accounts; mine is the admin. account and each of my two children have their own accounts.
    My account is the one that is used most of the time. All of our calendars in iCal are maintained here including one for each of the kids. Each of the kids has their own Contacts list in the Address Book as well. I currently have a 5G 30GB iPod Video that I sync with iTunes through this account. Shortly, I will be buying an iPod Touch. I want my 30 GB iPod to be the one that has everything on it; it will be the one we take in the car on trips for music. I want the Touch to have some, but not necessarily all, of my music and all of our calendars and contact information. I am looking to use it to replace my Palm as my PDA.
    My son has a 2G Nano which currently syncs through his account.
    My daughter will be getting a 3G Nano soon.
    I will also be upgrading to Leopard very soon.
    Ultimately, I would like each of the kids to have their own iTunes libraries for music and podcasts and to sync their iCal calendars. As I understand it, however, they cannot access their calendars from their own accounts under my current arrangement. I also understand that there are several ways to configure my Mac to work with multiple iPods.
    Given all of this, what is the best thing for me to do? Should I set up all of the kids' iPods to sync through the admin. account so they can get their calendars at the same time? Or is their some way for them to have access to their calendar information from their own accounts under Tiger (or Leopard)? And as far as my two iPods (the Video and the Touch), should they sync through separate libraries, or through one using playlists. I also want to minimize duplicate data wherever possible, be it music or records in iCal and the Address Book.
    Thanks in advance for any suggestions or advice!

    Anyone...anyone? Bueller...Bueller?

  • What is the best way to reconcile and bulk upload user account and entitlement data for an offline resource?

    What we think is the following:
    Create a GTC resource, with flat file reconciliation and spml provisioning.
    Edit the provisioning process to get it work disconnected, based on http://docs.oracle.com/cd/E27559_01/admin.1112/e27149/disconn_resources.htm#CHDDGGHD, we need to modify all SPML sending process tasks to be manual.
    Create a disconnected resource from this resource in a sandbox.
    In this case we do not need to develop custom codes, we only need to modify the provisioning process to be manual.
    Any other solutions or best ways to do it?

    Hi Gergely
    The best way is to use OIM bulk load utility.
    Using the Bulk Load Utility - 11g Release 2 (11.1.2) --> Loading Account Data
    This is very easy and smooth.
    Thanks & Regards
    Shashidhar

  • JSP, BC4J, Row Tag: what is the best way to delete multiple rows?

    Hi all.
    I have a JSP Edit page with three datasources on it. The tables these VO's represent (A, B and C) have a Parent --> Child (1:1 between A and B) relationship and then another Parent --> Child (1:n between B and C) relationship. So the user retrieves one row for Table A, 1 matching row for table B and then between 0 and 6 matching rows for Table C (there cannot be more than 6 because the user can only add these rows from a finite list).
    In my EditSubmit page, I want to perform a RowTag Update action on Tables A and B and they both work no problem. They can't update any rows from Table C but they can add or delete from the list of 0 - 6 rows (the UI is actually a list of 6 checkboxes that they can turn on or off). I figure that the easiest way to handle this rather than keep a list of original values and compare them is simply to delete all existing rows and then add any that the user checked.
    This is causing a problem. I have added a hidden field to the form that picks up the RowKey for each existing row. I can get these RowKeys in the Submit page but cannot find a way of using them with the Delete Row Tag.
    In the end, the only way I could get it to work was the following code (which I stole from the RowTag.java file in jbohtmlsrc.zip):
    if (stakeMailRowKeys != null) {
    for (int counter = 0; counter < stakeMailRowKeys.length; counter++) {
    Key stakeMailKey = new Key(stakeMailRowKeys[counter], stakeMailingRS.getViewObject().getKeyAttributeDefs());
    stakeMailRows = stakeMailingRS.findByKey(stakeMailKey,1);
    stakeMailingRow = stakeMailRows[0];
    // Tell the row to delete itself from the database
    stakeMailingRow.remove();Is there a simpler way to do this (I figure there probably is)? I have another problem with updating the constrained View Objects but I will leave that out of this thread for now.
    TIA,
    Simon

    I don't know if this will help you, but this is what I do:
    I separate the logic into a delete.jsp page. If you can create a View Object that will represent the rows you want to delete and append a where clause to select only the rows you want to delete. Then loop through the view deleting each row. Lets just say you have department and employee tables. and you want to delete employees within a given department. Create a view object that brings back all employees.
    In your delete.jsp find out the department no. by request.getParameter("dept_id");
    then append this to the where clause of your view Object and execute the query:
    vo.setWhereClause(request.getParameter("dept_id");
    vo.executeQuery;
    now loop through and remove the rows:
    while(vo.next){
    vo.getCurrentRow().remove();
    and commit or post changes accordingly.
    There are many ways of doing this action. The easiest way I have found is to create the ViewObjects based on what actions you want to take on them. Make bc4j work for you.
    regards,
    aaron
    null

  • What's the best way to display my lightroom pictures onto my TV via Apple TV? i..e make a slide show

    This was done flawlessly with aperture but Apple doesn't like non-apple products so I was not sure if there was an easy way to do this?
    I want to choose pics from my various collections and see them on my tv using apple tv.  I would rather not COPY the pics to a new location since there are many many gigs of pics and they are all stored on my networked drive.  Anyone using a Mac and apple tv manage to figure out how to do this with Lightroom 5?

    Ok - see if I can do it 'the hard way' ....
    Hi Jeff,
    By "Output Only Folder”, I am suggesting a folder that you export to, via LR, and then never re-import it … it’s just a place to dump the images and since you can re-create them any time, you could delete it at will.
    Here’s the Export Dialogue I have setup from LR to iPhoto …. The optimal output dimensions are 1920 x 1080.  If you crop each image to that ratio, which is the same as 16 :: 9, then the images will fill the screen.  Otherwise just let one of the dimensions max out and the other will fall suit to 1920 or 1080 or lower as the case may be and it will map onto the Plasma at 1 :: 1 – so the Apple TV won’t have to scrunch it again.
    My  output dialog follows.  Note that it sets it up to go under Users/Jim/Caches/iPhoto Cache and then I setup a sub-folder name right underneath which I change (it’s Merc in this example).  So, this becomes the folder in iPhoto – and I can move that into an album or not as I wish.  See the iTunes screen shot a little further down.  The dimensions are setup to 1920 x 1080 at 100%.  The last section, under Post Processing, causes the folder to get read by iPhoto as soon as the Export finishes running and, voila, they are in iPhoto.  I can then clean iPhoto out when I wish.  Yes, it’s a duplicate – but these JPEG’s are smaller than the raws….maybe 300-400kb.
    (side note – the LR Mogrify section is a section you will NOT likely have – it’s merely a plugin I have that allows me to put some borders around output images, watermarks and so forth as the last step in the process – strictly optional but occasionally useful.  It’s not expensive – just google for it)
    Then here’s how it looks when it arrives a second or two later in iPhoto.  So, you can manage these into Albums, etc.  Then look to the bottom for the iTunes interaction.
    From the iTunes menu, select File | Home Sharing | Choose Photos to Share with Apple TV
    Then …..
    Note in the left panel, I have checked Last Import – where this photo was – but you could move/arrange the photos into new Albums and then they would show up and you could select them.  After you select then and Apply, turn on your Apple TV – and it may take a few minutes to sync up.  But then it’s done and you can choose Transitions and so forth on the ATV to nicely display them.
    Jim Camelford

  • HT204406 What's the best way/order with which to remove itunes match from my devices?

    Itunes Match is too much trouble for what it's worth, particularly after the ios 6 changes.  It seems a little difficult to remove it permanently from my devices.  Anyone have any advice on the matter?

    Turn it off on your computer you sync with.
    Settings > Music on your iOS device.

  • What's the best way to check whether a user is logged in or not?

    I have a question about basic session handling.
    I'm running Tomcat 5.0.30 and have a web application where users can register with a username and password, and then log into a "member site".
    What is the best way of making sure that a user actually has logged in or not?
    What I've done in previous applications I've made is that I've just put a simple variable into the users session after he has successfully entered his password (i.e. Boolean loggedIn=true). Then I just test if this flag is true to grant him access to the member site. Is that a smart way of doing it?
    Are there any libraries I can use which handles sessions for me in a secure way?
    All comments and suggestions are appreciated!

    Maintain a flag using session attributes it to one when the user is logs in set it to value.... and change set it zero or invalidate that session... when the user is logged out...
    use something like this while user had logged in
    session.setAttribute("flag",<unique_number>);
    for checking whether the user had logged in or not...
    if(Integer.parseInt(session.getAttribute("flag").toString())=!<unique_number>){
    out.println("The session had expired");
    out.close();
    }

  • What is the best way to manage my iPhoto, which is taking up too much space on my MacBook Pro?

    What is the best way to manage my iPhoto, which is taking up too much space on my MacBook Pro?
    Specifically, I'd like to keep some of my favorite pictures on the laptop while moving the rest to an external hard drive. Is there a way to tag just a few pictures inside an event/album as "favorite", while storing the rest in an EHD, but still keep them connected to the same event/album? I'd like to have just the favorite pictures on the laptop, but when I have the EHD connected,  be able to view all my pictures in the same place, and not have to browse through separate hard drives. Ideally, whether or not a picture is designated as "favorite" will determine where it resides.
    Is this at all possible?
    I have only 7 GB left on my HD and I'm desperately needing a solution!
    Thanks!

    You need two libraries to do this. One on the external with all your Photos. One on the internal with a subset - your favourites. You do it this way to make backing up easier - that is, back up the library with everything, so you're only backing up one.
    Make sure the drive is formatted Mac OS Extended (Journaled)
    1. Quit iPhoto
    2. Copy the iPhoto Library from your Pictures Folder to the External Disk.
    Now you have two full versions of the Library.
    3. On the Internal library, trash the Events/albums/photos you don't want there
    Now you have a full copy of the Library on the External and a smaller subset on the Internal
    Some Notes:
    As a general rule: when deleting photos do them in batches of about 100 at a time. iPhoto can baulk at trashing large numbers at one go.
    You can choose which Library to open: Hold down the option (or alt) key key and launch iPhoto. From the resulting menu select 'Choose Library'
    You can keep the Library on the external updated with new imports using iPhoto Library Manager

  • HT1364 I just bought a new PC and now have ample space on my C drive to house my music Library which is currenlty installed on a external drive.  What is the best way to install and move the itunes library to my C Drive?

    I just bought a new PC and now have ample space on my C drive to house my music Library which is currenlty installed on a external drive.  What is the best way to install and move the itunes library to my C Drive?

    If the entire library is on the external drive then simply copy the iTunes folder into <User's Music> on the new computer, then install iTunes. If you've already installed iTunes you will want to remove the empty iTunes folder in <User's Music> first.
    If it turns out you only have the media folder on the external drive then take a look at this post...
    tt2

  • WHat is the best way for other iphone users to share pictures with me?  I am doing a project which req. people to send me 100 pictures at a time that I'll be putting in my iphoto?

    WHat is the best way for other iphone users to share pictures with me?  I am doing a project which req. people to send me 100 pictures at a time that I'll be putting in my iphoto? thank you.

    ingridlisa,
    I'd suggest to ask them to create Shared PhotoStreams and to invite you to view the streams, see:
    iCloud: Using and troubleshooting Shared Photo Streams
    Regards
    Léonie
    Added:
    that I'll be putting in my iphoto?
    Will you be collecting the photos in iPhoto on your iPhone or on a Mac? On a Mac a Shared PhotoStream requires Mac OS X 10.8.2.

  • I am looking to start developing apps for the iTunes Store, but I have no previous experience. What is the best way for me to start on this? As in which programs and materials must I need and what I need to know. Thanks!

    I am looking to start developing apps for the iTunes Store, but I have no previous experience. What is the best way for me to start on this? As in which programs and materials must I need and what I need to know. Thanks!

    You will need a Mac, with OS X 10.6+ on it, to be able to develop iOS apps.
    There is some info on these pages :
    developer site : https://developer.apple.com
    developing for iOS 7 : https://developer.apple.com/ios7/
    developer support : https://developer.apple.com/support/
    developer forums : https://devforums.apple.com/index.jspa (you will need to be a registered developer to access them)

  • I want to install an updated version of adobe flash player.  I am being asked for my password which I have forgotten.  What is the best way to reset my password on my macbook pro?

    I want to install an updated version of adobe flash player.  I am being asked for my password which I have forgotten.  What is the best way to reset my password on my macbook pro?

    Thanks for your response.
    When using the second option as I have forgotten my password...how do I get into the boot mode?

  • What is the best way is to create a web app item collection which will contain only the listings where addressstate="ABC".

    What is the best way is to create a web app item collection which will contain only the listings where addressstate="ABC".

    How many systems have you used Robert?
    This is the only system you can not have all item data at least in JSON format and all of it. Big commerce has a lower limit and as I have said in every post related to a limit - I understand the function, but you can still make the requests as just one example (front and back)
    Same with API Robert.
    Firstly - the SOAP API request on say products gets you ALL the products, if you do something through a REST API request you can  make the requests to get all the items to complete your process of what your doing - You have to otherwise the API is pointless.
    Ok if the normal modules can not iterate through if there is a module_data solution, and web apps will get there hopefully sooner then later and you do have the sql query (where) for your filter which is great BUT, if you want to implement a solution across everything you cant do that with the liquid implementation.
    This also flows through to the JSON everywhere in concept which is fundamentally flawed for the same reason... And again referring other like services where a hard API has a limit but the JSON request returns everything.
    How those work varies from the method of request, some will only update every day, xxx time (Depending on cost of the plan) so its a cached version of data, to the ones that limit that request to x number of times per set time/day.
    That is how the actual rest of the world works, varied solutions but they are solutions. BC know they have a few limitations, there clearly is the need for things, there are a varied set of options... It is just a matter of engaging in it and offering up a solution for it, silence just creates frustration.

Maybe you are looking for

  • Calling all BizTalk users! May TechNet Gurus announced!

    The results for May's TechNet Guru competition have been posted! http://blogs.technet.com/b/wikininjas/archive/2014/01/16/technet-guru-awards-december-2013.aspx Congratulations to all our new Gurus for May! We will be interviewing some of the winners

  • My feed not refreshing new podcasts on iTunes, even after 2 months. help

    hi All I'm very new at this, but I have been battling to get my feed refreshed on iTunes for over 2 months. but nothing has happened. podcasting feed: http://www.badilishapoetry.com/podcasts/podcast.xml itunes page: http://itunes.apple.com/za/podcast

  • JLabel as cell of JTable

    Hi All, I am using JLabel as a cell of a JTable by overriding getTableCellRendererComponent method of the renderer.But I am not able to select/focus on any of the cell by clicking at cells.However If I use any other componenet like JTextArea, I can s

  • Can i create temp tables in command?

    I need to create 5 temp tables and then use in CR for display. can this be done in Command?

  • ORA-01461: can bind a LONG value only for insert into a LONG column - APEX

    Hi There, I getting the above error in the edit query section of the report queries. Navigation: Shared Components>Report Queries>Edit Report Query The same sql query is working fine in Toad. Also if I create a view on this sql query and use it in th