Hi
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" />
Hello,
Use this:
#{rich:component(('shuttleId')}.targetList.getSelection()