java - Unhighlight a Row in a rich:ScrollableDataTable -


In my application, I need to select a line in a user's table. When they are working with data from that line, they click on a cancellation / reset button to reset some other page elements. What I need to do is reset the button to uncheck the highlight button or deselect the highlighted / selected row.

From my JSP page:

  & lt; Rich: Scrollable Data ID = "Adjustable ScheduleScrollDataTableBid" Height = "200px" width = "807px" rows = "10" sortmode = "single" var = "item" value = "# {controller.searchResults}" selectionMode = "single "Binding =" # {controller.table} "selection =" # {controller.}} "& Gt; & Lt; A: support event = "onRowClick" action = "# {controller.enableTools}" render = "tool" /> ... Multiple Columns ... & lt; / R: Scroll DataTable & gt; & Lt; H: Panel Group id = "Tools" & gt; & Lt; H: command button id = "reset" verb = "# {controller.reset}" value = "reset" /> & Lt; / H: panelGroup & gt;  

from my backing bean:

  Private UIScrollable Data table; Private selection selection; ... public string reset () {// un-select what is ROW ?? } ...   

That's why I have succeeded in solving my problem. Im really surprised that no one was able to answer it. Private UIScrollableDataTable table; Private selection selection; ... public string reset () {table.setSelection (new SimpleSelection ()); } ...


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -