3 Replies Latest reply on Feb 1, 2008 11:09 AM by kasim

    Ordering List Question

    kasim


      I have a question on the orderingList.

      I looked for a few other threads and i dont think i need a converter. I am using it with Seam fwiw.

      But i have ->

      <rich:orderingList value="#{collectionTag.tagList}"
      fastOrderControlsVisible="false" orderControlsVisible="false"
      selection="#{substance.equalTags}"
      var="item" listWidth="200" rows="5">
      
      <h:column>
       <h:outputText value="#{item}"/>
      </h:column>
      </rich:orderingList>
      


      And the selection item ... i want whatever is selected to be stored in there.

      IS that the right way of doing it? They values dont seem to be get set and sent back to the server.

      FWIW - the reason i am using orderingList is mainly i want a scrollable select box. And was thinking this would be cleaner than wrapping with div tags.




        • 1. Re: Ordering List Question
          ilya_shaikovsky

          just place rich:messages to your page. ;)

          • 2. Re: Ordering List Question
            kasim

             

            "ilya_shaikovsky" wrote:
            just place rich:messages to your page. ;)


            I tried that , didnt seem to do anything except add more messaging to the page.

            Although i did get an argument type mismatch .... what type of object is selection expecting? Collection? Array? String?

            • 3. Re: Ordering List Question
              kasim


              Hey thanks i got it :)

              I made it a collection. I was getting thrown off for a bit because SOMEONE on our project decided to make a class called "Collection" in our seession beans package. So when i typed Collection it was referring to that instead of java.util.Collection

              **bangs head**