How to: window confirmation in a datatable row

Hi.
I would like to know if it possible to open a window confirmation (Yes,No) from a row selector in a datatable. The columns of the datatable are h:outputText, but the examples I have seen use always h:commandLink and h:commandButton.
I want to stop the process when I select a row in datatable in case you select No and let the process in case Yes.
if this possible??
Thanks

For better user experience you need to use standard html interaction tags (links or buttons) .
You can't use onclick attribute on h:outputText as it haven't.

Similar Messages

  • How to add component dynamically to datatable row?

    Hi,
    I have a dropdown in one column of table.Depending upon selected value in that dropdown, I want to add some components dynamically only in that row.How to do this?
    I have seen that findComponent() method doesnt accept clientId.Is there any other way to use clientId to search components. Because clientIds contain row numbers.
    Thanks in advance,
    Chitra.

    Bind the component to the bean using its 'binding' attribute. Then use it instead.

  • How to use window.confirm in a JavaScript with unknown variables

    On my delete category page the user can pick the category it wishes to delete from a dropdown list (which is generated by rows in my database).
    When the user hits the "Delete" button ths OnClick runs a JavaScript that sends the delete request to a .jsp page that handles all my insert, update and delete queries.
    <input name="delete" type="button" id="delete" onClick="post('delete');return false;" value="Delete">
    function post(actValue)
         document.MyForm.action.value = actValue ;
         document.MyForm.submit() ;
    }So far, so good. But:
    Before the site goes to this last jsp page I want a pop-up window that ask's for a confirmation of the delete-request.
    So I changed the OnClick and I made another JavaScript::
    <input name="delete" type="button" id="delete" onClick="delete('categoryName');return false;" value="Delete">
    function deleteConfirm(categoryName)
         if( window.confirm("Are you sure you want to delete: " + categorieNaam + "?") == true)
              post('delete');
              return false;
    }The problem is, when the page is loaded, we don't know yet what category the user wants to have deleted. So categoryName is unknown.
    How can I make this work?

    You have the category in a dropdown list?
    <select name="catToDelete">
    <option value="cat1">cat1</option>
    <option value="cat2">cat2</option>
    <option value="cat3">cat3</option>
    </select>
    You can use javascript attributes such as
    var toDelete = document.all.catToDelete;
    // the value it will submit
    var selectedValue = toDelete.value;
    // the selected index
    var selectedIndex = toDelete.selectedIndex;
    // the option that is selected
    var selectedOption = toDelete.options[selectedIndex];
    // the text of that option
    var theText = selectedOption.textYou should be able to extract the info you need from that I hope.
    Cheers,
    evnafets

  • . How to put Check box in every row in Table

    Hi Friends,
    I have one doubt in Webdynpro with java. How to put Check box in every row in Table?
    For Exam My requirement is I am getting BAPI from ECC System. So I have to go given input details in first view and output details in SecondView. So in Second View I will taken Table that data will displayed in rows. I need each and every row first I need check box.
    Here Select Check Box of particular row then click GetData button.  That row data will be displayed in one popup window.
    In table suppose 6 rows available in table. Every Row first Check box available.
                             empid, name, sal  ,firstname, last Name
                             empid, name, sal  ,firstname, last Name
                             empid, name, sal  ,firstname, last Name 
    How to put Check box in every row in Table?  can you send any examples applications
    Regards
    Vijay

    Hi Friend,
    When we are getting BAPI From ECC System. that BAPI Have nodes and Attribues...in under node we can't create "CheckBox"
    attribute.
    So i am doing like this.I am create on Checbox attribue out side of Node. Check Box data type is boolean.
    next i am creating table ( that table having rows and columns) Right click on table-->Click on Insert GroupedColumn->again right click on nsert GroupedColumn---> Here Select Check Box.
    Okay...here i am getting one problem. i have got Check boxes .But i am select check box in  first row. that time all check boxes will be selected.
    i need select first row check box that only first row will be selected suppose i selected second row check box that only second will be selected.
    i need this can u help me....
    Regards
    Vijay

  • Using javascript to detect the onclick event over a datatable row

    Hi all,
    I'm working with JSF 1.2 R.I. and I would like to add some javascript to my datatable to be able to control the onclick event on a row.
    At the moment I have just added a checkbox to be able to know which row the user wants to select but I'm not satisfied with this solution.
    <h:dataTable
    value="#{person_iupopulations_Observation.customer}" var="customer"
    rowClasses="evenRow,oddRow"
    cellspacing="0">
    <h:column>
    <f:facet name="header">
    <h:outputText value="Select" />
    </f:facet>
    <h:selectBooleanCheckbox value="" onclick="getRow(this)">
    </h:selectBooleanCheckbox>
    </h:column>
    <h:column>
    <f:facet name="header">
    <h:outputText value="Name" />
    </f:facet>
    <h:outputText value="#{customer.Name}"></h:outputText>
    </h:column>
    </h:dataTable>
    What I would like to achieve is:
    When the user clicks the row (wherever, not only the checkbox) the checkbox changes to the new value depending, off course, on the user's selection.
    For this purpose I would need to add the onclick event to every row and associate it to a javascript function to update the checkbox.
    Can anybody help me please.
    I appreciate any suggestion.
    Thanks in advance!

    I am looking for answers on how to use javascript to detect the onclick event over a datatable row . I have a selectBooleanCheckBox in one of the columns in the every row in the table. On click of the checkbox in any row of the table, I want to get some values from the selected row and also verify that the rest of the checkboxes in all the other columns are unchecked. I want to do this using javascript. If any of you have answers, please repsond. Thanks.

  • How can I confirm the automatic updater of revoked certificates is working?

    There is a
    Microsoft security advisory from a few weeks ago about fraudulent certificates. In the advisory it says it is revoking India's NIC authority certificate and for systems running Windows 7 that are using the automatic updater of certificates that no action
    is needed.
    I don't know if I'm running the automatic updater of certificates. I tried installing the referenced
    KB2677070 but it says "The update is not applicable to your computer." And I don't see it listed as an installed update for this computer.
    I went into certmgr.msc and I don't see India's NIC certificates listed as untrusted.
    I'm running Windows 7 SP1 x64. How can I tell if I'm running the automatic updater of revoked certificates and how can I confirm that it's working? How can I see what certificates the automatic updater has revoked?

    Hi,
    afaik these updates are just coming in over Windows update. Your KB2677070 might be superseeded ba another update, or included in a rollup you installed.
    quote from
    http://technet.microsoft.com/en-us/library/cc734054(v=ws.10).aspx : You can verify that the Automatic Root Certificates Update component is working properly by using a Web browser to open a Web site that requires the Automatic Root Certificates Update
    component. When you open this Web site, a new root certificate is downloaded from the Microsoft Windows Update Web site. If the certificate is downloaded successfully, Event ID 1 in the Microsoft-Windows-CAPI2 event source will be written to the event log.
    Note that if not explicitly turned of, the update is attempted and events are logged as described in http://technet.microsoft.com/en-us/library/cc733922(v=ws.10).aspx
    MCP/MCSA/MCTS/MCITP

  • How to constuct a table with each row having a button to select

    Hi,
    Imagine i have 5 orders and i want to select one order to view or update in other page.
    How i construct a table with each row having a button to select it.
    I'm having a hard time to do this. How i select a backingBean method in Javascript?.
    Thanks

    I'm trying to put a <h:commandButton> inside <h:dataTable> like this:
                    <h:dataTable id="books" value="#{BuscarLibros.booksSearched}" var="book">
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{messages.title}"/>
                            </f:facet>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{messages.isbn}"/>
                            </f:facet>
                            <h:outputText value="#{book.isdn}"/>
                        </h:column>
                        <h:column>
                            <h:outputFormat value="#{book.fechaPublicacion}">
                                <f:convertDateTime pattern="ddd/MM/yyyy"/>
                            </h:outputFormat>
                            <h:commandButton action="#{BuscarLibros.prepareUpdateBook}" value="Hello WORLD"/>
                        </h:column>
                    </h:dataTable>but it does not call the method.
    If it is outside it calls but inside not. Its strange because Duke's bookstore example from Sun Java EE is like that.
    Any clues?

  • How to eliminate confirm screen popup

    when i click back arrow, i get a confirm screen. (to resend)
    how to eliminate confirm screen popup every time?

    You get an alert about resending POST data if you go back to a page that was previously requested from the server by submitting form data via a POST form.
    The only way that Firefox can make sure to get the same page is by resending that POST form.
    Firefox doesn't know what that form data means, so Firefox asks for confirmation before resending that form data as such an action can cause you to repeat an action and buy another item or post a message another time.
    The only way to prevent that pop-up is not to use the Back button, but to open links from a page that was requested from a server by sending a POST form in a new tab (window) with a middle-click or a Ctrl + left-click.
    Then you can close that tab or window to go back.

  • When mouse move over datatable row colour should changes?

    When the mousepointer is moved over a datatable row, the colour of that perticular row should change( as in http://www.print-driver.com/order/), How can I do this? (will CSS help?)
    Thank you very much.

    Hi,<p>
    If it is a standard HTML table, do it in CSS. Plenty of examples out there - look at Tor Norbye's weblog for a specific example using JSC and changing the color of cells in a standard HTML table.
    <p>
    I have tried using a JSF table, but to no success. When I look at the generated HTML code, I see it referenceing a style class and style sheet that is not in my working directories (i.e. /creator/projects/webrpoject/web/resources).
    <p>
    I will find that one and try to edit it to see if it can be tweaked in CSS.
    <p>
    Meanwhile, good luck !

  • How do I limit the number of rows retrieved at a time using RefCursor?

    I have a PL/SQL package in use, that returns a REF CURSOR. This is currently being used in a Forms 6i application. Now I want to develop an ASP.NET web application that displays exactly the same information as my Forms 6i module. In fact those two applications will be used concurrently for a while.
    I looked at the sample code provided on otn.oracle.com and decided to use the OracleDataAdapter.Fill()-method to fill a dataset and bind that dataset to a pageable GridView. Now I wonder, whether this method retrieves ALL records of the query at once and how I can limit the number of rows fetched? The Select statement retrieves up to 10000 rows at a time. Most of the time, a user is only interested in the first 20-30 rows. Forms 6i fetches more rows as the user scrolls down, how can I implement the same behavior in ODP.NET?
    - Markus

    Excuse me, but the reply does not quite answer my question. Maybe I did not explain my concerns clear enough:
    I understand the use of the two properties (RowSize and FetchSize) to reduce the amount of round trips needed to transfer the data - not the number of rows fetched in total. This would still lead to a situation where all rows are transferred, when I am using the OracleDataAdapter.Fill()-Method. Is this correct or did I misunderstand the function of this method?
    I quote the otherwise really helpful article you send me:
    Of course, there is a cost if the fetch size is arbitrarily large. More client-side memory and processor cycles will be needed to store and manage a larger amount of data. The goal is to find a high-performing balance between the number of round trips and the amount of data retrieved per trip.
    My RowSize is for sure a bit larger than the one in the given example. The query will probably be used by up to 100 users at a time, so I would like to limit the resource-costs not only on the network by the number of round trips, but also on the web-server which is storing all these records in it's memory per user-request.

  • How to change a color for a row in ALV grid display

    Hi,
       how to change a color for a row in ALV grid display based on a condition.Any sample code plz

    Hello Ramya,
    Did you check in [SCN|How to color a row of  alv grid]
    Thanks!

  • HT201262 how do you confirm a Macbook Pro hard drive failure?

    I have an older Macbook Pro that I want to bring back to life.
    All indications point to full hard drive failure.
    How do I confirm that the drive needs to be replaced?

    Welcome dadzpony,
    The simplest way is to start it up with the original disks. Go to Disk Utility and try to repair the original drive. If Disk Utility can't repair it then it's probably dead.
    If you had a drive in an external enclosure with an appropriate OS you could boot with that also. Hold "option" down while booting and select the drive you want to boot from.
    The HD in this machine is easy to replace. Go here for instructions:
    www.ifixit.com/Device/MacBook_Pro

  • How can I limit the number of rows returned by a select stat

    How can I limit the number of rows returned by a select
    statement. I have a query where I return the number of stores
    that are located in a given area.. I only want to return the
    first twenty-five stores. In some instances there may be over
    200 stores in a given location.
    I know is SQL 7 that I can set the pagesize to be 25....
    Anything similiar in Oracle 8i?
    null

    Debbie (guest) wrote:
    : Chad Nale (guest) wrote:
    : : How can I limit the number of rows returned by a select
    : : statement. I have a query where I return the number of
    : stores
    : : that are located in a given area.. I only want to return the
    : : first twenty-five stores. In some instances there may be
    : over
    : : 200 stores in a given location.
    : : I know is SQL 7 that I can set the pagesize to be 25....
    : : Anything similiar in Oracle 8i?
    : If you are in Sql*Plus, you could add the statement
    : WHERE rownum <= 25
    : Used together with an appropriate ORDER BY you
    : could get the first 25 stores.
    Watch out. ROWNUM is run before ORDER BY so this would only
    order the 25 selected
    null

  • How can I limit the number of rows in Oracle?

    Hi All,
    I am using very complex query where I join 6 table to fetch data from database.
    I have requirement like fetching a first 10000 row and then fetching another records after 10000 and so on.
    I just want to know how to fetch a limited number of rows using sql query. Moreover, I also want to know how to calculate the total number of row (alternative of count method because I don't want to query the database twice because its affect the performance).
    Thanks in advance.
    Regards,
    Sunny

    sunny@oimnewbie wrote:
    Hi All,
    I am using very complex query where I join 6 table to fetch data from database.
    I have requirement like fetching a first 10000 row and then fetching another records after 10000 and so on.
    I just want to know how to fetch a limited number of rows using sql query. Moreover, I also want to know how to calculate the total number of row (alternative of count method because I don't want to query the database twice because its affect the performance).
    Thanks in advance.
    Regards,
    SunnyThis smells like a very fishy requirement based on a fundamental misunderstanding of how Oracle works. Could you explain why you want to arbitrarily limit the result set to 1000 rows? What will happen between that and getting the "next" 1000? What triggers getting the "next" 1000? and how do you define "next", since there is no ordering in a heap table.
    I suspect we can make that requirement go away be presenting a better approach to the real issue.

  • How to hide edit link for  some rows in report? (according to value of col)

    Helo,
    How to hide edit link for some rows in report? (according to value of column)
    regards
    siyavuş

    Hi siyavuş
    You can do this by taking the edit link off the report and putting it into your report SQL.
    Use something like Select CASE WHEN (condition)  THEN
    'Put your edit link in here as an html Anchor like<a href="(target)">Edit</a>'
    ELSE
    tt.value
    END edit_link
    FROM test_table tthope it helps,
    Gus..
    You can reward this reply (and those of other helpers) by marking it as either Helpful or Correct.
    This allows forum users to quickly find the correct answer.
    ;-)

Maybe you are looking for

  • I have samples missing in Garageband 11 that I have in other versions on different computers.

    I was working on older computers with a community group using Grageband and they had all the samples available but I have transferred the sessions onto my MacBook Pro with Garageband 11 that I purchased from the App Store, and coem of the sample sect

  • EHP4 installation - problem with stack files

    Hello all, I installed ERP 6.0 EHP4 ready and would like to install EHP4 with sapehpi. I have a problem with my XML stack files because it contains kernel 69 for all os and db. This stack file has been generated in the MOPZ and MOPZ don't ask me to s

  • Question about Y_?????? trace files

    We have a SAP ERP 6.0 system runninng in Windows. I am checking the trace files in our system, and I have found that there are a lot of Y_??????. I have been looking for information about them, but I cannot find it. Does anyone know how and why these

  • TextArea & word wrapping

    How does one word wrap in TextArea?

  • OBIEE - table join across databases

    Hi, I want to join two tables that are in different databases. I want to join these tables on some condition and then be able to see data from both of them in the reports. Table 1 - columns A1, B1, C1 Table 2 - columns A2, B2, D2 Currently what we tr