The main purpose to package composite component is to share the copy of composite component(s) among other JSF2 project(s).
in this post, I will use the jQuery star rating in JSF2 as sample.
Tool: Eclipse
Platform: JSF2
Steps:
1. create a new java project
File > New > Java > Java Project > Next > Fill in project name > Finish
2. in the new project, create a new folder called "META-INF"
3. copy all required artifacts in resources into the META-INF folder
4. export this project as a JAR and deploy the JAR into project(s) classpath (/WEB-INF/lib folder in a web application) that are required this composite component.
5. using the composite component(s).
a. declare the namespace
b. calling the composite component
complete source
Done!!
Once you have created and packaged the composite components, please refer the next step - How to declare custom namespace for composite components
in this post, I will use the jQuery star rating in JSF2 as sample.
Tool: Eclipse
Platform: JSF2
Steps:
1. create a new java project
File > New > Java > Java Project > Next > Fill in project name > Finish
2. in the new project, create a new folder called "META-INF"
3. copy all required artifacts in resources into the META-INF folder
4. export this project as a JAR and deploy the JAR into project(s) classpath (/WEB-INF/lib folder in a web application) that are required this composite component.
5. using the composite component(s).
a. declare the namespace
b. calling the composite component
complete source
Done!!
Once you have created and packaged the composite components, please refer the next step - How to declare custom namespace for composite components
No comments:
Post a Comment