36Under the second paragraph of Article 56 of the Statute of the Court of Justice, an appeal may be brought by any party which has been unsuccessful, in whole or in part, in its submissions.
37It is clear from case-law that an appeal brought against a judgment of the Court of First Instance is admissible in so far as the latter has rejected a plea of inadmissibility raised by one party against an action, even though the Court of First Instance subsequently in the remainder of the same judgment dismissed that action as being unfounded (see Case C-23/00 P Council v Boehringer [2002] ECR I-1873, paragraph 50, and Case C-141/02 P Commission v max.mobil [2005] ECR I-1283, paragraphs 50 and 51).
38In the present case, it is not disputed that the Commission raised a plea that there was no need to adjudicate before the Court of First Instance, and it is clear from paragraph 12 of the judgment under appeal that that plea was dismissed at paragraph 21 of that judgment and that the Court of First Instance dismissed the action as being unfounded.
39In order to assess the admissibility of a cross-appeal brought against a judgment dismissing an action on the merits, there is no need to determine whether the plea, raised before the Court of First Instance and dismissed by it, seeks the dismissal of the action because it is inadmissible or because it has become devoid of purpose. Those are two preliminary issues, which, if successful, would prevent the Court of First Instance from ruling on the merits.
40Consequently, the cross-appeal brought by the Commission is admissible.
41In dismissing the plea that there was no need to adjudicate raised by the Commission, the Court of First Instance held, first, at paragraph 19 of the judgment under appeal, that the dispute still had a purpose inasmuch as the appointment decision produced effects and that the decision to reject the candidature continued to produce effects. Secondly, the Court of First Instance held, at paragraph 20 of the judgment under appeal that the appellant retained an interest in bringing proceedings in order to ensure that the alleged unlawfulness would not recur in the future in a similar procedure to that at issue.
42At the outset, it is necessary to point out that an appellant's interest in bringing proceedings must, in the light of the purpose of the action, exist at the stage of lodging the action, failing which it will be inadmissible. That objective of the dispute must continue, like the interest in bringing proceedings, until the final decision, failing which there will be no need to adjudicate, which presupposes that the action must be liable, if successful, to procure an advantage to the party bringing it (see, to that effect, Case 53/85 AKZO Chemie v Commission [1986] ECR 1965, paragraph 21, and, by analogy, Case C-19/93 P Rendo and Others v Commission [1995] ECR I-3319, paragraph 13, and Case C-174/99 P Parliament v Richard [2000] ECR I-6189, paragraph 33).
43If the appellants interest in bringing proceedings disappears in the course of proceedings, a decision of the Court of First Instance on the merits cannot bring him any benefit.
44In the present case it is not in dispute that, when he lodged his actions, the appellant had an interest in bringing proceedings, since the contested decisions adversely affected him (see, to that effect, Case 50/84 Bensider and Others v Commission [1984] ECR 3991, paragraph 8, and Joined Cases C-61/96, C-132/97, C-45/98, C-27/99, C-81/00 and C-22/01 Spain v Council [2002] ECR I-3439, paragraph 23). His action was therefore admissible.
45Admittedly, by virtue of the second selection procedure, organised following Mr Naqvi's retirement, the contested decisions had become obsolete on the date on which the Court of First Instance delivered its judgment.
46As the Advocate General pointed out at point 41 of her Opinion, that second selection procedure deprived the appointment decision of its effects in relation to the appellant. That decision was inseparable from the decision to reject the candidature, and as the decision to reject the complaint only confirmed these two decisions, the second selection procedure deprived all the contested decisions of their effects as regards the appellant.
47However, the obsolescence of the contested decisions, which occurred after the lodging of the action, does not in itself place the Court of First Instance under an obligation to declare that there is no need to adjudicate for lack of purpose or for lack of interest in bringing proceedings at the date of the delivery of the judgment.
48First, it must be noted that, when the Court of First Instance ruled, the dispute still had a purpose, since the contested decisions had not been formally withdrawn by the Commission.
49The Court of First Instance was therefore fully entitled to hold, at paragraph 19 of the judgment under appeal that the dispute had retained its purpose.
50Secondly, it follows from the case-law of the Court of Justice that the appellant may also retain an interest in claiming the annulment of an act of a Community institution to prevent its alleged unlawfulness recurring in the future (see, to that effect, Case 92/78 Simmenthal v Commission [1979] ECR 777, paragraph 32; AKZO Chemie v Commission, paragraph 21, and Apesco v Commission, paragraph 16).
51That interest in bringing proceedings follows from the first paragraph of Article 233 EC under which the institutions whose act has been declared void are to be required to take the necessary measures to comply with the judgment of the Court (see, to that effect, Simmenthal v Commission, paragraph 32, and Case 76/79 Könecke v Commission [1980] ECR 665, paragraph 9).
52However, that interest in bringing proceedings can only exist if the alleged unlawfulness is liable to recur in the future independently of the circumstances of the case which gave rise to the action brought by the appellant.
53At paragraph 20 of the judgment under appeal, the Court of First Instance held that the appellant retained an interest in obtaining a judgment regarding the lawfulness of the selection procedure at issue so that the alleged unlawfulness might not recur in the future in a similar procedure to that in the present case.
54In that regard the Court of First Instance based its decision on the plea in law, relied on by the appellant alleging that the selection procedure was unlawful owing to the pre-selection of candidates on the basis of the director-generals memorandum. The Court of First Instance held that it could not be ruled out that the director-general might play a similar role in a subsequent and similar selection procedure.
55It is therefore necessary to establish whether the unlawfulness alleged by the appellant in the present case, the possibility of which was upheld by the Court of First Instance in order to establish the existence of an interest in bringing proceedings, is liable to recur in the future independently of the circumstances of the case which gave rise to the judgment under appeal.
56As pointed out by the Advocate General at point 45 of her Opinion, decisions on staff appointments are never repeated mechanically, inasmuch as every decision is unique and is dependent on the assessment of the respective qualities of the candidates and the demands of the post to be filled, which may vary very considerably from one case to another.
57However, in the present case, the appellant disputes not only the lawfulness of the contested decisions but also the procedure which led to their adoption. The appellant asserts that the procedure was discriminatory and consequently unlawful in itself — in other words, independently of the content of the contested decisions. According to the appellant, the director-generals memorandum bound the Consultative Committee and the appointing authority, preventing them from assessing the respective skills and aptitudes of the candidates who were not preselected in the memorandum.
58As the Advocate General pointed out at point 47 of her Opinion, in contrast to the substantive assessment of different candidatures for a post to be filled, the detailed rules of a selection procedure, laying down — as in the present case, according to the appellant — a pre-selection performed by the director-general and binding the Consultative Committee and the appointing authority, are liable to be referred to in the future in the context of similar procedures.
59From the appellants perspective, the question of the lawfulness of the detailed rules of the selection procedure for the post at issue prove therefore to be relevant in view of future candidatures for posts such as the post at issue.
60The Court of First Instance was therefore fully entitled to hold, at paragraph 20 of the judgment under appeal that the appellant still had an interest in bringing proceedings.
61Having regard to the foregoing, it must be held that the Court of Justice did not err in law in rejecting, at paragraph 21 of the judgment under appeal, the plea of no need to adjudicate.
62Therefore, the cross-appeal brought by the Commission must be dismissed as unfounded and the main appeal considered.