Jakarta trial told of terror web