Selection of Row in DataTable

UI Components for JSF
Post Reply
santhoshsamala
Posts: 26
Joined: 23 Feb 2012, 18:10

10 Apr 2012, 18:14

I have the datatable with following code

Code: Select all

<p:dataTable var="workingContract" value="#{dashboardAction.workingContracts}" selectionMode="single" id="workingContractTable">
I have changed the css to

Code: Select all

.ui-state-highlight {border: 1px solid #da852b; background: #ffd190; color: #000000; box-shadow: none; text-shadow: none;}
It will highlight the row whenver it is selected. as of now this is working.

I have a link in one of the cell in the datatable, whenevr i click on it a new window opens with options. If i click on that link the row is not highlighted, however if i click anywhere else on the row it is highlighted. I want the row to be highlighted whenver i click on the link in that particular row, please help me to resolve this
Using primefaces3.2, jboss7.0.2, weld 1.1.5

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 32 guests