I'm having a problem using p:selectBooleanCheckbox inside a p:dataTable. It's mapped to a boolean property on the bean, but always render unmarked. Even setting value="true", just by using it on a p:dataTable the checkbox doesn't render marked. Ex:
This render marked.
Code: Select all
<p:panel>
<p:selectBooleanCheckbox value="true" />
</p:panel>
Code: Select all
<p:dataTable id="tabelaAtributos"
value="#{solicitante.tabelaAtributos}"
var="atributoPadrao"
rows="10"
pageLinks="5"
rowsPerPageTemplate="5,10,15"
paginator="true"
paginatorAlwaysVisible="false"
emptyMessage="Nenhum registro encontrado."
paginatorPosition="bottom"
paginatorTemplate="{RowsPerPageDropdown} {CurrentPageReport} {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink}"
>
<p:column headerText="Name">
<h:outputText value="#{atributoPadrao.nomeAtributo}"/>
</p:column>
<p:column headerText="Values">
<p:inputText id="atributoTexto"
value="#{atributoPadrao.valorTexto}"
rendered="#{atributoPadrao.tipo eq solicitante.tipoTexto}"
required="true"/>
<p:selectBooleanCheckbox value="true" rendered="#{atributoPadrao.tipo eq solicitante.tipoBooleano}" /> //Even mapping to a bean boolean property true, the selectBooleanCheckbox doesn't show up marked.
</p:column>
</p:dataTable>
Thanks!