DataTable selectBooleanCheckbox

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
francescoL
Posts: 9
Joined: 15 Mar 2019, 19:02

07 Aug 2020, 16:01

ImageHi, on datatable i this column:

<p:column headerText="Attivo" width="50" style="text-align:center;" >
<p:cellEditor>
<f:facet name="output">
<h:selectBooleanCheckbox value="#{o.attivo}" readonly="true"/>
</f:facet>
<f:facet name="input">
<p:selectBooleanCheckbox value="#{o.attivo}" />
</f:facet>
</p:cellEditor>
</p:column>

field attivo is boolean
1. Is readonly but on output in modificable?

2. if the line is not selected, everything is ok, otherwise the check status is not clear



Thanks
Francesco

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

26 Aug 2020, 14:20

Please try;

Code: Select all

.ui-datatable .ui-datatable-data tr.ui-row-editing td.ui-editable-column .ui-chkbox-box.ui-state-active,
.ui-datatable .ui-datatable-data td.ui-cell-editing .ui-chkbox-box.ui-state-active {
   color: #ffffff;
   border-color: #ffffff;
}

Post Reply

Return to “Omega - PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 2 guests