Portlet Development Beginners Tasks
These are the assignments which you may follow to pick up portal skills. It will definitely help you in building portlet application development skill.
- Hello World Portlet :
Create a form in the view mode.
Submit the form. Retrieve the values.
Display the submitted values again in the view mode. - Set up a connection pool and datasource in the application server and use the datasource in a portlet to obtain a connection. Fetch some sample data to show in the portlet.
- Create an URL in the view jsp, which when clicked, the user will be able to go to the edit mode.
- Put a single choice dropdown and a submit button in the jsp page. Populate the dropdown with values: view, edit and help. When the submit button is clicked, the portlet mode will be decided on the selected value in the dropdown.
- Create a Weather Portlet that will display some city names like Kolkata, Delhi, Mumbai, Chennai etc and their corresponding maximum and minimum temperature values reading from an XML file.
- Introduce portlet preferences in the Weather Portlet. The user can go to the edit mode of the portlet and choose which cities they want/don't want to see in the view mode.
- Create two portlets in your application. Use PortletSession for inter-portlet communication to pass an object from one portlet to another portlet deployed in the same page.
- Use co-operative portlets for inter-portlet communication to pass a String from one portlet to another portlet deployed in the same page.
- Use co-operative portlets for inter-portlet communication to pass a java object from one portlet to another portlet deployed in the same page.
- Use portlet events for inter-portlet communication to pass a java object from one portlet to another portlet deployed in the same page.
- Do Communication between a servlet and a portlet like passing a parameter between a portlet and a servlet.
No comments:
Post a Comment