What is the best way to determine which line a user has clicked on a link?

Hello. Question no doubt simple, but my googleing fails me. I have a table with a column that is a command link. How can I determine which row was clicked on? I need to take this value and to move to another page to link it to a different query. I thought to establish the result in a session bean? Or is there a better way?

Thank you!

Hello

You have two options:

1. (complex) have your ActionListener evaluate the event to get the source, then climb the tree of components up to the table and get the data of the current line;
2 (single) add a setPropertyActionListener in relation to the value = "#{var}" target = "#{destination}" where var is the value of the attribute of the var and destination table is your bean managed requiring the line clicked.

Kind regards

~ Simon

Tags: Java

Similar Questions

  • What is the best way to create a line with triangles at each end, as in a timeline? (See attached example).

    Timeline.JPG

    Sorry for the low resolution. I would like to create a line with a triangle at each end, similar to the one illustrated. What is the best way to achieve this using InDesign? I will create three or four and we will add the month abbreviations for years.

    I'd probably use the online tool to create the line. You can hold the SHIFT key to make the straight line. For triangles, you can either use the polygon tool (shift click to set the number of sides) or you can create a square with the rectangle tool (hold down the SHIFT key while dragging to make a square) and use the pen tool to remove a corner of the shape, creating a triangle. I generally prefer the polygon tool.

  • What is the best way to determine what running processes are essential?

    I'm trying so some cleaning and optimization of my desktop PC and -.

    My installation of Vista Edition Family Premium is now on about 4 years - update SP2 and all updates.

    Over time, I have installed and uninstalled several programs - and solved the problems of speed and optimization in turning and on various programs from startup, process and services.

    Now, some doing cleaning - I'm not sure that the Services have been installed with Vista, which were added by programs installed, and I can stop or terminate, switch from automatic to manual or disable...

    I would appreciate suggestions on how best to get a handle: (1) what are the Vista Services initially installs, including through SP2. and (2) how to match processes and program Services.

    From there on, I should be able to distinguish other Vista services running that are service-related and then determine which I need and you do not need.

    Also - I have installed TweakVI and trying to determine if she done something, or if I would be better off without her.

    Thanks for your suggestions.

    Aaron

    Check this.

    http://www.blackviper.com/2009/05/31/black-vipers-Windows-Vista-Service-Pack-2-service-configurations/

  • Forcing a file DOWNLOAD vs open a file when you click on a link... What is the best way to do it?

    Hi all

    What is the best way to ensure that when a user clicks a download link on a web page that the file is actually downloaded rather than the file open in any program can read? For my case, this includes two types of files, video files (.wmv, mainly) and .pdf files. I want my users to browse I provide for them, then they choose a link, click and the file downloads, NOT to have them play/open.

    I started researching on this last night, and the best I could come up with was the suggestion to add "& action = 3Dsave" file as a query string name. So, me being curious, I tried without success to find out whether A) the right way to do it or B) If this query string is the code appropriate to today's standards.

    I looked on the Web site of w3c.org not knowing if it was something that was of their Kingdom, but their website has been revamped and is now so cinfusing to navigate that one must become a software engineer to understand.

    Any help on this would be most appreciated. Thank you!

    Sincerely,

    wordman

    Create a file with the same name as the video/pdf file but with the extension .php. Insert the following code at the beginning (NO space before that in the file):

    <>

    Header ('Content-disposition: attachment; filename = yourfilename.xyz');

    Header ('Content-type: abc');

    ReadFile ('sourcefilename.xyz');

    ?>

    Replace with the file name to "yourfilename" above. sourceFileName may be the same. This gives you just the ability to change names.

    You can find a list of the types mime here: http://en.wikipedia.org/wiki/Mime_type

    If you know php, you have a lot of files, it would probably be easier to have all the links go on one page with the filename and mime type as parameters. You would then use the simple substitution to do the rest.

  • What is the best way for a J2EE developer with oracle?

    Hello

    I am a J2EE developer, for the moment I'm working in a commercial bank as an enterprise application developer. Java, I learned when I was following a degree of local COMPUTER and with the help of books, work at my place of work and the internet, today I develop applications with JSP, Servlets, JSF2.0, EJB3.0 and third-party J2EE part libraries JSF etc (I also develop software using other programming languages such as Asp.net, c# .net, etc. WPF, but I prefer to be in the path of java). Other than that, I also work as the designer of the user interface of most of our applications.

    I have the skills and practice after having worked for 4 years as a developer of web/enterprise applications & UI designer, but now I have to focus on some grades of paper and so I do BCS.

    Now, I want to be a professional in the Oracle java path, and I need to know what is the best way, I choose to go with Oracle. I finished my SCJP courses, but did not take the exams, because there were rumors that Oracle will clear these reviews in the future. I am interested in Oracle university, but I'm unable to even think about it as I live in Sri Lanka and is not only a large part of the wealth to go to the USA and join.

    So I really appreciate if any professional Oracle could suggest me the best educational path based on what I mentioned about my technical and professional training. Because I have a dream to join Oracle a day as an employee and be a good contributor on the same forum, which I get help today!

    :-)

    Thank you!!!

    As you can see on our Web site, Oracle did not retire Java certifications. You can browse through the available certifications and I hope to help determine your path.
    http://education.Oracle.com/pls/web_prod-PLQ-dad/db_pages.GetPage?page_id=140

    SCJP became Oracle Certified Professional Java Programmer. You can find more information on these reviews on our site here: http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=320.

    Concerning training, virtual training live might be an option for you. You can find more information at http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=233.

    Kind regards
    Brandye Barrington
    Certification Forum Moderator

  • What is the best way to buy an iPhone Unlocked 7?

    Hi all

    I am currently using T-Mobile and want to get the new iPhone 7. Since there is no option for a sim-free iPhone, what is the best way to buy the new iPhone? Should I get the T-Mobile one full fare? I know that he will be released version but it will come with a T-Mobile sim so what will do with the sim card? Put it away or give it to T-Mobile? Or should I wait for the version without card sim to appear, which I don't think that will come out until November, and I don't want to wait that long.

    Thank you in advance.

    If you do not want to wait to pay full price for the model from T-Mobile.  You can do whatever you want with the SIM card.

  • What is the best way to consolidate e-mail messages in the e-mail program, before deleting?

    I have an iMac with a capacity to 1.11 - 679,49 GB available. With the software updated.

    Model name: I

    I have emails out of my different accounts in a "random" folder, but is not free up space. If I move an email in "Archives" and then it always remains in the e-mail account, apparently duplicate email in two places. "

    ERGO: the question is...

    What is the best way to consolidate e-mail messages in the e-mail program, before deleting?

    (I hope I've inserted which may be useful, but I'm not sure about that.)

    Thank you

    ilenefrombaltimore

    Archive messages or move them to some other local mailboxes or mailboxes on the server. Don't know what you are trying to do because it appears that you have 2/3 of your hard disk.

    Why do you think archiving emails in 2 places? Where are you trying to save space to?

  • What is the best way (and possible) to remix a song mixed

    GarageBand 10.1.1

    10.11.4 OS

    Mac Book Pro

    16G RAM

    Hobby old YR 68 recording guy/try to leave a legacy

    What is the best way (and possible) to remix a song mixed

    I have a song that is most often improvised, I was told that his cool, however, re-registration is not possible.

    After reading a lot on the mixture, I now hear where the uneducated choice and errors that I made which explains the sound "not as good" that the song is.

    Before I just jump in and try to undo the settings on the tracks (one is DRUMMER) to return to the raw track before effects/eq/compression ect. is is possible to do?  Opens the unfavorable mix, rename it, save it and just go to work and cancel or disable 'things '.

    The basis of the lean mixture comes even to the root where I 'hot' securities, (orange and red)

    I guess by now you understand my question and I am open to a favorable opinion.

    Thanks in advance for your help.

    jojoguiitar_mn_usa

    I read this question so many times and I can't seem to figure out exactly what you're asking.  You just ask if you can go back in your GarageBand project and edit your tracks again?  Of course, you can, why not you?

  • What is the best way of reformatting my MacBook ssd for resale?

    I'm preparing my 2015 12 '' MacBook 1.3 GHz 512 for resale.  What is the best way to erase and reformat the SSD drive?

    Thanks in advance!

    -jag

    Before you sell or give away your computer, and more the steps listed in this article to support, please follow these steps:

    1. run the Diagnostics from Apple or the Apple Hardware Test. The buyer will do (or it should), and you won't be surprised by the results.

    2. reset the PRAM and the SMC, which may contain personal information.

    3. If you set a firmware password, remove it by running the utility in recovery mode firmware password.

    4. If you turn on FileVault in OS X 10.7 or later, turn it off.

    5. If you use Boot Camp, the partition must be deleted.

    6. If you have created another partition of data on internal disk, remove them in disk utility.

    7. If the machine has an internal hard drive, erase the remaining data partition with the possibility of putting the data to zero. An SSD has no need to be set to zero.

    8. remove the machine from your list of registered products. If it is still covered by an AppleCare Protection Plan, transfer the warranty to the new owner as described in the terms and Conditions AppleCare (under the heading "Transfer of Plan.")

    Note also:

    You can legally or transfer almost any software downloaded from the Mac App Store to the new owner of the machine, even if it was free. This includes OS X, so if you've switched to OS X 10.7 or later, you need to reinstall an operating system older, either from the installation media, if any, or by commissioning in recovery mode of the Internet (option-command-R start ringing.)

    The new owner will have to re-download everything software that came on the App Store, as appropriate, including updates of OS X, under her Apple ID. If you never updated applications bundled iLife (iPhoto, iMovie and Garage Band) through the App Store, you can not transfer these either. The buyer must buy them. Note that iPhoto has been suspended and is no longer available for purchase.

  • Satellite U405 - what is the best way to battery life increases

    Hello world!

    I searched for it a little and everything I could find are contradictory answers and some confusing instructions... :)
    Even the PDF for my U405 has some conflicting advice (it is recommended to completely discharge or not?)

    I'm trying not to remove it and store it with a charge of 40% in a situation of low temperature (?) because I also trust him as a UPS (power cuts are common to sleep).

    So, in short, what is the best way to prolong my life from the battery to its maximum? Should I fully discharge once a month or only to half way through? Should he ever be completely loaded, or which is actually a good thing?

    Thanks in advance for any wisdom that anyone can offer on that!

    David

    The best way would be to put it out of the laptop, but you already said, you don't do that.
    So I say to completely discharge the battery from time to time and load it to the maximum.

    That's all I can tell you right now, but don't know how much it will increase the battery life.

  • Satellite A200 - 1 M 5: what is the best way to extend our battery

    Hi there everyone,

    I hope you are all good, I kindly need to know what is the best way by which we can extend the battery from our PC, I had a friend who apparently frustrated because his laptop battery is almost dead then that PC disconnected electricity; It gives him only five minutes and the beep starts.

    I think she always used his laptop plugged into the electricity, not frequent unloading / loading the battery and yet, I really appreciate it if you guys out there (blessed) could help me maintain my and his of (she bought a new battery lol) batteries.

    Note: My Satellite A200 - 1 M 5 gives me 2.45 minutes after 4 months and I'm happy with that, I turn on my laptop disconnected to power (releases) often, but I feel that I can't explain or help others to look after your laptop battery.
    Thanks a million in advance

    Why we can not find the information seen on the Toshiba site maintenance?
    Maybe we didn't get!

    Hello

    I think you're right research you didn t on the Toshiba page quite long ;)

    I have consulted the European Toshiba support page and selected in the troubleshooting category option-> Solutions to common problems.

    There I found the battery category, and then I found this article:

    * + How to configure my computer for optimal use of battery? + *
    http://www.toshiba-tro.de/KB0/HTD5400Z60005R01.htm

    It looks like an old FAQ document in any case the fact is that all batteries lose own performance after several times several years ago, it is advisable to remove the battery from the laptop to extend the battery life. This is not necessary with the new battery and generation of laptops.

    However, many people remove the battery if the laptop works on sector (power adapter connected) This prevents the battery of standing of the charge and discharge.

  • Apple Extreme, Time Capsule and Express on the same system, what is the best way to set it up so that all devices smoothly from one end of the House to another?

    Apple Extreme, Time Capsule and Express on the same system, what is the best way to set it up so that all devices smoothly from one end of the House to another?

    I'm going to assume that you plan to have wireless devices.

    Let's say that the Capsule is your "main" router  If this is the case, then it must be located in the House, so that the distance between the time Capsule is the same for the outside walls of the House.

    Then, on the 'left' side of the House, looking for an airport to midway between the Capsule and time of the outer wall of the House. Do the same thing the 'right' side of the House.

    In other words, each of the two airports that "extend" the wireless signal are located at equal distance from the Capsule of time... but they are in opposite ends of the House.

    If you intend to interconnect all the airports and Time Capsule using a permanent, Ethernet wired... which by far is the 'best' way to put in place a network in terms of performance and reliability... then you can locate one of the devices anywhere you want.

  • What is the best way to preserve my having iPhoto library merge my pictures of girls with mine that his iMac had stopped working.

    What is the best way to preserve my iPhoto library had fusion - UN-intentionally - pictures of girls with mine as its iMac had stopped working. Some how I have about 48 000 pictures now where before I was about 11 000

    The iMac's hard drive has been deleted in tact and two weeks ago, she bought a new iMac 27' which has only the "Photos" application, but in trying to restore his iPhoto library, it gets about 24% then stops with a po - up window saying "cannot continue due to inconsistancies", that these are we don't know.

    I think using his old h/drive connected via usb to my iMac, I managed to save his library.

    On an external drive, I would like to make my backups that are up to date for a few days so that my photos need to be secured.

    1. Can I remove my iPhoto library and then re - import of my external hard drive?

    2. Can I give my daughter a copy of the "iPhoto app" and install on its new iMac and then re - import photos into iPhoto?

    More popular tips.

    Alan

    I copy the library from the back to the top first before deleting anything, in case something goes wrong. You can choose which library to open hold down the option (or alt) key key and launch of iPhoto. In the menu that appears, select "Choose Library"

    No. but you can give him the iphoto library and she can open it with Photos.

  • What is the best way to connect the pipes to Labview? DDE or OPC

    What is the best way to connect quizix pipes to labview?

    Pipes share data by using Dynamic Data Exchange (DDE), which is the best way? To use an OPC server between labveiw and pipes or DDE?

    If the program manages DDE communication the best way is via a DDE, as LabVIEW handles this. Otherwise, you will need to add another instance (OPC Server) system that will make it more complex and causes more load.

    See the previous link to the words 'to the help of LabVIEW as a DDE Client'.

    -Tom

  • INTERFACE design - what is the best way to allow the user to define a kind of infusion at various times (non-periodic)?

    I want to allow the user to specify a curve like this:

    Such as some under - VI shows the A2 value when a variable of time is between R1, A1 when the time variable is between A2 and A3 when time is in the range A3.

    My design looks like this:

    With the error checking that looks like this:

    My question is, is the approach of the table according to optimal? Otherwise, how could combat this?

    I think I can summarize the conversation on this point as a response to the original question (what is the best way...) -to start writing code, to think about what you want to accomplish and write it down (otherwise known as 'Write the first Documentation').  One of the points of a good User Interface is that it is not allow users to "stupid mistakes" - it leads the user "by hand", limiting the entries to the "legal values" and demanding that the entries be made logically.

    If you were going to have a list of Infusions to enter, it is therefore logical to decide or not to enter into time intervals (which are always > 0) or order the times (which, logically) are still growing.  You can (and should) decide that you (or you may have a control that allows the user decide, but maybe it's too flexible) and then apply your "rules".

    Let's say you've decided on "Intervals" (which seems to me to be more User Friendly).  After the user has entered the intervals (and you've provided a nice plot of perfusion vs. time), pouvez allow you the user to an interval of 'split', 'Delete' an interval, or "Edit the Infusion" interval, or you can decide to have a choice more simple "accept or start again" - If you have only a few intervals, the last would be the simplest (and therefore best) design choice.

    Spend more time thinking before coding usually pays Big dividends!

    (Speaking of sad experience) Bob Schor

Maybe you are looking for

  • I can not connect to Messages or FaceTime on my iPad

    I can't log into Messages or FaceTime on my iPad. I can connect in iCloud with my Apple but not Messagess or FaceTime. I've updated to 9.3.4. I recently received hundreds of emails from some Asian spammer all at once. I think that my message of accou

  • Battery charger gets hot

    Is it normal that my battery charger extremely hot when it is in use? I'm afraid each leave only it connected so I'm not nearby because I'm afraid he's going to fry or ignite. I just bought this computer 2 months ago.

  • How can I re - install NET framework 4?

    Original title: microsoft NET framework 4 How can I re - install NET framework 4? When I started to learn the computer I accidently deleted. Have windows xp. I ran microsoft NET 4 repair tool. Without success. Windows install gives error "you try to

  • Sony Xperia M4 Aqua double E2363 can't update to the latest firmware

    I have a double M4 Aqua E2363 that was a price of Xperia Lounge competition. My problem is, the phone is in the first 26.1.B.1.85 firmware and can not detect the new firmware 26.1.B.2.147 I check in the PC Guide and he said I have the new firmware. W

  • DMP 4400 remote control Simulation

    Hello I need to know please how to send a query HTTP MIB to certain a DMP to simulate a click "remote" key, if I did not now a very convenient remote control. Say I want to test the yellow button, after that it is programmed. Can anyone help with the