-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Declaring component attributes via annotations #1193
Comments
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented I implemented an annotation processor that generates these Java classes and XML files based on annotations for me at build time. I think Richfaces did something similar. JSF could just move that process to the runtime. |
@glassfishrobot Commented |
@glassfishrobot Commented |
@tandraschko Commented |
@arjantijms Commented |
@NicolaIsotta Commented |
@Rapster Commented The idea is to use annotations on the component implentation, and generate a parent class contaning all getters and setters. Yes it's strange, but I don't have a choice since there are calls to setters and getters in the impl. (I could generate an interface containing all these getters and setters though) Suggestions are more than welcome 😉 If possible I'd like to use |
@arjantijms Commented One more old example of the proposed syntax here: http://arjan-tijms.omnifaces.org/2012/05/simple-java-based-jsf-22-custom.html We did discuss this somewhat previously and I think the idea that got most support then was to go for a component model based on interfaces, where the base class of a component (UIComponent) doesn't contain most of the framework itself. For compatibility, the component tree should perhaps still be UIComponent based, with UIComponents delegating to the newer style interface and annotation based components. |
@Rapster Commented
Do you have any idea when the new EG is formed? I know from there, you will figure out what happens next in JSF ecosystem which I'm looking forward to hear about |
@arjantijms Commented
Something along these lines indeed ;)
Not really, other than that it should be 'soon' that the Mojarra transfer is done, which would be a major milestone toward that. |
@Rapster Commented |
@arjantijms Commented |
@tandraschko Commented But we can discuss this when the EG has been formed. |
|
As of #594, custom components can be declared to be useable in Facelets via the @FacesComponent annotation. Via this it's no longer required to have an entry in a taglib.xml file.
However, if the component author wishes to declare the component's attributes (for documentation, tooling, etc), XML still has to be used.
I therefor would like to propose declaring these attributes via annotations as well.
E.g.
The text was updated successfully, but these errors were encountered: