Annu
Annu

Reputation: 562

JSF @ManagedBean and @SessionScoped calling priority

Is there any difference in writing scope and bean annotation in any particular sequence in JSF ? For eg. see the below two declaration

@SessionScoped

@ManagedBean(name = "editEmployeeController")

or

@ManagedBean(name = "editEmployeeController")

@SessionScoped

Upvotes: 0

Views: 130

Answers (1)

jklee
jklee

Reputation: 2268

No, it's the same. There isn't any priority. But this is best practice from oracle for the order. http://www.oracle.com/technetwork/java/javase/documentation/index-137868.html#orderoftags

Upvotes: 1

Related Questions