0 Replies Latest reply on Aug 6, 2018 9:09 AM by vicent Ros

    Wildfly 9x and richfaces 3.3.3 --> select all checkboxes

    vicent Ros Newbie

      Hello,

      I am generating a list with checkboxes. Then I have a button of selectAll and Unselect All checkboxes :

       

       

      html xmlns="http://www.w3.org/1999/xhtml"

      xmlns:ui="http://java.sun.com/jsf/facelets"

      xmlns:h="http://java.sun.com/jsf/html"

      xmlns:f="http://java.sun.com/jsf/core"

      xmlns:rich="http://richfaces.org/rich"

      xmlns:a4j="http://richfaces.org/a4j"

      xmlns:c="http://java.sun.com/jstl/core"

      xmlns:util="http://org.endesa.com/everest/util">

       

       

       

       

      <a4j:commandButton id="pushall" value="Marcar Todos"

       

      action="#{messagesBean.selectAll}"

       

      styleClass="h-command-button"

      disabled="#{!messagesBean.enableButton}" reRender="allMessagesTable:tt"/>

       

       

      The problem I am having is : If I click on the buttons after generate the list, works fine, but when I mark the checkbox individually and then I click selectAll or UnselectAll it just acts over the last element of the list I clicked. I have to logout to solve the problem.

       

      I think the error is in JavaScript generated by some library from richfaces.

       

      It's important to say that it works OK in JBoss 5.0 but not in WildFly 9.x.

       

      I'd appreciate some help.

       

      Thanks in advance.