2 Replies Latest reply on Jan 20, 2009 8:01 AM by olibutzki

    rich:listShuttle - Accessing target list via JavaScript

    olibutzki

      Hi everyone,

      I wonder how I can access the target list of a List-Shuttle via JavaScript. I don't want to send any request to the server. So, can anyone tell me how to get this information at client-side?

      Kind regards
      Oliver

        • 1. Re: rich:listShuttle - Accessing target list via JavaScript
          ilya_shaikovsky

          tell please more about the case itself. which event you want to use in order to process the items?

          • 2. Re: rich:listShuttle - Accessing target list via JavaScript
            olibutzki

             

            "ilya_shaikovsky" wrote:
            tell please more about the case itself. which event you want to use in order to process the items?


            I want to call a function every time the target lists changes, I think onlistchanged is the event I need.

            I have a validation engine which should check if the target list at least contains x items. I know about the targetRequired attribute by I don't want to use the validation service of the Richfaces component as I want to check more complex constraints.

            So I'm looking for a way to access the target list or the number of items in the target list.