Skip to Content
author's profile photo Former Member
Former Member

Refreshing TableView


I have a search page that contains some dropdownlist boxes and 2 tableviews. When I select a value from the dropdownlist box I populate the first tableview.On selecting a row from the first tableview I display values in second tableview.

My problem is that after I display data for one search criteria and select another search criteria I want to refresh my tableview selectedrowindex. All the rows should be deselected. Now I am getting the new data but the row I selected initially is remaining as such.



Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 06, 2004 at 03:13 PM

    When defining the tabelview, utilize the attribute selectedRowIndex and relate it to a page attribute(eg. selectedrowindex type int4 ).

    If you use the selectionMode = "SINGLESELECT"

    the following would work.

    Clear this page attribute in "inputprocessing", whenever you want to deselect the selected row.

    <htmlb:tableView id = "tv1"


    selectionMode = "SINGLESELECT"


    onRowSelection = "onRowSelection"


    selectedRowIndex = "<%= selectedrowindex %>"



    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.