0 Replies Latest reply on Oct 20, 2012 2:45 PM by Rafael Gomes

    Problem render extendedDataTable

    Rafael Gomes Newbie

      I'm having trouble rendering selectOneRadio values.

      When I select the type of car the table does not show records the values of type 2(Rented).


      Below is my codes


      bean (beanListAction.java)


      metod filter in class controller


      public void filter() {
                          if (typeCar == null) typeCar= "F";
        cars = new ArrayList<Car>(carTests);
                          // Iterator the cars available by removing those who do not meet the filter
                          for (Iterator<Car> it = cars.iterator(); it.hasNext();) {
                                    Car car = it.next();
                        else if (!StringUtils.isEmpty(typeCar) && (car.getCar() == null || !car.getCar().toLowerCase().startsWith(typeCar.toLowerCase())))


      model (Car.java)

      //Method for setCar rendered
      public void setCar(String car) {
                          if (car == null) {
                                    car = "F";
                          } else {
                                    this.car = car;




      <rich:extendedDataTable id="car" value="#{beanListAction.cars}" 
                                         var="car" rowClasses="line1, line2" selection="#{beanListAction.indexSelection}"
                                         rows="16" style="height:260px; width:580px;" selectionMode="single">
      Type<br />
                                   <h:selectOneRadio value="#{beanListAction.typeCar}" id="typeCar">
                                   <f:selectItem itemLabel="Own" itemValue="F"/>
                                   <f:selectItem itemLabel="Rented" itemValue="T"/>
                                   #{car.typeCar eq 'F' ? 'Own'  : 'Rented'}
      Part of what makes the rendering in dataTable
      <rich:column styleClass="center" width="60px">
                                         <f:facet name="header">
                                             <a4j:commandButton action="#{beanListAction.filter}"
                                                   render="car" execute="@form" />



      Someone could you help me?