p:selectBooleanCheckbox doesn't render marked in p:dataTable

UI Components for JSF
Post Reply
User avatar
vinnysoft
Posts: 43
Joined: 07 Oct 2011, 23:51

15 Dec 2011, 18:42

Hi!

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>
This render unmarked.

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>
Anyone have an idea about this?

Thanks!
NetBeans 7.1.2 - Mojarra 2.1.11 - PrimeFaces 3.3.1 - PrimeFaces Extensions 0.5.1 - Apache Tomcat 7.0.29 - Hibernate 4.1.4-Final - MySQL 5.5

User avatar
vinnysoft
Posts: 43
Joined: 07 Oct 2011, 23:51

16 Dec 2011, 03:53

Anyone?
NetBeans 7.1.2 - Mojarra 2.1.11 - PrimeFaces 3.3.1 - PrimeFaces Extensions 0.5.1 - Apache Tomcat 7.0.29 - Hibernate 4.1.4-Final - MySQL 5.5

User avatar
vinnysoft
Posts: 43
Joined: 07 Oct 2011, 23:51

16 Dec 2011, 04:06

NetBeans 7.1.2 - Mojarra 2.1.11 - PrimeFaces 3.3.1 - PrimeFaces Extensions 0.5.1 - Apache Tomcat 7.0.29 - Hibernate 4.1.4-Final - MySQL 5.5

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 50 guests