Today I will teach you how to create a project with webphere portal use jsf.
Below is step by step to create new a project ( use tool Rational Application Developer for WebSphere 9.0).
Step 1: Click File > New > Other
Step 2: Typing "Por" and choice "Portlet Project" and click "Next"
Step 3: Enter project name: "WSPortalEx1"
Note:
- Target runtime: this here i use WebSphere Portal v8.0
- Create a portlet with portlet name: "WSPortalEx1"
Step 4: Change configuration to JSR286: click button Modify
Step 5: Change Portlet API JSR 168 Portlet to JSR 286 Portlet
and portlet type: use Faces Portlet (Use JSF to code)
> Click button OK
Step 6: Click button Next to change Portlet Settings: change package name, position of class...
continue you click button Finish to final step to create new portlet project.
Here is interface project when create successful
I change text to "Hello world!"
Step 7: Run project
You click right mouse on your project and choice Run As > Run on Server
here i use WebSphere portal v8.0 Server
and click button Finish.
waiting for some minutes
and result
Therefore i finish my tutorial for create project portlet use WebSphere portal.
If have any question you can comment i will support now.
Thank and Cheer!
No comments:
Post a Comment