Pass the component to the encode method if yuiType is ClientId.