2 Replies Latest reply on Feb 28, 2008 10:04 AM by ilya_shaikovsky

    rich:listShuttle > getting selected items using javascript

    rhancke

      Hi RichFaces Users.

      A) I'd like to know if there is a way to get all selected items on the selected list items, using a javascript function.

      B) I'd like to know if there is a way to get the select item on the available list items, when you click on 'Copy or Remove' buttons.

      For a better explain of item B, imagine the following case:

      1. You select one item on the available list items
      2. You click on 'Copy' button.
       2.1 There is 'oncopyclick' property, calling a javascript function passing
       the selected item object.
       2.2 The javascript called shows for example, the selected item's value.
      3. The selected item is moved to the selected list items.


        • 1. Re: rich:listShuttle > getting selected items using javascri
          rhancke

          Looking for some forum's posts, I've found one alternative, instead of using javascript.
          Adding the following instruction inside listShuttle:
          <a4j:support event="onlistchanged" reRender="someField"/>

          "rhancke" wrote:
          Hi RichFaces Users.

          A) I'd like to know if there is a way to get all selected items on the selected list items, using a javascript function.

          B) I'd like to know if there is a way to get the select item on the available list items, when you click on 'Copy or Remove' buttons.

          For a better explain of item B, imagine the following case:
          1. You select one item on the available list items
          2. You click on 'Copy' button.
           2.1 There is 'oncopyclick' property, calling a javascript function passing
           the selected item object.
           2.2 The javascript called shows for example, the selected item's value.
          3. The selected item is moved to the selected list items.


          • 2. Re: rich:listShuttle > getting selected items using javascri
            ilya_shaikovsky

            check please developers guide - JS API described there.