What does "@" mean in JSF?

Asked

Viewed 62 times

0

What does this @ on JSF pages mean? ex:

process="@this"
update="@form"

1 answer

0


@jsfis used in so-called annotations, which serve to annotate classes, methods, and fields so that they can be handled by the compiler, development tools, and libraries. There is a more technical explanation for this, but in simple words it would be like when you run the program he verified these annotations at compile time or used them by tools such as code parsers, persistence frameworks or unit tests, among others. There are marked annotations, unique value annotations Ex. @Annotations("value"), Complete annotations, patterns like @Override of java.lang. Ex. the @Deprecated annotation is a tag annotation that indicates that a method is obsolete and is placed in the method signature. @Suppresswarnings turns off alerts from part of the application code, and other.

  • I mean "@" on xhtml pages, not java classes.

  • I understand, I’m sorry for the misunderstanding. I don’t know if I’m 100% sure but for ex. when in an <h:commandButton> tag in the update attribute I assign @form (update="@form''), it updates the whole page by clicking the button, avoiding errors as sometimes a part of the code is not compiled and such.. I don’t know if it helped.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.