3 Replies Latest reply on May 7, 2011 2:41 PM by Lukáš Fryč

    <h:selectBooleanCheckbox value="true" /> not checked into <rich:column>

    raid3n Newbie

      <rich:column>

                                                        <h:selectBooleanCheckbox value="true" />

                                              </rich:column>

       

      At the first rendering, the checkboxs are  not checked. Why? I'm using rf4final

        • 1. <h:selectBooleanCheckbox value="true" /> not checked into <rich:column>
          Lukáš Fryč Master

          Hello, it works for me with rich:dataTable.

           

          Could you please post complete page code?

          • 2. Re: <h:selectBooleanCheckbox value="true" /> not checked into <rich:column>
            raid3n Newbie

            <rich:accordionItem id="trucks_accordionItem" header="Trucks"

                                          switchType="client">

                                          <rich:dataScroller for="trucks_datatable" />

                                          <rich:dataTable id="trucks_datatable" value="#{truckBeans.trucks}"

                                                    var="tb" iterationStatusVar="t">

                                                    <f:facet name="header">

                                                              <rich:columnGroup>

                                                                        <rich:column>

                                                                                  <h:outputText value="Truck Id" />

                                                                        </rich:column>

                                                                        <rich:column>

                                                                                  <h:outputText value="Number of Journeys" />

                                                                        </rich:column>

                                                                        <rich:column>

                                                                                  <h:outputText value="Selected" />

                                                                        </rich:column>

                                                              </rich:columnGroup>

                                                    </f:facet>

             

             

                                                    <rich:column>

                                                              <h:outputText value="#{tb.id}" />

                                                    </rich:column>

                                                    <rich:column>

                                                              <h:outputText value="#{tb.njourneys}" />

                                                    </rich:column>

                                                    <rich:column>

                                                              <h:selectBooleanCheckbox value="true"

                                                                        onchange="selectTruck(#{tb.id}); updateJourneys()"

                                                                        valueChangeListener="#{truckBeans.change}" />

                                                    </rich:column>

                                                    <f:facet name="footer">

                                                              <h:outputText value="Total of Trucks: #{truckBeans.trucks.size()}" />

                                                    </f:facet>

                                          </rich:dataTable>

                                          <rich:dataScroller for="trucks_datatable"></rich:dataScroller>

                                </rich:accordionItem>

             

             

            It works with <h:selectBooleanCheckbox value="#{1>0}" />

            • 3. Re: <h:selectBooleanCheckbox value="true" /> not checked into <rich:column>
              Lukáš Fryč Master

              You could also use <h:selectBooleanCheckbox value="#{true}" />.

               

              But the same behavior you will find when you will try another UIInput components with static values, e.g. <h:inputText value="some text" />.