Example #1
0
  /** @inheritDoc */
  @Override
  public void init(Context context, Component component) {
    super.init(context, component);
    // Obtain outgoing 'ServerMessage' for initial render.
    final ServerMessage serverMessage = (ServerMessage) context.get(ServerMessage.class);
    serverMessage.addLibrary(SharedService.ECHOCOMPONENTS_SERVICE.getId());

    serverMessage.addLibrary(PLAINHTML_SYNC_SERVICE.getId());
  }
Example #2
0
 /**
  * @see nextapp.echo.webcontainer.ComponentSynchronizePeer#init(nextapp.echo.app.util.Context,
  *     Component)
  */
 public void init(Context context, Component component) {
   super.init(context, component);
   ServerMessage serverMessage = (ServerMessage) context.get(ServerMessage.class);
   serverMessage.addLibrary(ONLOAD_SERVICE.getId());
 }