How to find out row that was clicked in DataTable?

Hi there,
i have a dataTable component which renders a list from database. In the last column of this table you can click a link for further processing for this row.
How to identify which row was clicked?
<f:view>
     <h3>Subtitel</h3>
     <h:form>
       <h:dataTable      headerClass="tableheader"
                         var="list"
                         value="#{Uebersicht.uebersichtsliste}">
          <h:column>
               <f:facet name="header">
                    <f:verbatim>KW</f:verbatim>
                        </f:facet>
                       <h:outputText value="#{list.cal.kw}" />
          </h:column>
          <h:column >
               <f:facet name="header">
                    <f:verbatim>Bemerkung</f:verbatim>
                        </f:facet>
               <h:outputText value="#{list.cal.feiertagNat}" />
          </h:column>
          <h:column >
               <f:facet name="header">
                    <f:verbatim>Start</f:verbatim>
                        </f:facet>
               <h:commandLink action="#{Uebersicht.start}" value="setzen"/>
          </h:column>
        </h:dataTable>
     </h:form>
</f:view>How to identify the row to process in action methed "uebersicht.start"?
Regards,
ak

the easiest way is you can send the parameters for the command link and the
output link.this parameters will be the unique id of the rows ur r populating .
get those parameters by:
request.getParameter(keep the id u kept in the parameters list);
I worked it out before ,its perfect.
regards,
raju reddy

Similar Messages

  • How to find out when data was deleted from table in oracle and Who deleted that

    HI Experts,
    Help me for below query:
    how to find out when data was deleted from table in oracle and Who deleted that ?
    I did that to fidn out some data from dba_tab_modifications, but I m not sure that what timestamp shows, wether it shows for update,insert or delete time ?
    SQL> select TABLE_OWNER,TABLE_NAME,INSERTS,UPDATES,DELETES,TIMESTAMP,DROP_SEGMENTS,TRUNCATED from dba_tab_modifications where TABLE_NAME='F9001';
    TABLE_OWNER                    TABLE_NAME                        INSERTS    UPDATES    DELETES     TIMESTAMP         DROP_SEGMENTS TRU
    PRODCTL                        F9001                                                     1683         46       2171            11-12-13 18:23:39             0                   NO
    Audit is enable in my enviroment?
    customer is facing the issue and data missing in the table and I told him that yes there is a delete at 11-12-13 18:23:39 in table after seeing the DELETS column and timestamp in dba_tab_modifications, but not sure I am right or not
    SQL> show parameter audit
    NAME                                 TYPE        VALUE
    audit_file_dest                      string      /oracle/admin/pbowe/adump
    audit_sys_operations                 boolean     TRUE
    audit_syslog_level                   string
    audit_trail                          string      DB, EXTENDED
    please help
    Thanks
    Sam

    LOGMiner --> Using LogMiner to Analyze Redo Log Files
    AUDIT --> Configuring and Administering Auditing

  • HT4995 How to find iphone 4s, that was stolen?

    How to find iphone 4s, that was stolen? Is it real to see location of it?

    You can see its location if all of the following are true:
    - You enabled Find my iPhone on the phone before it disappeared
    - You set up an iCloud account
    - The thief did not turn the phone off, remove the SIM, restore the phone or wrap it in aluminum foil
    - The phone has cellular data coverage
    If you enabled Find my iPhone just log in to iCloud and click the Find my iPhone icon.

  • How to find out what software was used to create a document?

    Hello:
    I was sent a file to work with and it was supposedly made using a Mac computer, but I can't open it. How can I find out what program was actually used to create this document. It ends with xxxxx.rsrc. I even tried to open it on my PC and it says there is no default application specified to open the document.
    Thanks for your help.
    Susan
      Mac OS X (10.4.7)  

    Have you tried opening your file with Textedit?
    Also, if you select the file from the Finder and type cmnd-I (Get Info), it should tell you what program can be used to open it.
    Lita

  • How to find out when dcpromo was run on a server?

    Is there an event ID or something that gets logged that shows when dcpromo was run on a server? I am trying to figure out when a server was promoted to a domain controller.
    Thanks

    multiple ways to find out when DCPROMO was executed......
    * Check the DCPROMO.LOG in C:\Windows\Debug
    * Check the creation dates of the folder for the NTDS.DIT file and the SYSVOL
    * Check the creation of the computer account, the NTDS Settings object (all in AD)
    this should give you an idea of when DCPROMO was executed
    Cheers,
    (HOPEFULLY THIS INFORMATION HELPS YOU!)
    Jorge de Almeida Pinto | MVP Identity & Access - Directory Services
    * This posting is provided "AS IS" with no warranties and confers no rights!
    * Always evaluate/test yourself before using/implementing this!
    * DISCLAIMER: http://jorgequestforknowledge.wordpress.com/disclaimer/
    ################# Jorge's Quest For Knowledge ###############
    ###### BLOG URL: http://JorgeQuestForKnowledge.wordpress.com/ #####
    #### RSS Feed URL: http://jorgequestforknowledge.wordpress.com/feed/ ####
    -------------------------------------------------------------------------------------------------------<>
    "K_evin Zhu" wrote in message news:[email protected]...
    Hi,
    As this thread has been quiet for a while, we will mark it as �??Answered�?? as the information provided should be helpful. If you need further help, please feel free to reply this post directly so we will be notified to follow it up. You can also choose to
    unmark the answer as you wish.
    BTW, we�??d love to hear your feedback about the solution. By sharing your experience you can help other community members facing similar problems. Thanks for your understanding and efforts.
    Best Regards
    Kevin
    Jorge de Almeida Pinto [MVP-DS] | Principal Consultant | BLOG: http://jorgequestforknowledge.wordpress.com/

  • Table component - how to find out which cell is clicked

    Hello!
    I have a couple of questions regarding table component
    1. Is there any way to find out which table cell is clicked on?
    2. And is it possible to paint clicked cell programmatically?
    Possible solution might be a Select Boolean Checkbox inside a cell, but anyway, i'd have to determine which cell contains this checkbox (some kind of cell coordinates, etc...)
    Thank you

    1. Is there any way to find out which table cell is clicked on? It would be easy to suggest the way, if you can share us the requirement
    2. And is it possible to paint clicked cell programmatically?You can do it through javascript by setting contentStyle property.
    Sample Code:
    <af:table ...>
      <af:column>
         <af:inputText ...>
                  <af:clientListener method="paintCurrentCell" type="click"/>
         </af:inputText>
      </af:column>
    </af:table>
    <!-- javascript method -->
    function paintCurrentCell(event){
        event.getSource().setContentStyle("background-color:red");
      }Sireesha
    Edited by: Sireesha Pinninti on Nov 10, 2009 7:01 PM

  • How can find out what app was charged on my account. I don't recall buying one

    How can I find out what app what charged to my account. I don't remember downloading a non free one on sept 22,2013

    The last four digit of what?
    Why are you telling us?
    We are itunes users just like you.  You are not addressing Apple here.
    Look in your purchase history to see what you have purchased.

  • How to find missing app that was pushed?

    hi there. i woke up 2 days ago and discovered that i had an application called "FIFA Schedule" installed in my phone.
    i didn't download / install the app so i'm pretty sure it was pushed to the phone. it's built by a malaysian company called KA Consulting. a quick conversation with them confirmed this and they confirmed they were working with Nokia to push these out to N900 devices.
    my question is: how can this be possible? i was not given a choice to opt out.
    this is the same issue with the PR 1.2 update on My Nokia. i was not given the choice to opt out when i installed the firmware update. it was automatically enabled for me (and i was charged an internal SMS for this). i then had to unsubscribe to it (and again was charged an international SMS). about 2 or 3 weeks ago, i received an SMS from this service (even though i had opted out???) about sygic navigation software for my n900.
    Nokia, what's up????

    I didn't get anything like the compulsory sign up to My Nokia when I updated to PR1.2.
    I was already a member from my N95 days, and just updated my profile. But I'm pretty sure I ticked the box to "Not receive" 3rd party promotional garbage when I signed up initially.

  • /etc/rc.d/network: bash script: how to find out, if there was an error

    hello!
    i want to write a bash script for my wireless lan. for this i need the information, if the network daemon has connected successfully or failed.
    but there is a big problem: starting network success' every time, whether there was an error or not:
    $ /etc/rc.d/network start
    :: Starting network profile: 00wlan_home [BUSY]
    Error for wireless request "Set Mode" (8B06) :
    SET failed on device wlan0 ; No such device.
    [FAIL]
    :: Starting Network [DONE]
    $ ls /var/run/daemons/
    ... network ...
    can someone help me please? how can i realize  that "::Starting Network ..." also fails and the script returns an exit status 1?
    thanks for your help, maybe we can improve the script. but i'm not a geek in bash!
    mfg iggy

    iggy wrote:
    hello!
    i want to write a bash script for my wireless lan. for this i need the information, if the network daemon has connected successfully or failed.
    but there is a big problem: starting network success' every time, whether there was an error or not:
    $ /etc/rc.d/network start
    :: Starting network profile: 00wlan_home [BUSY]
    Error for wireless request "Set Mode" (8B06) :
    SET failed on device wlan0 ; No such device.
    [FAIL]
    :: Starting Network [DONE]
    $ ls /var/run/daemons/
    ... network ...
    can someone help me please? how can i realize  that "::Starting Network ..." also fails and the script returns an exit status 1?
    thanks for your help, maybe we can improve the script. but i'm not a geek in bash!
    mfg iggy
    try using netcfg to start the wireless profile, that should keep you happy until the new network scripts are unleashed... which won't have this problem.
    James

  • How to find out date when user clicks on a date of Date Navigator

    Hi Experts,
    I have created WD application. It contains DateNavigator. User clicks on a particular date. We want to display the clicked date. How we can do so? I have done following coding. What I should type after "hi" + ????? to display the selected date.
    public void onActionSelectDate(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionSelectDate(ServerEvent)
        wdComponentAPI.getMessageManager().reportSuccess("hi ");
        //@@end
    Regards,
    Gary

    HI Gary,
    You can do this by binding the context attribute of type date to the firstSelectedDate property of the datenavigator Ui element.
    then suppose context attribute to which you have bound the UI element has the name date then create an action for the event onDaySelect. then write the following code in the event handler
    public void onActionselectdate(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionselectdate(ServerEvent)
        String str = wdContext.currentContextElement().getDate().toString();
        wdComponentAPI.getMessageManager().reportSuccess("HI" + str);
        //@@end
    It will solve your issue.
    But the date format here will be YYYY-MM-DD if you want to change it then either you have to use one simple type or modify it in the code itself by using some string operation.
    Regards,
    Sarbjeet

  • How to find out that the card in a given NIDAQ slot is a DSA card?

    In the description of DAQ_Op(...) function in the traditional NIDAQ function reference one reads:
    "buffer" is an integer array. "buffer" has a length equal to or greater than count.
    When DAQ_Op returns with an error number equal to zero, buffer contains the acquired data.
    For DSA devices, buffer should be an array of i32. These devices return the data
    in a 32-bit format in which the data bits are in the most significant bits.
    Question 1: How to find out programmatically that the card in a given NIDAQ slot is a DSA card?
    Question 2: How many MSB carry the information? How do I find out bit-ness of the card (programmatically)?
    The obvious solution to create and keep updated the table/fil
    e with the data for all existing DAQ cards is unacceptable. This could be maintained by NI itself, but not by 3rd party developpers, like me.

    Bryan, thanks for your answer.
    I hope that my NIDAQ-wish-list will not only reach NIDAQ developers but some of it will be implemented in the next versions of NIDAQ.
    I should say that I am quite pessimistic because I was sending similar requests via German support few YEARS ago and I am still even do not know whether they reached developers or not. Even if yes, the present NIDAQ still does not have these functions and this means that NI takes 2..4 years to react on the feedback.
    At the moment I have no choice, and I do maintain self-made info file (nidaq.ini). But beleive me, it is a pain in the @ss to scan help files and manuals of the DAQ cards which I've never seen just to include info in nidaq.ini. And when my customers of a brand new NIDAQ ca
    rd call and wonder why the card is not reacognized by my application correctly, I tell to them that this is basically fault of NI. Because NI provides no way to get card info. I am doing my best analysing error codes, but it does not help in all cases. Sorry, guys, but you left no choice to me.
    As for NIDAQmx, this is not a solution either. I am not going to rewrite my existing and working rather big application. It could be a good suggestion for those who just starts developing a new applications from the scratch, but not for those who almost finished it. Even for those who begin now, NIDAQmx may not be a good choice, because, as I saw in this forum, it does not support all cards that are supported by NIDAQ. It also looks like that instead of improoving, developing and fixing NIDAQ, NI dicided to change API completely. It is not yet clear to me whether NIDAQmx is supposed to substitute NIDAQ in the future or not. If not, I would concentrate on improoving trad. NIDAQ. If yes, it wou
    ld be a disaster for many developers. :-(
    Anyway, I hope that the interaction between NIDAQ team and application developpers will be improoved, and we will see some results of this feedback.

  • You CAN have more than 2 Cap1 - Here is how you find out

    Many people have posted inquiring if you can have more than 2 Cap1 Cards..... I asked the Executive Repsonse team how I could find out if that was true and the fella told me that you just simply look at the Terms and Conditions on the website for each card and it will tell you.  Its under "what may disqualify me", for example for a venture card it says having more than 5 capital one venture cards will disqualify you.  As of today: I have Capital One Platium, Secured, Capital One Venture Card, and Capital One QuickSilver.....  So just check the terms of service to see if it applies to you....... Enjoy!

    jac8600 wrote:
    Exactly what I am saying but we refer to them as signature and platinum. yes I said we......... Ummm.... Is there a hamster in your pocket?Actually its NOT quite the same at all. You cannot have two platinum (average credit) cards AND  five signature (excellent credit) cards. The hard limit is five cards. If you have one PL and one Sig, you cannot get another PL card, but you CAN get three more Sig cards. Thats exactly where I'm at right now - I have a QS1 and a QS card, but my current scores don't qualify me for the higher tier cards yet, so I'm stuck.  If you have two Sig cards you cannot get a PL card at all. The idea is to push you upward to the higher tier cards.  

  • How to find out which object on a JPanel was clicked...

    I have a JPanel that contains about 200 other small JPanels(only 8 are visible at any one time), and a JButton(with Visible set to false).
    When one of the small JPanels is rightclicked i want to know which one was clicked so I can add the JButton to it (set theJButton Visible on the JPanel that was rightclicked). When the JButton is clicked, it will hide the JPanel it was on and hide itself again.
    I added a MouseListener(MousePressed) to the main Jpanel but I dont know how to find out which of the smaller JPanels was clicked. I would Also need to know how (in the ActionEvent for the JButton) the JButton knows which JPanel it is on so it knows which one to delete.
    ------------------------------------------------------------------CODE
    void JPanel1_mousePressed(MouseEvent e) {
    if ((e.getModifiers() & e.BUTTON3_MASK)!=0){
    ------------------------------------------------------------------CODE
    void JButton1_actionPerformed(ActionEvent e) {
    ------------------------------------------------------------------CODE
    Can this be done or should I add a MousePressed Listener to each of the 200 small JPanels and create a JButton for each of them??
    Any Info Appreciated... Thanks....

    Here you get a hint, hope have added all mouseListener as well and registered....addMouseLi...etc
    // many JPanels here...
    JPanel clickedPanel;  // a reference only
    // In mouse Click..
    public void mouseClicked( MouseEvent e ){
              clickedPanel = e.getSource( );
              clickedPanel.add(new JButton("Look, I am Added") );
    }  // it is Only HINT, a working HINT

  • HT201365 my iPad was stolen and I just got a message that it was turned on and now locked and my message posted. How do I find out where that happened? it's now off again but I'd like to know the location of where find my iPad occurred!

    I have had email notification that my ipad that was stolen was turned on and connected to the internet however no other info was avail about where the unit was turned on to help me find a location of where it is. It is now off again. The site has no info on how to find data on where it was turned on. I've received emails saying it's now locked and message displayed. There myt be a way to find out where it was turned on!
    Any ideas!

    Unless the device has power and an internet connection there is no way to locate it.

  • How do I find out which tab was pressed?

    Our site is using tabs. We have few portlets in different tabs whose custom rendering depends on which tab the user has clicked.
    Programmatically, how do we find out which tab was pressed?
    We're using portal 9.0.4. Thanks for your help.
    Ashraf

    Thanks Sanjay for your quick reply!
    Option 2 looks like a potential solution. Not quite elegant as you indicated, but will work.
    I recall reading somewhere, before the release of 9.0.2.6, that in upcoming version 9.0.2.6/9.0.4 you should be able to programmatically determine the last tab clicked. If you could kindly confirm whether no such built-in mechanism (API, etc.) exist to find out last tab clicked in portal version 9.0.4? We're looking to implement this feature in database provider environment.
    Thanks again for your help.
    Ashraf

Maybe you are looking for