Wednesday, 1 October 2014

Portlet Development Beginners Tasks

 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. 
 

  1. 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.

  2. 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.

  3. Create an URL in the view jsp, which when clicked, the user will be able to go to the edit mode.

  4. 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.

  5. 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.

  6. 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.

  7. 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.

  8. Use co-operative portlets for inter-portlet communication to pass a String from one  portlet to another portlet deployed in the same page.

  9. Use co-operative portlets for inter-portlet communication to pass a java object from one  portlet to another portlet deployed in the same page.

  10. Use portlet events for inter-portlet communication to pass a java object from one  portlet to another portlet deployed in the same page.

  11. Do Communication between a servlet and a portlet like passing a parameter between a portlet and a servlet.



No comments:

Post a Comment