Friday, February 27, 2009

Portlet Factory update design shortcut tips - copy model directly

When developing in Portlet Factory, I do the testing on my local server because it is faster than deploying onto the development websphere portal server. But somethings we have to develop and test directly in a portal server. What you have to do is to deploy the project onto the portal server. As you know the deployment will take some time. So a faster way is to copy the model directly from your Portlet Factory Eclipse workspace into the Portal deployment path.

From
<workspace path>\<project>\WebContent\WEB-INF\models\helloworld.model

To
<portal wp_profile path>\installedApps\<cell>\<app.ear>\<app.war>\WEB-INF\models\helloworld.model

Once you copy from your workspace to the server. Log out of the portal and log back in. Presto, the model update is there. This is only recommended for development and testing purposes only. For production environment it is better to package the project and update the application deployment.

No comments: