4 Replies Latest reply on Jul 30, 2009 5:22 AM by krishnakumar mj

    richfaces:orderingList

    krishnakumar mj Newbie

      <rich:orderingList value="#{contractBacking.postValidationItems}" var="lib" listHeight="300" listWidth="350" columnClasses="name,value" >
      <rich:column>
      <h:selectManyCheckbox value="#{contractBacking.selectedPValidationItems}" layout="pageDirection">
      <f:selectItems value="#{lib}"/>
      </h:selectManyCheckbox>
      </rich:column>
      </rich:orderingList>

      The method which I have binded for selectedcheckbox Items ie selectedPValidationItems is not invoking.So I am not getting the selectedcheckbox items.Please help me to provide solution for this

        • 1. Re: richfaces:orderingList
          Ilya Shaikovsky Master

          implement converter for your objects and override hashCode and equals properly.

          problems with LS and OL components could be easilly checked with rich:messages. Samples at rivcfaces-demo.

          • 2. Re: richfaces:orderingList
            krishnakumar mj Newbie

            Hi,

            <rich:orderingList value="#{contractBacking.postValidationItems}" var="lib" listHeight="300" listWidth="350" columnClasses="name,value" >
            <rich:column >
            <h:selectManyCheckbox id="postvalidationItems" value="#{contractBacking.selectedPValidationItems}" layout="pageDirection">
            <f:selectItems value="#{lib}"/>
            </h:selectManyCheckbox>
            </rich:column>
            </rich:orderingList>


            After form submission i am getting the following error message as
            *Expected a child component type of UISelectItem/UISelectItems for component type javax.faces.SelectMany(postvalidationItems). Found java.lang.String.*

            Please help me to provide solution for this

            • 3. Re: richfaces:orderingList
              Ilya Shaikovsky Master

               

              <f:selectItems value="#{lib}"/>


              seems this is not List of selectItems.

              • 4. Re: richfaces:orderingList
                krishnakumar mj Newbie

                Hi,

                <rich:orderingList value="#{contractBacking.postValidationItems}" var="lib" listHeight="300" listWidth="350" columnClasses="name,value" >

                Actually "#{contractBacking.postValidationItems}" contains SelectItems and also i am assigning this binded property to variable lib.While first time page is loaded i am able to see all the checkbox items that are assigned to
                contractBacking.postValidationItems.But After selecting some checkbox items and submitting the page i am getting the already mentioned error message. Please help me to provide solution for this