How to get Connector of Component inside of another component

Hello,

How can i obtain connector of component from another component?

// psedo code..
public MyComponent extends AbstractComponent {

  ...

  public MyComponent(Component c) {
...
  // Here i need connector of c!!!
  ...
}

  ...
 
}

Thanks,
Emir Cem

Hi,

the Component interface extends ClientConnector which extends the Connector interface so the Component instance will always be a Connector too. Or did I misunderstand what you need?

Actually i need AbstractComponentConnector to get widget of component!

Well, it’s not possible per se. The ComponentConnectors and Widgets exist only on the client side, in the user’s browser. Please describe what you actually wish to do so we can help you find another way to do it.