1 Reply Latest reply on Jan 25, 2009 11:57 AM by Nick Belaevski

    ListShuttle and targetSelection/JavaScript access

    Sergey Morenets Novice


      I have listShuttle component and want to disable a button when no target selection is made. It seems that "onclick" event could be used to catch that event.

      But how to determine if selection is empty(without backing beans)?
      Could we use the JavaScript code like this to enable/disable?

      <h:commandButton id="view" action="view" value="View"
       disabled="form.listShuttle.component.targetSelection != null" />