3 Replies Latest reply on Apr 11, 2011 9:41 AM by jmiazga

    Components not working properly, project config issue?

    jmiazga Newbie

      There are 2 occurances in my current project where Richfaces componenets do no work properly.  I have a feeling that the issues are related, but I am not sure what needs to be done to fix this problem.

       

      Problem 1 - rich:extendedDataTable

      When I try to resize the columns, during the first attempt the column goes back to its original width.  Any attempt after the first one will successfully resize the columns.

       

      Problem 2 - rich:select

      When I use the valueChangeListener attribute, the first time I select a different value the selection returns to the original one.  After the first attempt any number of selection changes works as expected.

       

      Any ideas on what might be causing this?

        • 2. Components not working properly, project config issue?
          Nick Belaevski Master

          Hi,

           

          Please post related page/bean code.

          • 3. Re: Components not working properly, project config issue?
            jmiazga Newbie

            {code}

            <ui:component xmlns="http://www.w3.org/1999/xhtml"

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

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

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

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

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

                      xmlns:it="http://richfaces.org/iteration"

                      xmlns:cc="http://java.sun.com/jsf/composite"

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

             

             

               <cc:interface>

                   <cc:attribute name="list" />

                   <cc:attribute name="currentView" />

                   <cc:attribute name="cssLib" default="css/components" />

                   <cc:attribute name="cssFile" default="toolbar.css" />

               </cc:interface>

             

             

               <cc:implementation>

                    <h:outputStylesheet library="#{cc.attrs.cssLib}"

                                          name="#{cc.attrs.cssFile}" />

             

                    <h:form styleClass="toolbar">

                         <rich:toolbar height="20" itemSeparator="line">

                              <rich:toolbarGroup>

                                  <h:graphicImage library="img/icons" name="include.png" />

                                  <h:graphicImage library="img/icons" name="undo.png" />

                               </rich:toolbarGroup>

                               <rich:toolbarGroup>

                                    <rich:select

                                         valueChangeListener="#{bean.changeListener}"

                                         value="#{cc.attrs.currentView}">

                                         <f:selectItems value="#{cc.attrs.list}" />

                                    </rich:select>

                               </rich:toolbarGroup>

                          </rich:toolbar>

                    </h:form>

               </cc:implementation>

            </ui:component>

            {code}

             

             

             

             

            {code}

            public class Bean{

             

                      public Bean() {

             

                      }

             

                      public void changeListener(ValueChangeEvent event) {

                                String selectedDataView = event.getNewValue().toString();

                                    .

                                    .

                                    .

                      }

            }

            {code}