[jboss-svn-commits] JBoss PortletSwap SVN: r102 - in portlets: . src src/collaborate src/collaborate/ContactPortlet src/collaborate/ContactPortlet/lib src/collaborate/ContactPortlet/src src/collaborate/ContactPortlet/src/main src/collaborate/ContactPortlet/src/main/org src/collaborate/ContactPortlet/src/main/org/jboss src/collaborate/ContactPortlet/src/main/org/jboss/portlet src/collaborate/ContactPortlet/src/main/org/jboss/portlet/contacts src/collaborate/ContactPortlet/src/resources src/collaborate/ContactPortlet/src/resources/contact-war_22 src/collaborate/ContactPortlet/src/resources/contact-war_22/WEB-INF src/collaborate/ContactPortlet/src/resources/contact-war_22/WEB-INF/common src/collaborate/ContactPortlet/src/resources/contact-war_22/WEB-INF/contacts src/collaborate/ContactPortlet/src/resources/contact-war_24 src/collaborate/ContactPortlet/src/resources/contact-war_24/WEB-INF src/collaborate/ContactPortlet/src/resources/contact-war_24/WEB-INF/common src/collaborate/ContactPor! tlet/src/resources/contact-war_24/WEB-INF/contacts src/common_libs src/miscellaneous src/miscellaneous/CalcPortlet src/miscellaneous/CalcPortlet/lib src/miscellaneous/CalcPortlet/src src/miscellaneous/CalcPortlet/src/main src/miscellaneous/CalcPortlet/src/main/org src/miscellaneous/CalcPortlet/src/main/org/jboss src/miscellaneous/CalcPortlet/src/main/org/jboss/portlet src/miscellaneous/CalcPortlet/src/main/org/jboss/portlet/calc src/miscellaneous/CalcPortlet/src/resources src/miscellaneous/CalcPortlet/src/resources/calcportlet-war_22 src/miscellaneous/CalcPortlet/src/resources/calcportlet-war_22/WEB-INF src/miscellaneous/CalcPortlet/src/resources/calcportlet-war_22/WEB-INF/calc src/miscellaneous/CalcPortlet/src/resources/calcportlet-war_24 src/miscellaneous/CalcPortlet/src/resources/calcportlet-war_24/WEB-INF src/miscellaneous/CalcPortlet/src/resources/calcportlet-war_24/WEB-INF/calc src/miscellaneous/FlashPortlet src/miscellaneous/FlashPortlet/lib src/miscellaneous/FlashPo! rtlet/src src/miscellaneous/FlashPortlet/src/main src/miscellaneous/FlashPortlet/src/main/org src/miscellaneous/FlashPortlet/src/main/org/jboss src/miscellaneous/FlashPortlet/src/main/org/jboss/portlet src/miscellaneous/FlashPortlet/src/main/org/jboss/portlet/flash src/miscellaneous/FlashPortlet/src/resources src/miscellaneo

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Tue Jul 25 10:26:23 EDT 2006


Author: roy.russo at jboss.com
Date: 2006-07-25 10:23:17 -0400 (Tue, 25 Jul 2006)
New Revision: 102

Added:
   portlets/src/
   portlets/src/PortletSwap.iml
   portlets/src/PortletSwap.ipr
   portlets/src/PortletSwap.iws
   portlets/src/collaborate/
   portlets/src/collaborate/ContactPortlet/
   portlets/src/collaborate/ContactPortlet/LICENSES.txt
   portlets/src/collaborate/ContactPortlet/README.txt
   portlets/src/collaborate/ContactPortlet/build.xml
   portlets/src/collaborate/ContactPortlet/contact.war
   portlets/src/collaborate/ContactPortlet/lib/
   portlets/src/collaborate/ContactPortlet/lib/explode.jar
   portlets/src/collaborate/ContactPortlet/lib/hibernate3.jar
   portlets/src/collaborate/ContactPortlet/lib/portal-common-lib.jar
   portlets/src/collaborate/ContactPortlet/lib/portal-core-lib.jar
   portlets/src/collaborate/ContactPortlet/lib/portal-portlet-lib.jar
   portlets/src/collaborate/ContactPortlet/lib/portlet-api-lib.jar
   portlets/src/collaborate/ContactPortlet/src/
   portlets/src/collaborate/ContactPortlet/src/bin/
   portlets/src/collaborate/ContactPortlet/src/main/
   portlets/src/collaborate/ContactPortlet/src/main/org/
   portlets/src/collaborate/ContactPortlet/src/main/org/jboss/
   portlets/src/collaborate/ContactPortlet/src/main/org/jboss/portlet/
   portlets/src/collaborate/ContactPortlet/src/main/org/jboss/portlet/contacts/
   portlets/src/collaborate/ContactPortlet/src/main/org/jboss/portlet/contacts/Contact.java
   portlets/src/collaborate/ContactPortlet/src/main/org/jboss/portlet/contacts/ContactsPortlet.java
   portlets/src/collaborate/ContactPortlet/src/resources/
   portlets/src/collaborate/ContactPortlet/src/resources/contact-war_22/
   portlets/src/collaborate/ContactPortlet/src/resources/contact-war_22/WEB-INF/
   portlets/src/collaborate/ContactPortlet/src/resources/contact-war_22/WEB-INF/common/
   portlets/src/collaborate/ContactPortlet/src/resources/contact-war_22/WEB-INF/common/notloggedin.jsp
   portlets/src/collaborate/ContactPortlet/src/resources/contact-war_22/WEB-INF/contacts-object.xml
   portlets/src/collaborate/ContactPortlet/src/resources/contact-war_22/WEB-INF/contacts/
   portlets/src/collaborate/ContactPortlet/src/resources/contact-war_22/WEB-INF/contacts/add.jsp
   portlets/src/collaborate/ContactPortlet/src/resources/contact-war_22/WEB-INF/contacts/delete.jsp
   portlets/src/collaborate/ContactPortlet/src/resources/contact-war_22/WEB-INF/contacts/domain.hbm.xml
   portlets/src/collaborate/ContactPortlet/src/resources/contact-war_22/WEB-INF/contacts/edit.jsp
   portlets/src/collaborate/ContactPortlet/src/resources/contact-war_22/WEB-INF/contacts/hibernate.cfg.xml
   portlets/src/collaborate/ContactPortlet/src/resources/contact-war_22/WEB-INF/contacts/list.jsp
   portlets/src/collaborate/ContactPortlet/src/resources/contact-war_22/WEB-INF/jboss-app.xml
   portlets/src/collaborate/ContactPortlet/src/resources/contact-war_22/WEB-INF/jboss-web.xml
   portlets/src/collaborate/ContactPortlet/src/resources/contact-war_22/WEB-INF/portlet.xml
   portlets/src/collaborate/ContactPortlet/src/resources/contact-war_22/WEB-INF/web.xml
   portlets/src/collaborate/ContactPortlet/src/resources/contact-war_22/images/
   portlets/src/collaborate/ContactPortlet/src/resources/contact-war_24/
   portlets/src/collaborate/ContactPortlet/src/resources/contact-war_24/WEB-INF/
   portlets/src/collaborate/ContactPortlet/src/resources/contact-war_24/WEB-INF/common/
   portlets/src/collaborate/ContactPortlet/src/resources/contact-war_24/WEB-INF/common/notloggedin.jsp
   portlets/src/collaborate/ContactPortlet/src/resources/contact-war_24/WEB-INF/contacts-object.xml
   portlets/src/collaborate/ContactPortlet/src/resources/contact-war_24/WEB-INF/contacts/
   portlets/src/collaborate/ContactPortlet/src/resources/contact-war_24/WEB-INF/contacts/add.jsp
   portlets/src/collaborate/ContactPortlet/src/resources/contact-war_24/WEB-INF/contacts/delete.jsp
   portlets/src/collaborate/ContactPortlet/src/resources/contact-war_24/WEB-INF/contacts/domain.hbm.xml
   portlets/src/collaborate/ContactPortlet/src/resources/contact-war_24/WEB-INF/contacts/edit.jsp
   portlets/src/collaborate/ContactPortlet/src/resources/contact-war_24/WEB-INF/contacts/hibernate.cfg.xml
   portlets/src/collaborate/ContactPortlet/src/resources/contact-war_24/WEB-INF/contacts/list.jsp
   portlets/src/collaborate/ContactPortlet/src/resources/contact-war_24/WEB-INF/jboss-app.xml
   portlets/src/collaborate/ContactPortlet/src/resources/contact-war_24/WEB-INF/jboss-web.xml
   portlets/src/collaborate/ContactPortlet/src/resources/contact-war_24/WEB-INF/portlet-instances.xml
   portlets/src/collaborate/ContactPortlet/src/resources/contact-war_24/WEB-INF/portlet.xml
   portlets/src/collaborate/ContactPortlet/src/resources/contact-war_24/WEB-INF/web.xml
   portlets/src/collaborate/ContactPortlet/src/resources/contact-war_24/images/
   portlets/src/common_libs/
   portlets/src/common_libs/portlet-api-lib.jar
   portlets/src/framework/
   portlets/src/miscellaneous/
   portlets/src/miscellaneous/CalcPortlet/
   portlets/src/miscellaneous/CalcPortlet/LICENSES.txt
   portlets/src/miscellaneous/CalcPortlet/README.txt
   portlets/src/miscellaneous/CalcPortlet/build.xml
   portlets/src/miscellaneous/CalcPortlet/calcportlet.war
   portlets/src/miscellaneous/CalcPortlet/lib/
   portlets/src/miscellaneous/CalcPortlet/lib/explode.jar
   portlets/src/miscellaneous/CalcPortlet/lib/portal-common-lib.jar
   portlets/src/miscellaneous/CalcPortlet/lib/portlet-api-lib.jar
   portlets/src/miscellaneous/CalcPortlet/src/
   portlets/src/miscellaneous/CalcPortlet/src/bin/
   portlets/src/miscellaneous/CalcPortlet/src/main/
   portlets/src/miscellaneous/CalcPortlet/src/main/org/
   portlets/src/miscellaneous/CalcPortlet/src/main/org/jboss/
   portlets/src/miscellaneous/CalcPortlet/src/main/org/jboss/portlet/
   portlets/src/miscellaneous/CalcPortlet/src/main/org/jboss/portlet/calc/
   portlets/src/miscellaneous/CalcPortlet/src/main/org/jboss/portlet/calc/CalcPortlet.java
   portlets/src/miscellaneous/CalcPortlet/src/resources/
   portlets/src/miscellaneous/CalcPortlet/src/resources/calcportlet-war_22/
   portlets/src/miscellaneous/CalcPortlet/src/resources/calcportlet-war_22/WEB-INF/
   portlets/src/miscellaneous/CalcPortlet/src/resources/calcportlet-war_22/WEB-INF/calc-object.xml
   portlets/src/miscellaneous/CalcPortlet/src/resources/calcportlet-war_22/WEB-INF/calc/
   portlets/src/miscellaneous/CalcPortlet/src/resources/calcportlet-war_22/WEB-INF/calc/calc.jsp
   portlets/src/miscellaneous/CalcPortlet/src/resources/calcportlet-war_22/WEB-INF/jboss-app.xml
   portlets/src/miscellaneous/CalcPortlet/src/resources/calcportlet-war_22/WEB-INF/jboss-web.xml
   portlets/src/miscellaneous/CalcPortlet/src/resources/calcportlet-war_22/WEB-INF/portlet.xml
   portlets/src/miscellaneous/CalcPortlet/src/resources/calcportlet-war_22/WEB-INF/web.xml
   portlets/src/miscellaneous/CalcPortlet/src/resources/calcportlet-war_22/images/
   portlets/src/miscellaneous/CalcPortlet/src/resources/calcportlet-war_24/
   portlets/src/miscellaneous/CalcPortlet/src/resources/calcportlet-war_24/WEB-INF/
   portlets/src/miscellaneous/CalcPortlet/src/resources/calcportlet-war_24/WEB-INF/calc-object.xml
   portlets/src/miscellaneous/CalcPortlet/src/resources/calcportlet-war_24/WEB-INF/calc/
   portlets/src/miscellaneous/CalcPortlet/src/resources/calcportlet-war_24/WEB-INF/calc/calc.jsp
   portlets/src/miscellaneous/CalcPortlet/src/resources/calcportlet-war_24/WEB-INF/jboss-app.xml
   portlets/src/miscellaneous/CalcPortlet/src/resources/calcportlet-war_24/WEB-INF/jboss-web.xml
   portlets/src/miscellaneous/CalcPortlet/src/resources/calcportlet-war_24/WEB-INF/portlet-instances.xml
   portlets/src/miscellaneous/CalcPortlet/src/resources/calcportlet-war_24/WEB-INF/portlet.xml
   portlets/src/miscellaneous/CalcPortlet/src/resources/calcportlet-war_24/WEB-INF/web.xml
   portlets/src/miscellaneous/CalcPortlet/src/resources/calcportlet-war_24/images/
   portlets/src/miscellaneous/FlashPortlet/
   portlets/src/miscellaneous/FlashPortlet/LICENSES.txt
   portlets/src/miscellaneous/FlashPortlet/README.txt
   portlets/src/miscellaneous/FlashPortlet/build.xml
   portlets/src/miscellaneous/FlashPortlet/flash.war
   portlets/src/miscellaneous/FlashPortlet/lib/
   portlets/src/miscellaneous/FlashPortlet/lib/explode.jar
   portlets/src/miscellaneous/FlashPortlet/lib/portal-common-lib.jar
   portlets/src/miscellaneous/FlashPortlet/lib/portlet-api-lib.jar
   portlets/src/miscellaneous/FlashPortlet/src/
   portlets/src/miscellaneous/FlashPortlet/src/bin/
   portlets/src/miscellaneous/FlashPortlet/src/main/
   portlets/src/miscellaneous/FlashPortlet/src/main/org/
   portlets/src/miscellaneous/FlashPortlet/src/main/org/jboss/
   portlets/src/miscellaneous/FlashPortlet/src/main/org/jboss/portlet/
   portlets/src/miscellaneous/FlashPortlet/src/main/org/jboss/portlet/flash/
   portlets/src/miscellaneous/FlashPortlet/src/main/org/jboss/portlet/flash/FlashPortlet.java
   portlets/src/miscellaneous/FlashPortlet/src/resources/
   portlets/src/miscellaneous/FlashPortlet/src/resources/flash-war_22/
   portlets/src/miscellaneous/FlashPortlet/src/resources/flash-war_22/WEB-INF/
   portlets/src/miscellaneous/FlashPortlet/src/resources/flash-war_22/WEB-INF/flash-objects.xml
   portlets/src/miscellaneous/FlashPortlet/src/resources/flash-war_22/WEB-INF/jboss-app.xml
   portlets/src/miscellaneous/FlashPortlet/src/resources/flash-war_22/WEB-INF/jboss-web.xml
   portlets/src/miscellaneous/FlashPortlet/src/resources/flash-war_22/WEB-INF/jsp/
   portlets/src/miscellaneous/FlashPortlet/src/resources/flash-war_22/WEB-INF/jsp/flash/
   portlets/src/miscellaneous/FlashPortlet/src/resources/flash-war_22/WEB-INF/jsp/flash/edit.jsp
   portlets/src/miscellaneous/FlashPortlet/src/resources/flash-war_22/WEB-INF/jsp/flash/flash.jsp
   portlets/src/miscellaneous/FlashPortlet/src/resources/flash-war_22/WEB-INF/portlet.xml
   portlets/src/miscellaneous/FlashPortlet/src/resources/flash-war_22/WEB-INF/web.xml
   portlets/src/miscellaneous/FlashPortlet/src/resources/flash-war_22/images/
   portlets/src/miscellaneous/FlashPortlet/src/resources/flash-war_24/
   portlets/src/miscellaneous/FlashPortlet/src/resources/flash-war_24/WEB-INF/
   portlets/src/miscellaneous/FlashPortlet/src/resources/flash-war_24/WEB-INF/flash-object.xml
   portlets/src/miscellaneous/FlashPortlet/src/resources/flash-war_24/WEB-INF/jboss-app.xml
   portlets/src/miscellaneous/FlashPortlet/src/resources/flash-war_24/WEB-INF/jboss-web.xml
   portlets/src/miscellaneous/FlashPortlet/src/resources/flash-war_24/WEB-INF/jsp/
   portlets/src/miscellaneous/FlashPortlet/src/resources/flash-war_24/WEB-INF/jsp/flash/
   portlets/src/miscellaneous/FlashPortlet/src/resources/flash-war_24/WEB-INF/jsp/flash/edit.jsp
   portlets/src/miscellaneous/FlashPortlet/src/resources/flash-war_24/WEB-INF/jsp/flash/flash.jsp
   portlets/src/miscellaneous/FlashPortlet/src/resources/flash-war_24/WEB-INF/portlet-instances.xml
   portlets/src/miscellaneous/FlashPortlet/src/resources/flash-war_24/WEB-INF/portlet.xml
   portlets/src/miscellaneous/FlashPortlet/src/resources/flash-war_24/WEB-INF/web.xml
   portlets/src/miscellaneous/FlashPortlet/src/resources/flash-war_24/images/
   portlets/src/miscellaneous/IFramePortlet/
   portlets/src/miscellaneous/IFramePortlet/LICENSES.txt
   portlets/src/miscellaneous/IFramePortlet/README.txt
   portlets/src/miscellaneous/IFramePortlet/build.xml
   portlets/src/miscellaneous/IFramePortlet/iframeportlet.war
   portlets/src/miscellaneous/IFramePortlet/lib/
   portlets/src/miscellaneous/IFramePortlet/lib/explode.jar
   portlets/src/miscellaneous/IFramePortlet/lib/portal-common-lib.jar
   portlets/src/miscellaneous/IFramePortlet/lib/portlet-api-lib.jar
   portlets/src/miscellaneous/IFramePortlet/src/
   portlets/src/miscellaneous/IFramePortlet/src/bin/
   portlets/src/miscellaneous/IFramePortlet/src/main/
   portlets/src/miscellaneous/IFramePortlet/src/main/org/
   portlets/src/miscellaneous/IFramePortlet/src/main/org/jboss/
   portlets/src/miscellaneous/IFramePortlet/src/main/org/jboss/portlet/
   portlets/src/miscellaneous/IFramePortlet/src/main/org/jboss/portlet/iframe/
   portlets/src/miscellaneous/IFramePortlet/src/main/org/jboss/portlet/iframe/IFramePortlet.java
   portlets/src/miscellaneous/IFramePortlet/src/resources/
   portlets/src/miscellaneous/IFramePortlet/src/resources/iframeportlet-war_22/
   portlets/src/miscellaneous/IFramePortlet/src/resources/iframeportlet-war_22/WEB-INF/
   portlets/src/miscellaneous/IFramePortlet/src/resources/iframeportlet-war_22/WEB-INF/iframe-object.xml
   portlets/src/miscellaneous/IFramePortlet/src/resources/iframeportlet-war_22/WEB-INF/iframe/
   portlets/src/miscellaneous/IFramePortlet/src/resources/iframeportlet-war_22/WEB-INF/iframe/edit.jsp
   portlets/src/miscellaneous/IFramePortlet/src/resources/iframeportlet-war_22/WEB-INF/iframe/iframe.jsp
   portlets/src/miscellaneous/IFramePortlet/src/resources/iframeportlet-war_22/WEB-INF/jboss-app.xml
   portlets/src/miscellaneous/IFramePortlet/src/resources/iframeportlet-war_22/WEB-INF/jboss-web.xml
   portlets/src/miscellaneous/IFramePortlet/src/resources/iframeportlet-war_22/WEB-INF/portlet.xml
   portlets/src/miscellaneous/IFramePortlet/src/resources/iframeportlet-war_22/WEB-INF/web.xml
   portlets/src/miscellaneous/IFramePortlet/src/resources/iframeportlet-war_22/images/
   portlets/src/miscellaneous/IFramePortlet/src/resources/iframeportlet-war_24/
   portlets/src/miscellaneous/IFramePortlet/src/resources/iframeportlet-war_24/WEB-INF/
   portlets/src/miscellaneous/IFramePortlet/src/resources/iframeportlet-war_24/WEB-INF/iframe-object.xml
   portlets/src/miscellaneous/IFramePortlet/src/resources/iframeportlet-war_24/WEB-INF/iframe/
   portlets/src/miscellaneous/IFramePortlet/src/resources/iframeportlet-war_24/WEB-INF/iframe/edit.jsp
   portlets/src/miscellaneous/IFramePortlet/src/resources/iframeportlet-war_24/WEB-INF/iframe/iframe.jsp
   portlets/src/miscellaneous/IFramePortlet/src/resources/iframeportlet-war_24/WEB-INF/jboss-app.xml
   portlets/src/miscellaneous/IFramePortlet/src/resources/iframeportlet-war_24/WEB-INF/jboss-web.xml
   portlets/src/miscellaneous/IFramePortlet/src/resources/iframeportlet-war_24/WEB-INF/portlet-instances.xml
   portlets/src/miscellaneous/IFramePortlet/src/resources/iframeportlet-war_24/WEB-INF/portlet.xml
   portlets/src/miscellaneous/IFramePortlet/src/resources/iframeportlet-war_24/WEB-INF/web.xml
   portlets/src/miscellaneous/IFramePortlet/src/resources/iframeportlet-war_24/images/
   portlets/src/miscellaneous/JBoss_NewsPortlet/
   portlets/src/miscellaneous/JBoss_NewsPortlet/LICENSES.txt
   portlets/src/miscellaneous/JBoss_NewsPortlet/README.txt
   portlets/src/miscellaneous/JBoss_NewsPortlet/build.xml
   portlets/src/miscellaneous/JBoss_NewsPortlet/lib/
   portlets/src/miscellaneous/JBoss_NewsPortlet/lib/explode.jar
   portlets/src/miscellaneous/JBoss_NewsPortlet/lib/log4j.jar
   portlets/src/miscellaneous/JBoss_NewsPortlet/lib/portal-common-lib.jar
   portlets/src/miscellaneous/JBoss_NewsPortlet/lib/portlet-api-lib.jar
   portlets/src/miscellaneous/JBoss_NewsPortlet/newsportlet.war
   portlets/src/miscellaneous/JBoss_NewsPortlet/src/
   portlets/src/miscellaneous/JBoss_NewsPortlet/src/bin/
   portlets/src/miscellaneous/JBoss_NewsPortlet/src/etc/
   portlets/src/miscellaneous/JBoss_NewsPortlet/src/etc/newsportlet-war.mf
   portlets/src/miscellaneous/JBoss_NewsPortlet/src/main/
   portlets/src/miscellaneous/JBoss_NewsPortlet/src/main/org/
   portlets/src/miscellaneous/JBoss_NewsPortlet/src/main/org/jboss/
   portlets/src/miscellaneous/JBoss_NewsPortlet/src/main/org/jboss/portlet/
   portlets/src/miscellaneous/JBoss_NewsPortlet/src/main/org/jboss/portlet/news/
   portlets/src/miscellaneous/JBoss_NewsPortlet/src/main/org/jboss/portlet/news/NewsPortlet.java
   portlets/src/miscellaneous/JBoss_NewsPortlet/src/resources/
   portlets/src/miscellaneous/JBoss_NewsPortlet/src/resources/newsportlet-war_22/
   portlets/src/miscellaneous/JBoss_NewsPortlet/src/resources/newsportlet-war_22/WEB-INF/
   portlets/src/miscellaneous/JBoss_NewsPortlet/src/resources/newsportlet-war_22/WEB-INF/Rss1.xsl
   portlets/src/miscellaneous/JBoss_NewsPortlet/src/resources/newsportlet-war_22/WEB-INF/Rss2.xsl
   portlets/src/miscellaneous/JBoss_NewsPortlet/src/resources/newsportlet-war_22/WEB-INF/jboss-app.xml
   portlets/src/miscellaneous/JBoss_NewsPortlet/src/resources/newsportlet-war_22/WEB-INF/jboss-web.xml
   portlets/src/miscellaneous/JBoss_NewsPortlet/src/resources/newsportlet-war_22/WEB-INF/jsp/
   portlets/src/miscellaneous/JBoss_NewsPortlet/src/resources/newsportlet-war_22/WEB-INF/jsp/edit.jsp
   portlets/src/miscellaneous/JBoss_NewsPortlet/src/resources/newsportlet-war_22/WEB-INF/news-object.xml
   portlets/src/miscellaneous/JBoss_NewsPortlet/src/resources/newsportlet-war_22/WEB-INF/portlet.xml
   portlets/src/miscellaneous/JBoss_NewsPortlet/src/resources/newsportlet-war_22/WEB-INF/web.xml
   portlets/src/miscellaneous/JBoss_NewsPortlet/src/resources/newsportlet-war_22/images/
   portlets/src/miscellaneous/JBoss_NewsPortlet/src/resources/newsportlet-war_24/
   portlets/src/miscellaneous/JBoss_NewsPortlet/src/resources/newsportlet-war_24/WEB-INF/
   portlets/src/miscellaneous/JBoss_NewsPortlet/src/resources/newsportlet-war_24/WEB-INF/Rss1.xsl
   portlets/src/miscellaneous/JBoss_NewsPortlet/src/resources/newsportlet-war_24/WEB-INF/Rss2.xsl
   portlets/src/miscellaneous/JBoss_NewsPortlet/src/resources/newsportlet-war_24/WEB-INF/jboss-app.xml
   portlets/src/miscellaneous/JBoss_NewsPortlet/src/resources/newsportlet-war_24/WEB-INF/jboss-web.xml
   portlets/src/miscellaneous/JBoss_NewsPortlet/src/resources/newsportlet-war_24/WEB-INF/jsp/
   portlets/src/miscellaneous/JBoss_NewsPortlet/src/resources/newsportlet-war_24/WEB-INF/jsp/edit.jsp
   portlets/src/miscellaneous/JBoss_NewsPortlet/src/resources/newsportlet-war_24/WEB-INF/news-object.xml
   portlets/src/miscellaneous/JBoss_NewsPortlet/src/resources/newsportlet-war_24/WEB-INF/portlet-instances.xml
   portlets/src/miscellaneous/JBoss_NewsPortlet/src/resources/newsportlet-war_24/WEB-INF/portlet.xml
   portlets/src/miscellaneous/JBoss_NewsPortlet/src/resources/newsportlet-war_24/WEB-INF/web.xml
   portlets/src/miscellaneous/JBoss_NewsPortlet/src/resources/newsportlet-war_24/images/
   portlets/src/miscellaneous/JBoss_WeatherPortlet/
   portlets/src/miscellaneous/JBoss_WeatherPortlet/LICENSES.txt
   portlets/src/miscellaneous/JBoss_WeatherPortlet/README.txt
   portlets/src/miscellaneous/JBoss_WeatherPortlet/build.xml
   portlets/src/miscellaneous/JBoss_WeatherPortlet/lib/
   portlets/src/miscellaneous/JBoss_WeatherPortlet/lib/explode.jar
   portlets/src/miscellaneous/JBoss_WeatherPortlet/lib/log4j.jar
   portlets/src/miscellaneous/JBoss_WeatherPortlet/lib/portal-common-lib.jar
   portlets/src/miscellaneous/JBoss_WeatherPortlet/lib/portlet-api-lib.jar
   portlets/src/miscellaneous/JBoss_WeatherPortlet/src/
   portlets/src/miscellaneous/JBoss_WeatherPortlet/src/bin/
   portlets/src/miscellaneous/JBoss_WeatherPortlet/src/etc/
   portlets/src/miscellaneous/JBoss_WeatherPortlet/src/etc/weatherportlet-war.mf
   portlets/src/miscellaneous/JBoss_WeatherPortlet/src/main/
   portlets/src/miscellaneous/JBoss_WeatherPortlet/src/main/org/
   portlets/src/miscellaneous/JBoss_WeatherPortlet/src/main/org/jboss/
   portlets/src/miscellaneous/JBoss_WeatherPortlet/src/main/org/jboss/portlet/
   portlets/src/miscellaneous/JBoss_WeatherPortlet/src/main/org/jboss/portlet/weather/
   portlets/src/miscellaneous/JBoss_WeatherPortlet/src/main/org/jboss/portlet/weather/WeatherPortlet.java
   portlets/src/miscellaneous/JBoss_WeatherPortlet/src/resources/
   portlets/src/miscellaneous/JBoss_WeatherPortlet/src/resources/weatherportlet-war_22/
   portlets/src/miscellaneous/JBoss_WeatherPortlet/src/resources/weatherportlet-war_22/WEB-INF/
   portlets/src/miscellaneous/JBoss_WeatherPortlet/src/resources/weatherportlet-war_22/WEB-INF/Rss.xsl
   portlets/src/miscellaneous/JBoss_WeatherPortlet/src/resources/weatherportlet-war_22/WEB-INF/jboss-app.xml
   portlets/src/miscellaneous/JBoss_WeatherPortlet/src/resources/weatherportlet-war_22/WEB-INF/jboss-web.xml
   portlets/src/miscellaneous/JBoss_WeatherPortlet/src/resources/weatherportlet-war_22/WEB-INF/jsp/
   portlets/src/miscellaneous/JBoss_WeatherPortlet/src/resources/weatherportlet-war_22/WEB-INF/jsp/edit.jsp
   portlets/src/miscellaneous/JBoss_WeatherPortlet/src/resources/weatherportlet-war_22/WEB-INF/portlet.xml
   portlets/src/miscellaneous/JBoss_WeatherPortlet/src/resources/weatherportlet-war_22/WEB-INF/weather-object.xml
   portlets/src/miscellaneous/JBoss_WeatherPortlet/src/resources/weatherportlet-war_22/WEB-INF/web.xml
   portlets/src/miscellaneous/JBoss_WeatherPortlet/src/resources/weatherportlet-war_22/images/
   portlets/src/miscellaneous/JBoss_WeatherPortlet/src/resources/weatherportlet-war_24/
   portlets/src/miscellaneous/JBoss_WeatherPortlet/src/resources/weatherportlet-war_24/WEB-INF/
   portlets/src/miscellaneous/JBoss_WeatherPortlet/src/resources/weatherportlet-war_24/WEB-INF/Rss.xsl
   portlets/src/miscellaneous/JBoss_WeatherPortlet/src/resources/weatherportlet-war_24/WEB-INF/jboss-app.xml
   portlets/src/miscellaneous/JBoss_WeatherPortlet/src/resources/weatherportlet-war_24/WEB-INF/jboss-web.xml
   portlets/src/miscellaneous/JBoss_WeatherPortlet/src/resources/weatherportlet-war_24/WEB-INF/jsp/
   portlets/src/miscellaneous/JBoss_WeatherPortlet/src/resources/weatherportlet-war_24/WEB-INF/jsp/edit.jsp
   portlets/src/miscellaneous/JBoss_WeatherPortlet/src/resources/weatherportlet-war_24/WEB-INF/portlet-instances.xml
   portlets/src/miscellaneous/JBoss_WeatherPortlet/src/resources/weatherportlet-war_24/WEB-INF/portlet.xml
   portlets/src/miscellaneous/JBoss_WeatherPortlet/src/resources/weatherportlet-war_24/WEB-INF/weather-object.xml
   portlets/src/miscellaneous/JBoss_WeatherPortlet/src/resources/weatherportlet-war_24/WEB-INF/web.xml
   portlets/src/miscellaneous/JBoss_WeatherPortlet/src/resources/weatherportlet-war_24/images/
   portlets/src/miscellaneous/JBoss_WeatherPortlet/weatherportlet.war
Log:


Added: portlets/src/PortletSwap.iml
===================================================================
--- portlets/src/PortletSwap.iml	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/PortletSwap.iml	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<module version="4" relativePaths="true" type="JAVA_MODULE">
+  <component name="ModuleRootManager" />
+  <component name="NewModuleRootManager">
+    <output url="file://$MODULE_DIR$/classes" />
+    <exclude-output />
+    <content url="file://$MODULE_DIR$">
+      <sourceFolder url="file://$MODULE_DIR$/collaborate/ContactPortlet/src/main" isTestSource="false" />
+      <sourceFolder url="file://$MODULE_DIR$/miscellaneous/CalcPortlet/src/main" isTestSource="false" />
+      <sourceFolder url="file://$MODULE_DIR$/miscellaneous/FlashPortlet/src/main" isTestSource="false" />
+      <sourceFolder url="file://$MODULE_DIR$/miscellaneous/IFramePortlet/src/main" isTestSource="false" />
+      <sourceFolder url="file://$MODULE_DIR$/miscellaneous/JBoss_NewsPortlet/src/main" isTestSource="false" />
+      <sourceFolder url="file://$MODULE_DIR$/miscellaneous/JBoss_WeatherPortlet/src/main" isTestSource="false" />
+    </content>
+    <orderEntry type="inheritedJdk" />
+    <orderEntry type="sourceFolder" forTests="false" />
+    <orderEntryProperties />
+  </component>
+</module>
+

Added: portlets/src/PortletSwap.ipr
===================================================================
--- portlets/src/PortletSwap.ipr	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/PortletSwap.ipr	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,230 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4" relativePaths="false">
+  <component name="AntConfiguration">
+    <defaultAnt bundledAnt="true" />
+    <buildFile url="file://$PROJECT_DIR$/collaborate/ContactPortlet/build.xml">
+      <additionalClassPath />
+      <antReference projectDefault="true" />
+      <customJdkName value="" />
+      <maximumHeapSize value="128" />
+      <properties />
+    </buildFile>
+    <buildFile url="file://$PROJECT_DIR$/miscellaneous/CalcPortlet/build.xml">
+      <additionalClassPath />
+      <antReference projectDefault="true" />
+      <customJdkName value="" />
+      <maximumHeapSize value="128" />
+      <properties />
+    </buildFile>
+    <buildFile url="file://$PROJECT_DIR$/miscellaneous/FlashPortlet/build.xml">
+      <additionalClassPath />
+      <antReference projectDefault="true" />
+      <customJdkName value="" />
+      <maximumHeapSize value="128" />
+      <properties />
+    </buildFile>
+    <buildFile url="file://$PROJECT_DIR$/miscellaneous/IFramePortlet/build.xml">
+      <additionalClassPath />
+      <antReference projectDefault="true" />
+      <customJdkName value="" />
+      <maximumHeapSize value="128" />
+      <properties />
+    </buildFile>
+    <buildFile url="file://$PROJECT_DIR$/miscellaneous/JBoss_NewsPortlet/build.xml">
+      <additionalClassPath />
+      <antReference projectDefault="true" />
+      <customJdkName value="" />
+      <maximumHeapSize value="128" />
+      <properties />
+    </buildFile>
+    <buildFile url="file://$PROJECT_DIR$/miscellaneous/JBoss_WeatherPortlet/build.xml">
+      <additionalClassPath />
+      <antReference projectDefault="true" />
+      <customJdkName value="" />
+      <maximumHeapSize value="128" />
+      <properties />
+    </buildFile>
+  </component>
+  <component name="CodeStyleSettingsManager">
+    <option name="PER_PROJECT_SETTINGS" />
+    <option name="USE_PER_PROJECT_SETTINGS" value="false" />
+  </component>
+  <component name="CompilerConfiguration">
+    <option name="DEFAULT_COMPILER" value="Javac" />
+    <option name="CLEAR_OUTPUT_DIRECTORY" value="false" />
+    <option name="DEPLOY_AFTER_MAKE" value="0" />
+    <resourceExtensions>
+      <entry name=".+\.(properties|xml|html|dtd|tld)" />
+      <entry name=".+\.(gif|png|jpeg|jpg)" />
+    </resourceExtensions>
+  </component>
+  <component name="DataSourceManagerImpl" />
+  <component name="DependenciesAnalyzeManager">
+    <option name="myForwardDirection" value="false" />
+  </component>
+  <component name="DependencyValidationManager" />
+  <component name="EntryPointsManager">
+    <entry_points />
+  </component>
+  <component name="ExportToHTMLSettings">
+    <option name="PRINT_LINE_NUMBERS" value="false" />
+    <option name="OPEN_IN_BROWSER" value="false" />
+    <option name="OUTPUT_DIRECTORY" />
+  </component>
+  <component name="GUI Designer component loader factory" />
+  <component name="JavacSettings">
+    <option name="DEBUGGING_INFO" value="true" />
+    <option name="GENERATE_NO_WARNINGS" value="false" />
+    <option name="DEPRECATION" value="true" />
+    <option name="ADDITIONAL_OPTIONS_STRING" value="" />
+    <option name="MAXIMUM_HEAP_SIZE" value="128" />
+  </component>
+  <component name="JavadocGenerationManager">
+    <option name="OUTPUT_DIRECTORY" />
+    <option name="OPTION_SCOPE" value="protected" />
+    <option name="OPTION_HIERARCHY" value="true" />
+    <option name="OPTION_NAVIGATOR" value="true" />
+    <option name="OPTION_INDEX" value="true" />
+    <option name="OPTION_SEPARATE_INDEX" value="true" />
+    <option name="OPTION_DOCUMENT_TAG_USE" value="false" />
+    <option name="OPTION_DOCUMENT_TAG_AUTHOR" value="false" />
+    <option name="OPTION_DOCUMENT_TAG_VERSION" value="false" />
+    <option name="OPTION_DOCUMENT_TAG_DEPRECATED" value="true" />
+    <option name="OPTION_DEPRECATED_LIST" value="true" />
+    <option name="OTHER_OPTIONS" value="" />
+    <option name="HEAP_SIZE" />
+    <option name="OPEN_IN_BROWSER" value="true" />
+  </component>
+  <component name="JikesSettings">
+    <option name="JIKES_PATH" value="" />
+    <option name="DEBUGGING_INFO" value="true" />
+    <option name="DEPRECATION" value="true" />
+    <option name="GENERATE_NO_WARNINGS" value="false" />
+    <option name="IS_EMACS_ERRORS_MODE" value="true" />
+    <option name="ADDITIONAL_OPTIONS_STRING" value="" />
+  </component>
+  <component name="Palette2">
+    <group name="Swing">
+      <item class="com.intellij.uiDesigner.HSpacer" tooltip-text="Horizontal Spacer" icon="/com/intellij/uiDesigner/icons/hspacer.png" removable="false">
+        <default-constraints vsize-policy="1" hsize-policy="6" anchor="0" fill="1" />
+      </item>
+      <item class="com.intellij.uiDesigner.VSpacer" tooltip-text="Vertical Spacer" icon="/com/intellij/uiDesigner/icons/vspacer.png" removable="false">
+        <default-constraints vsize-policy="6" hsize-policy="1" anchor="0" fill="2" />
+      </item>
+      <item class="javax.swing.JPanel" icon="/com/intellij/uiDesigner/icons/panel.png" removable="false">
+        <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3" />
+      </item>
+      <item class="javax.swing.JScrollPane" icon="/com/intellij/uiDesigner/icons/scrollPane.png" removable="false">
+        <default-constraints vsize-policy="7" hsize-policy="7" anchor="0" fill="3" />
+      </item>
+      <item class="javax.swing.JButton" icon="/com/intellij/uiDesigner/icons/button.png" removable="false">
+        <default-constraints vsize-policy="0" hsize-policy="3" anchor="0" fill="1" />
+        <initial-values>
+          <property name="text" value="Button" />
+        </initial-values>
+      </item>
+      <item class="javax.swing.JRadioButton" icon="/com/intellij/uiDesigner/icons/radioButton.png" removable="false">
+        <default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
+        <initial-values>
+          <property name="text" value="RadioButton" />
+        </initial-values>
+      </item>
+      <item class="javax.swing.JCheckBox" icon="/com/intellij/uiDesigner/icons/checkBox.png" removable="false">
+        <default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
+        <initial-values>
+          <property name="text" value="CheckBox" />
+        </initial-values>
+      </item>
+      <item class="javax.swing.JLabel" icon="/com/intellij/uiDesigner/icons/label.png" removable="false">
+        <default-constraints vsize-policy="0" hsize-policy="0" anchor="8" fill="0" />
+        <initial-values>
+          <property name="text" value="Label" />
+        </initial-values>
+      </item>
+      <item class="javax.swing.JTextField" icon="/com/intellij/uiDesigner/icons/textField.png" removable="false">
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
+          <preferred-size width="150" height="-1" />
+        </default-constraints>
+      </item>
+      <item class="javax.swing.JPasswordField" icon="/com/intellij/uiDesigner/icons/passwordField.png" removable="false">
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
+          <preferred-size width="150" height="-1" />
+        </default-constraints>
+      </item>
+      <item class="javax.swing.JFormattedTextField" icon="/com/intellij/uiDesigner/icons/formattedTextField.png" removable="false">
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
+          <preferred-size width="150" height="-1" />
+        </default-constraints>
+      </item>
+      <item class="javax.swing.JTextArea" icon="/com/intellij/uiDesigner/icons/textArea.png" removable="false">
+        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
+          <preferred-size width="150" height="50" />
+        </default-constraints>
+      </item>
+      <item class="javax.swing.JTextPane" icon="/com/intellij/uiDesigner/icons/textPane.png" removable="false">
+        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
+          <preferred-size width="150" height="50" />
+        </default-constraints>
+      </item>
+      <item class="javax.swing.JEditorPane" icon="/com/intellij/uiDesigner/icons/editorPane.png" removable="false">
+        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
+          <preferred-size width="150" height="50" />
+        </default-constraints>
+      </item>
+      <item class="javax.swing.JComboBox" icon="/com/intellij/uiDesigner/icons/comboBox.png" removable="false">
+        <default-constraints vsize-policy="0" hsize-policy="2" anchor="8" fill="1" />
+      </item>
+      <item class="javax.swing.JTable" icon="/com/intellij/uiDesigner/icons/table.png" removable="false">
+        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
+          <preferred-size width="150" height="50" />
+        </default-constraints>
+      </item>
+      <item class="javax.swing.JList" icon="/com/intellij/uiDesigner/icons/list.png" removable="false">
+        <default-constraints vsize-policy="6" hsize-policy="2" anchor="0" fill="3">
+          <preferred-size width="150" height="50" />
+        </default-constraints>
+      </item>
+      <item class="javax.swing.JTree" icon="/com/intellij/uiDesigner/icons/tree.png" removable="false">
+        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
+          <preferred-size width="150" height="50" />
+        </default-constraints>
+      </item>
+      <item class="javax.swing.JTabbedPane" icon="/com/intellij/uiDesigner/icons/tabbedPane.png" removable="false">
+        <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
+          <preferred-size width="200" height="200" />
+        </default-constraints>
+      </item>
+      <item class="javax.swing.JSplitPane" icon="/com/intellij/uiDesigner/icons/splitPane.png" removable="false">
+        <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
+          <preferred-size width="200" height="200" />
+        </default-constraints>
+      </item>
+      <item class="javax.swing.JSpinner" icon="/com/intellij/uiDesigner/icons/spinner.png" removable="false">
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
+      </item>
+      <item class="javax.swing.JSlider" icon="/com/intellij/uiDesigner/icons/slider.png" removable="false">
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
+      </item>
+    </group>
+  </component>
+  <component name="ProjectModuleManager">
+    <modules>
+      <module fileurl="file://$PROJECT_DIR$/PortletSwap.iml" filepath="$PROJECT_DIR$/PortletSwap.iml" />
+    </modules>
+  </component>
+  <component name="ProjectRootManager" version="2" assert-keyword="true" jdk-15="false" project-jdk-name="1.4" />
+  <component name="RmicSettings">
+    <option name="IS_EANABLED" value="false" />
+    <option name="DEBUGGING_INFO" value="true" />
+    <option name="GENERATE_NO_WARNINGS" value="false" />
+    <option name="GENERATE_IIOP_STUBS" value="false" />
+    <option name="ADDITIONAL_OPTIONS_STRING" value="" />
+  </component>
+  <component name="libraryTable" />
+  <component name="uidesigner-configuration">
+    <option name="INSTRUMENT_CLASSES" value="true" />
+    <option name="COPY_FORMS_RUNTIME_TO_OUTPUT" value="true" />
+  </component>
+  <UsedPathMacros />
+</project>
+

Added: portlets/src/PortletSwap.iws
===================================================================
--- portlets/src/PortletSwap.iws	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/PortletSwap.iws	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,1002 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4" relativePaths="false">
+  <component name="AspectsView" />
+  <component name="BookmarkManager" />
+  <component name="ChangeBrowserSettings">
+    <option name="MAIN_SPLITTER_PROPORTION" value="0.3" />
+    <option name="MESSAGES_SPLITTER_PROPORTION" value="0.8" />
+    <option name="USE_DATE_BEFORE_FILTER" value="false" />
+    <option name="USE_DATE_AFTER_FILTER" value="false" />
+    <option name="USE_CHANGE_BEFORE_FILTER" value="false" />
+    <option name="USE_CHANGE_AFTER_FILTER" value="false" />
+    <option name="DATE_BEFORE" value="" />
+    <option name="DATE_AFTER" value="" />
+    <option name="CHANGE_BEFORE" value="" />
+    <option name="CHANGE_AFTER" value="" />
+  </component>
+  <component name="CheckinPanelState" />
+  <component name="Commander">
+    <leftPanel />
+    <rightPanel />
+    <splitter proportion="0.5" />
+  </component>
+  <component name="CompilerWorkspaceConfiguration">
+    <option name="COMPILE_IN_BACKGROUND" value="false" />
+    <option name="AUTO_SHOW_ERRORS_IN_EDITOR" value="true" />
+    <option name="CLOSE_MESSAGE_VIEW_IF_SUCCESS" value="true" />
+    <option name="COMPILE_DEPENDENT_FILES" value="false" />
+  </component>
+  <component name="Cvs2Configuration">
+    <option name="PRUNE_EMPTY_DIRECTORIES" value="true" />
+    <option name="MERGING_MODE" value="0" />
+    <option name="MERGE_WITH_BRANCH1_NAME" value="HEAD" />
+    <option name="MERGE_WITH_BRANCH2_NAME" value="HEAD" />
+    <option name="RESET_STICKY" value="false" />
+    <option name="CREATE_NEW_DIRECTORIES" value="true" />
+    <option name="DEFAULT_TEXT_FILE_SUBSTITUTION" value="kv" />
+    <option name="PROCESS_UNKNOWN_FILES" value="false" />
+    <option name="PROCESS_DELETED_FILES" value="false" />
+    <option name="PROCESS_IGNORED_FILES" value="false" />
+    <option name="RESERVED_EDIT" value="false" />
+    <option name="CHECKOUT_DATE_OR_REVISION_SETTINGS">
+      <value>
+        <option name="BRANCH" value="" />
+        <option name="DATE" value="" />
+        <option name="USE_BRANCH" value="false" />
+        <option name="USE_DATE" value="false" />
+      </value>
+    </option>
+    <option name="UPDATE_DATE_OR_REVISION_SETTINGS">
+      <value>
+        <option name="BRANCH" value="" />
+        <option name="DATE" value="" />
+        <option name="USE_BRANCH" value="false" />
+        <option name="USE_DATE" value="false" />
+      </value>
+    </option>
+    <option name="SHOW_CHANGES_REVISION_SETTINGS">
+      <value>
+        <option name="BRANCH" value="" />
+        <option name="DATE" value="" />
+        <option name="USE_BRANCH" value="false" />
+        <option name="USE_DATE" value="false" />
+      </value>
+    </option>
+    <option name="SHOW_OUTPUT" value="false" />
+    <option name="ADD_WATCH_INDEX" value="0" />
+    <option name="REMOVE_WATCH_INDEX" value="0" />
+    <option name="UPDATE_KEYWORD_SUBSTITUTION" />
+    <option name="MAKE_NEW_FILES_READONLY" value="false" />
+    <option name="SHOW_CORRUPTED_PROJECT_FILES" value="0" />
+    <option name="TAG_AFTER_FILE_COMMIT" value="false" />
+    <option name="OVERRIDE_EXISTING_TAG_FOR_FILE" value="true" />
+    <option name="TAG_AFTER_FILE_COMMIT_NAME" value="" />
+    <option name="TAG_AFTER_PROJECT_COMMIT" value="false" />
+    <option name="OVERRIDE_EXISTING_TAG_FOR_PROJECT" value="true" />
+    <option name="TAG_AFTER_PROJECT_COMMIT_NAME" value="" />
+    <option name="CLEAN_COPY" value="false" />
+  </component>
+  <component name="DaemonCodeAnalyzer">
+    <disable_hints />
+  </component>
+  <component name="DebuggerManager">
+    <breakpoint_any>
+      <breakpoint>
+        <option name="NOTIFY_CAUGHT" value="true" />
+        <option name="NOTIFY_UNCAUGHT" value="true" />
+        <option name="ENABLED" value="false" />
+        <option name="SUSPEND_POLICY" value="SuspendAll" />
+        <option name="LOG_ENABLED" value="false" />
+        <option name="LOG_EXPRESSION_ENABLED" value="false" />
+        <option name="COUNT_FILTER_ENABLED" value="false" />
+        <option name="COUNT_FILTER" value="0" />
+        <option name="CONDITION_ENABLED" value="false" />
+        <option name="CLASS_FILTERS_ENABLED" value="false" />
+        <option name="INSTANCE_FILTERS_ENABLED" value="false" />
+        <option name="CONDITION" value="" />
+        <option name="LOG_MESSAGE" value="" />
+      </breakpoint>
+    </breakpoint_any>
+    <breakpoint_rules />
+    <ui_properties />
+  </component>
+  <component name="ErrorTreeViewConfiguration">
+    <option name="IS_AUTOSCROLL_TO_SOURCE" value="false" />
+    <option name="HIDE_WARNINGS" value="false" />
+  </component>
+  <component name="FavoritesViewImpl">
+    <favorites_list name="PortletSwap">
+      <option name="IS_AUTOSCROLL_TO_SOURCE" value="false" />
+      <option name="IS_SHOW_MEMBERS" value="false" />
+      <option name="IS_STRUCTURE_VIEW" value="false" />
+      <option name="IS_SHOW_MODULES" value="true" />
+      <option name="IS_FLATTEN_PACKAGES" value="false" />
+      <option name="IS_ABBREVIATION_PACKAGE_NAMES" value="false" />
+      <option name="IS_HIDE_EMPTY_MIDDLE_PACKAGES" value="false" />
+      <option name="IS_SHOW_LIBRARY_CONTENTS" value="true" />
+    </favorites_list>
+    <option name="myCurrentFavoritesList" value="PortletSwap" />
+  </component>
+  <component name="FileEditorManager">
+    <leaf>
+      <file leaf-file-name="build.xml" pinned="false" current="false" current-in-tab="false">
+        <entry file="file://$PROJECT_DIR$/miscellaneous/JBoss_NewsPortlet/build.xml">
+          <provider selected="true" editor-type-id="text-editor">
+            <state line="50" column="2" selection-start="1617" selection-end="1617" vertical-scroll-proportion="1.5799257">
+              <folding />
+            </state>
+          </provider>
+        </entry>
+      </file>
+      <file leaf-file-name="build.xml" pinned="false" current="true" current-in-tab="true">
+        <entry file="file://$PROJECT_DIR$/miscellaneous/JBoss_WeatherPortlet/build.xml">
+          <provider selected="true" editor-type-id="text-editor">
+            <state line="72" column="3" selection-start="2293" selection-end="2293" vertical-scroll-proportion="0.5576208">
+              <folding />
+            </state>
+          </provider>
+        </entry>
+      </file>
+    </leaf>
+  </component>
+  <component name="FindManager">
+    <FindUsagesManager>
+      <setting name="OPEN_NEW_TAB" value="false" />
+    </FindUsagesManager>
+  </component>
+  <component name="HierarchyBrowserManager">
+    <option name="IS_AUTOSCROLL_TO_SOURCE" value="false" />
+    <option name="SORT_ALPHABETICALLY" value="false" />
+    <option name="HIDE_CLASSES_WHERE_METHOD_NOT_IMPLEMENTED" value="false" />
+  </component>
+  <component name="InspectionManager">
+    <option name="AUTOSCROLL_TO_SOURCE" value="false" />
+    <option name="SPLITTER_PROPORTION" value="0.5" />
+    <option name="GROUP_BY_SEVERITY" value="false" />
+    <option name="ANALYZE_TEST_SOURCES" value="true" />
+    <option name="SCOPE_TYPE" value="1" />
+    <profile name="Default" />
+  </component>
+  <component name="J2EEProjectPane">
+    <PATH>
+      <PATH_ELEMENT>
+        <option name="myItemId" value="PortletSwap.ipr" />
+        <option name="myItemType" value="com.intellij.j2ee.module.view.nodes.J2EEProjectNodeDescriptor" />
+      </PATH_ELEMENT>
+    </PATH>
+    <setting name="SHOW_AS_DEPLOYMENT_VIEW" value="false" />
+  </component>
+  <component name="ModuleEditorState">
+    <option name="LAST_EDITED_MODULE_NAME" />
+    <option name="LAST_EDITED_TAB_NAME" />
+  </component>
+  <component name="NamedScopeManager" />
+  <component name="PackagesPane">
+    <PATH>
+      <PATH_ELEMENT>
+        <option name="myItemId" value="PortletSwap.ipr" />
+        <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PackageViewProjectNode" />
+      </PATH_ELEMENT>
+      <PATH_ELEMENT>
+        <option name="myItemId" value="PortletSwap" />
+        <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PackageViewModuleNode" />
+      </PATH_ELEMENT>
+    </PATH>
+  </component>
+  <component name="PerforceChangeBrowserSettings">
+    <option name="USE_USER_FILTER" value="true" />
+    <option name="USE_CLIENT_FILTER" value="true" />
+    <option name="USER" value="" />
+    <option name="CLIENT" value="" />
+  </component>
+  <component name="PerforceDirect.Settings">
+    <option name="CURRENT_CHANGE_LIST" value="-1" />
+    <option name="useP4CONFIG" value="true" />
+    <option name="port" value="jasper:1666" />
+    <option name="client" value="" />
+    <option name="user" value="" />
+    <option name="passwd" value="" />
+    <option name="showCmds" value="false" />
+    <option name="useNativeApi" value="true" />
+    <option name="pathToExec" value="p4" />
+    <option name="useCustomPathToExec" value="false" />
+    <option name="SYNC_FORCE" value="false" />
+    <option name="SYNC_RUN_RESOLVE" value="true" />
+    <option name="REVERT_UNCHANGED_FILES" value="true" />
+    <option name="CHARSET" value="none" />
+    <option name="SHOW_BRANCHES_HISTORY" value="true" />
+    <option name="ENABLED" value="true" />
+    <option name="USE_LOGIN" value="false" />
+    <option name="LOGIN_SILENTLY" value="false" />
+    <option name="INTEGRATE_CHANGE_LIST_NUMBER" value="" />
+    <option name="INTEGRATE_CHANGE_LIST" value="false" />
+    <option name="INTEGRATE_REVERSE" value="false" />
+  </component>
+  <component name="ProjectLevelVcsManager">
+    <OptionsSetting value="true" id="Add" />
+    <OptionsSetting value="true" id="Remove" />
+    <OptionsSetting value="true" id="Checkin" />
+    <OptionsSetting value="true" id="Checkout" />
+    <OptionsSetting value="true" id="Update" />
+    <OptionsSetting value="true" id="Status" />
+    <OptionsSetting value="true" id="Edit" />
+    <OptionsSetting value="true" id="Undo Check Out" />
+    <OptionsSetting value="true" id="Compare with SourceSafe Version" />
+    <OptionsSetting value="true" id="Get Latest Version" />
+    <ConfirmationsSetting value="0" id="Add" />
+    <ConfirmationsSetting value="0" id="Remove" />
+  </component>
+  <component name="ProjectPane">
+    <PATH>
+      <PATH_ELEMENT>
+        <option name="myItemId" value="PortletSwap.ipr" />
+        <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
+      </PATH_ELEMENT>
+      <PATH_ELEMENT>
+        <option name="myItemId" value="PortletSwap" />
+        <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewModuleNode" />
+      </PATH_ELEMENT>
+    </PATH>
+    <PATH>
+      <PATH_ELEMENT>
+        <option name="myItemId" value="PortletSwap.ipr" />
+        <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
+      </PATH_ELEMENT>
+      <PATH_ELEMENT>
+        <option name="myItemId" value="PortletSwap" />
+        <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewModuleNode" />
+      </PATH_ELEMENT>
+      <PATH_ELEMENT>
+        <option name="myItemId" value="PsiDirectory:C:\projects\portletswap\portlets\src" />
+        <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+      </PATH_ELEMENT>
+    </PATH>
+    <PATH>
+      <PATH_ELEMENT>
+        <option name="myItemId" value="PortletSwap.ipr" />
+        <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
+      </PATH_ELEMENT>
+      <PATH_ELEMENT>
+        <option name="myItemId" value="PortletSwap" />
+        <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewModuleNode" />
+      </PATH_ELEMENT>
+      <PATH_ELEMENT>
+        <option name="myItemId" value="PsiDirectory:C:\projects\portletswap\portlets\src" />
+        <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+      </PATH_ELEMENT>
+      <PATH_ELEMENT>
+        <option name="myItemId" value="PsiDirectory:C:\projects\portletswap\portlets\src\miscellaneous" />
+        <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+      </PATH_ELEMENT>
+      <PATH_ELEMENT>
+        <option name="myItemId" value="PsiDirectory:C:\projects\portletswap\portlets\src\miscellaneous\JBoss_WeatherPortlet" />
+        <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+      </PATH_ELEMENT>
+    </PATH>
+    <PATH>
+      <PATH_ELEMENT>
+        <option name="myItemId" value="PortletSwap.ipr" />
+        <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
+      </PATH_ELEMENT>
+      <PATH_ELEMENT>
+        <option name="myItemId" value="PortletSwap" />
+        <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewModuleNode" />
+      </PATH_ELEMENT>
+      <PATH_ELEMENT>
+        <option name="myItemId" value="PsiDirectory:C:\projects\portletswap\portlets\src" />
+        <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+      </PATH_ELEMENT>
+      <PATH_ELEMENT>
+        <option name="myItemId" value="PsiDirectory:C:\projects\portletswap\portlets\src\miscellaneous" />
+        <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+      </PATH_ELEMENT>
+      <PATH_ELEMENT>
+        <option name="myItemId" value="PsiDirectory:C:\projects\portletswap\portlets\src\miscellaneous\JBoss_WeatherPortlet" />
+        <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+      </PATH_ELEMENT>
+      <PATH_ELEMENT>
+        <option name="myItemId" value="PsiDirectory:C:\projects\portletswap\portlets\src\miscellaneous\JBoss_WeatherPortlet\src" />
+        <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+      </PATH_ELEMENT>
+      <PATH_ELEMENT>
+        <option name="myItemId" value="PsiDirectory:C:\projects\portletswap\portlets\src\miscellaneous\JBoss_WeatherPortlet\src\resources" />
+        <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+      </PATH_ELEMENT>
+      <PATH_ELEMENT>
+        <option name="myItemId" value="PsiDirectory:C:\projects\portletswap\portlets\src\miscellaneous\JBoss_WeatherPortlet\src\resources\weatherportlet-war_24" />
+        <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+      </PATH_ELEMENT>
+    </PATH>
+    <PATH>
+      <PATH_ELEMENT>
+        <option name="myItemId" value="PortletSwap.ipr" />
+        <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
+      </PATH_ELEMENT>
+      <PATH_ELEMENT>
+        <option name="myItemId" value="PortletSwap" />
+        <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewModuleNode" />
+      </PATH_ELEMENT>
+      <PATH_ELEMENT>
+        <option name="myItemId" value="PsiDirectory:C:\projects\portletswap\portlets\src" />
+        <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+      </PATH_ELEMENT>
+      <PATH_ELEMENT>
+        <option name="myItemId" value="PsiDirectory:C:\projects\portletswap\portlets\src\miscellaneous" />
+        <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+      </PATH_ELEMENT>
+      <PATH_ELEMENT>
+        <option name="myItemId" value="PsiDirectory:C:\projects\portletswap\portlets\src\miscellaneous\JBoss_WeatherPortlet" />
+        <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+      </PATH_ELEMENT>
+      <PATH_ELEMENT>
+        <option name="myItemId" value="PsiDirectory:C:\projects\portletswap\portlets\src\miscellaneous\JBoss_WeatherPortlet\src" />
+        <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+      </PATH_ELEMENT>
+      <PATH_ELEMENT>
+        <option name="myItemId" value="PsiDirectory:C:\projects\portletswap\portlets\src\miscellaneous\JBoss_WeatherPortlet\src\resources" />
+        <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+      </PATH_ELEMENT>
+      <PATH_ELEMENT>
+        <option name="myItemId" value="PsiDirectory:C:\projects\portletswap\portlets\src\miscellaneous\JBoss_WeatherPortlet\src\resources\weatherportlet-war_22" />
+        <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+      </PATH_ELEMENT>
+      <PATH_ELEMENT>
+        <option name="myItemId" value="PsiDirectory:C:\projects\portletswap\portlets\src\miscellaneous\JBoss_WeatherPortlet\src\resources\weatherportlet-war_22\WEB-INF" />
+        <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+      </PATH_ELEMENT>
+    </PATH>
+    <PATH>
+      <PATH_ELEMENT>
+        <option name="myItemId" value="PortletSwap.ipr" />
+        <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
+      </PATH_ELEMENT>
+      <PATH_ELEMENT>
+        <option name="myItemId" value="PortletSwap" />
+        <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewModuleNode" />
+      </PATH_ELEMENT>
+      <PATH_ELEMENT>
+        <option name="myItemId" value="PsiDirectory:C:\projects\portletswap\portlets\src" />
+        <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+      </PATH_ELEMENT>
+      <PATH_ELEMENT>
+        <option name="myItemId" value="PsiDirectory:C:\projects\portletswap\portlets\src\miscellaneous" />
+        <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+      </PATH_ELEMENT>
+      <PATH_ELEMENT>
+        <option name="myItemId" value="PsiDirectory:C:\projects\portletswap\portlets\src\miscellaneous\JBoss_WeatherPortlet" />
+        <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+      </PATH_ELEMENT>
+      <PATH_ELEMENT>
+        <option name="myItemId" value="PsiDirectory:C:\projects\portletswap\portlets\src\miscellaneous\JBoss_WeatherPortlet\src" />
+        <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+      </PATH_ELEMENT>
+      <PATH_ELEMENT>
+        <option name="myItemId" value="PsiDirectory:C:\projects\portletswap\portlets\src\miscellaneous\JBoss_WeatherPortlet\src\resources" />
+        <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+      </PATH_ELEMENT>
+      <PATH_ELEMENT>
+        <option name="myItemId" value="PsiDirectory:C:\projects\portletswap\portlets\src\miscellaneous\JBoss_WeatherPortlet\src\resources\weatherportlet-war_22" />
+        <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+      </PATH_ELEMENT>
+      <PATH_ELEMENT>
+        <option name="myItemId" value="PsiDirectory:C:\projects\portletswap\portlets\src\miscellaneous\JBoss_WeatherPortlet\src\resources\weatherportlet-war_22\WEB-INF" />
+        <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+      </PATH_ELEMENT>
+      <PATH_ELEMENT>
+        <option name="myItemId" value="PsiDirectory:C:\projects\portletswap\portlets\src\miscellaneous\JBoss_WeatherPortlet\src\resources\weatherportlet-war_22\WEB-INF\classes" />
+        <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+      </PATH_ELEMENT>
+    </PATH>
+    <PATH>
+      <PATH_ELEMENT>
+        <option name="myItemId" value="PortletSwap.ipr" />
+        <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
+      </PATH_ELEMENT>
+      <PATH_ELEMENT>
+        <option name="myItemId" value="PortletSwap" />
+        <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewModuleNode" />
+      </PATH_ELEMENT>
+      <PATH_ELEMENT>
+        <option name="myItemId" value="PsiDirectory:C:\projects\portletswap\portlets\src" />
+        <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+      </PATH_ELEMENT>
+      <PATH_ELEMENT>
+        <option name="myItemId" value="PsiDirectory:C:\projects\portletswap\portlets\src\miscellaneous" />
+        <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+      </PATH_ELEMENT>
+      <PATH_ELEMENT>
+        <option name="myItemId" value="PsiDirectory:C:\projects\portletswap\portlets\src\miscellaneous\JBoss_WeatherPortlet" />
+        <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+      </PATH_ELEMENT>
+      <PATH_ELEMENT>
+        <option name="myItemId" value="PsiDirectory:C:\projects\portletswap\portlets\src\miscellaneous\JBoss_WeatherPortlet\src" />
+        <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+      </PATH_ELEMENT>
+      <PATH_ELEMENT>
+        <option name="myItemId" value="PsiDirectory:C:\projects\portletswap\portlets\src\miscellaneous\JBoss_WeatherPortlet\src\resources" />
+        <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+      </PATH_ELEMENT>
+      <PATH_ELEMENT>
+        <option name="myItemId" value="PsiDirectory:C:\projects\portletswap\portlets\src\miscellaneous\JBoss_WeatherPortlet\src\resources\weatherportlet-war_22" />
+        <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+      </PATH_ELEMENT>
+    </PATH>
+    <PATH>
+      <PATH_ELEMENT>
+        <option name="myItemId" value="PortletSwap.ipr" />
+        <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
+      </PATH_ELEMENT>
+      <PATH_ELEMENT>
+        <option name="myItemId" value="PortletSwap" />
+        <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewModuleNode" />
+      </PATH_ELEMENT>
+      <PATH_ELEMENT>
+        <option name="myItemId" value="PsiDirectory:C:\projects\portletswap\portlets\src" />
+        <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+      </PATH_ELEMENT>
+      <PATH_ELEMENT>
+        <option name="myItemId" value="PsiDirectory:C:\projects\portletswap\portlets\src\miscellaneous" />
+        <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+      </PATH_ELEMENT>
+      <PATH_ELEMENT>
+        <option name="myItemId" value="PsiDirectory:C:\projects\portletswap\portlets\src\miscellaneous\JBoss_WeatherPortlet" />
+        <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+      </PATH_ELEMENT>
+      <PATH_ELEMENT>
+        <option name="myItemId" value="PsiDirectory:C:\projects\portletswap\portlets\src\miscellaneous\JBoss_WeatherPortlet\src" />
+        <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+      </PATH_ELEMENT>
+    </PATH>
+    <PATH>
+      <PATH_ELEMENT>
+        <option name="myItemId" value="PortletSwap.ipr" />
+        <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
+      </PATH_ELEMENT>
+      <PATH_ELEMENT>
+        <option name="myItemId" value="PortletSwap" />
+        <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewModuleNode" />
+      </PATH_ELEMENT>
+      <PATH_ELEMENT>
+        <option name="myItemId" value="PsiDirectory:C:\projects\portletswap\portlets\src" />
+        <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+      </PATH_ELEMENT>
+      <PATH_ELEMENT>
+        <option name="myItemId" value="PsiDirectory:C:\projects\portletswap\portlets\src\miscellaneous" />
+        <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+      </PATH_ELEMENT>
+      <PATH_ELEMENT>
+        <option name="myItemId" value="PsiDirectory:C:\projects\portletswap\portlets\src\miscellaneous\JBoss_NewsPortlet" />
+        <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+      </PATH_ELEMENT>
+    </PATH>
+    <PATH>
+      <PATH_ELEMENT>
+        <option name="myItemId" value="PortletSwap.ipr" />
+        <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
+      </PATH_ELEMENT>
+      <PATH_ELEMENT>
+        <option name="myItemId" value="PortletSwap" />
+        <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewModuleNode" />
+      </PATH_ELEMENT>
+      <PATH_ELEMENT>
+        <option name="myItemId" value="PsiDirectory:C:\projects\portletswap\portlets\src" />
+        <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+      </PATH_ELEMENT>
+      <PATH_ELEMENT>
+        <option name="myItemId" value="PsiDirectory:C:\projects\portletswap\portlets\src\miscellaneous" />
+        <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+      </PATH_ELEMENT>
+    </PATH>
+    <PATH>
+      <PATH_ELEMENT>
+        <option name="myItemId" value="PortletSwap.ipr" />
+        <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
+      </PATH_ELEMENT>
+      <PATH_ELEMENT>
+        <option name="myItemId" value="PortletSwap" />
+        <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewModuleNode" />
+      </PATH_ELEMENT>
+      <PATH_ELEMENT>
+        <option name="myItemId" value="PsiDirectory:C:\projects\portletswap\portlets\src" />
+        <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+      </PATH_ELEMENT>
+      <PATH_ELEMENT>
+        <option name="myItemId" value="PsiDirectory:C:\projects\portletswap\portlets\src\collaborate" />
+        <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+      </PATH_ELEMENT>
+    </PATH>
+  </component>
+  <component name="ProjectReloadState">
+    <option name="STATE" value="0" />
+  </component>
+  <component name="ProjectView">
+    <navigator currentView="ProjectPane" splitterProportion="0.5">
+      <flattenPackages />
+      <showMembers />
+      <showModules />
+      <showLibraryContents />
+      <hideEmptyPackages />
+      <abbreviatePackageNames />
+      <showStructure ProjectPane="false" />
+      <autoscrollToSource />
+      <autoscrollFromSource />
+      <sortByType />
+    </navigator>
+  </component>
+  <component name="PropertiesComponent">
+    <property name="MemberChooser.copyJavadoc" value="false" />
+    <property name="GoToClass.includeLibraries" value="false" />
+    <property name="MemberChooser.showClasses" value="true" />
+    <property name="MemberChooser.sorted" value="false" />
+    <property name="GoToFile.includeJavaFiles" value="false" />
+    <property name="GoToClass.toSaveIncludeLibraries" value="false" />
+  </component>
+  <component name="ReadonlyStatusHandler">
+    <option name="SHOW_DIALOG" value="true" />
+  </component>
+  <component name="RecentsManager" />
+  <component name="Regex">
+    <option name="pos1" value="218" />
+    <option name="pos2" value="218" />
+    <option name="pos3" value="162" />
+    <option name="pos4" value="444" />
+    <option name="pos5" value="162" />
+    <option name="autoUpdate" value="true" />
+    <option name="referenceOn" value="false" />
+    <option name="referencePos" value="0" />
+  </component>
+  <component name="RestoreUpdateTree" />
+  <component name="RunManager">
+    <activeType name="Application" />
+    <configuration selected="false" default="true" type="Application" factoryName="Application">
+      <option name="MAIN_CLASS_NAME" />
+      <option name="VM_PARAMETERS" />
+      <option name="PROGRAM_PARAMETERS" />
+      <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
+      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
+      <option name="ALTERNATIVE_JRE_PATH" />
+      <module name="" />
+    </configuration>
+    <configuration selected="false" default="true" type="Remote" factoryName="Remote">
+      <option name="USE_SOCKET_TRANSPORT" value="true" />
+      <option name="SERVER_MODE" value="false" />
+      <option name="SHMEM_ADDRESS" value="javadebug" />
+      <option name="HOST" value="localhost" />
+      <option name="PORT" value="5005" />
+    </configuration>
+    <configuration selected="false" default="true" type="JUnit" factoryName="JUnit">
+      <module name="" />
+      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
+      <option name="ALTERNATIVE_JRE_PATH" />
+      <option name="PACKAGE_NAME" />
+      <option name="MAIN_CLASS_NAME" />
+      <option name="METHOD_NAME" />
+      <option name="TEST_OBJECT" value="class" />
+      <option name="VM_PARAMETERS" />
+      <option name="PARAMETERS" />
+      <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
+      <option name="ADDITIONAL_CLASS_PATH" />
+      <option name="TEST_SEARCH_SCOPE">
+        <value defaultName="wholeProject" />
+      </option>
+    </configuration>
+    <configuration selected="false" default="true" type="WebLogic Instance" factoryName="Local">
+      <option name="WORKING_DIRECTORY" />
+      <option name="HOST" value="localhost" />
+      <option name="PORT" value="7001" />
+      <option name="LOCAL" value="true" />
+      <option name="OPEN_IN_BROWSER" value="true" />
+      <option name="OPEN_IN_BROWSER_URL" value="/" />
+      <option name="COMMON_VM_ARGUMENTS" value="" />
+      <option name="DOMAIN_PATH" value="" />
+      <option name="USER" value="weblogic" />
+      <option name="PASSWORD" value="weblogic" />
+      <option name="SERVER_NAME" value="myserver" />
+      <option name="DOMAIN_NAME" value="mydomain" />
+    </configuration>
+    <configuration selected="false" default="true" type="Applet" factoryName="Applet">
+      <module name="" />
+      <option name="MAIN_CLASS_NAME" />
+      <option name="HTML_FILE_NAME" />
+      <option name="HTML_USED" value="false" />
+      <option name="WIDTH" value="400" />
+      <option name="HEIGHT" value="300" />
+      <option name="POLICY_FILE" value="C:/IntelliJ-IDEA-4.0.3/bin/appletviewer.policy" />
+      <option name="VM_PARAMETERS" />
+      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
+      <option name="ALTERNATIVE_JRE_PATH" />
+    </configuration>
+  </component>
+  <component name="SelectInManager" />
+  <component name="StarteamConfiguration">
+    <option name="SERVER" value="" />
+    <option name="PORT" value="49201" />
+    <option name="USER" value="" />
+    <option name="PASSWORD" value="" />
+    <option name="PROJECT" value="" />
+    <option name="VIEW" value="" />
+    <option name="ALTERNATIVE_WORKING_PATH" value="" />
+  </component>
+  <component name="StructuralSearchPlugin" />
+  <component name="StructureViewFactory">
+    <option name="AUTOSCROLL_MODE" value="true" />
+    <option name="AUTOSCROLL_FROM_SOURCE" value="false" />
+    <option name="ACTIVE_ACTIONS" value="" />
+  </component>
+  <component name="SvnChangesBrowserSettings">
+    <option name="USE_AUTHOR_FIELD" value="true" />
+    <option name="AUTHOR" value="" />
+    <option name="LOCATION" value="" />
+    <option name="USE_PROJECT_SETTINGS" value="true" />
+    <option name="USE_ALTERNATE_LOCATION" value="false" />
+  </component>
+  <component name="SvnConfiguration">
+    <option name="USER" value="" />
+    <option name="PASSWORD" value="" />
+    <configuration useDefault="true">C:\Documents and Settings\rrusso\Application Data\Subversion</configuration>
+  </component>
+  <component name="TodoView" selected-index="0">
+    <todo-panel id="selected-file">
+      <are-packages-shown value="false" />
+      <are-modules-shown value="false" />
+      <flatten-packages value="false" />
+      <is-autoscroll-to-source value="true" />
+    </todo-panel>
+    <todo-panel id="all">
+      <are-packages-shown value="true" />
+      <are-modules-shown value="false" />
+      <flatten-packages value="false" />
+      <is-autoscroll-to-source value="true" />
+    </todo-panel>
+  </component>
+  <component name="ToolWindowManager">
+    <frame x="-4" y="-4" width="1688" height="1024" extended-state="0" />
+    <editor active="false" />
+    <layout>
+      <window_info id="CVS" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.33" order="8" />
+      <window_info id="Regex" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.33" order="8" />
+      <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.33" order="7" />
+      <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="docked" type="docked" visible="true" weight="0.24586144" order="0" />
+      <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.33" order="1" />
+      <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.25" order="1" />
+      <window_info id="Messages" active="true" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="true" weight="0.32918552" order="8" />
+      <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.4" order="6" />
+      <window_info id="Module Dependencies" active="false" anchor="right" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.33" order="3" />
+      <window_info id="Dependency Viewer" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.33" order="8" />
+      <window_info id="Favorites" active="false" anchor="right" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.33" order="3" />
+      <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="docked" type="docked" visible="true" weight="0.20416923" order="1" />
+      <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.33" order="2" />
+      <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.25" order="2" />
+      <window_info id="File View" active="false" anchor="right" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.33" order="3" />
+      <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.4" order="4" />
+      <window_info id="simpleUML" active="false" anchor="left" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.33" order="3" />
+      <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="sliding" type="sliding" visible="false" weight="0.4" order="0" />
+      <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.33" order="8" />
+      <window_info id="Web" active="false" anchor="left" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.25" order="2" />
+      <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.33" order="0" />
+      <window_info id="EJB" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.25" order="3" />
+      <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.25" order="5" />
+    </layout>
+  </component>
+  <component name="VCS.FileViewConfiguration">
+    <option name="SELECTED_STATUSES" value="DEFAULT" />
+    <option name="SELECTED_COLUMNS" value="DEFAULT" />
+    <option name="SHOW_FILTERS" value="true" />
+    <option name="CUSTOMIZE_VIEW" value="true" />
+    <option name="SHOW_FILE_HISTORY_AS_TREE" value="true" />
+  </component>
+  <component name="VcsManagerConfiguration">
+    <option name="PUT_FOCUS_INTO_COMMENT" value="false" />
+    <option name="FORCE_NON_EMPTY_COMMENT" value="false" />
+    <option name="LAST_COMMIT_MESSAGE" />
+    <option name="SAVE_LAST_COMMIT_MESSAGE" value="true" />
+    <option name="CHECKIN_DIALOG_SPLITTER_PROPORTION" value="0.8" />
+    <option name="OPTIMIZE_IMPORTS_BEFORE_PROJECT_COMMIT" value="false" />
+    <option name="OPTIMIZE_IMPORTS_BEFORE_FILE_COMMIT" value="false" />
+    <option name="REFORMAT_BEFORE_PROJECT_COMMIT" value="false" />
+    <option name="REFORMAT_BEFORE_FILE_COMMIT" value="false" />
+    <option name="FILE_HISTORY_DIALOG_COMMENTS_SPLITTER_PROPORTION" value="0.8" />
+    <option name="FILE_HISTORY_DIALOG_SPLITTER_PROPORTION" value="0.5" />
+    <option name="ERROR_OCCURED" value="false" />
+    <option name="ACTIVE_VCS_NAME" value="CVS" />
+    <option name="UPDATE_GROUP_BY_PACKAGES" value="false" />
+    <option name="SHOW_FILE_HISTORY_AS_TREE" value="false" />
+    <option name="FILE_HISTORY_SPLITTER_PROPORTION" value="0.6" />
+  </component>
+  <component name="VssConfiguration">
+    <option name="CLIENT_PATH" value="" />
+    <option name="SRCSAFEINI_PATH" value="" />
+    <option name="USER_NAME" value="" />
+    <option name="PWD" value="" />
+    <option name="VSS_IS_INITIALIZED" value="true" />
+    <CheckoutOptions>
+      <option name="COMMENT" value="" />
+      <option name="DO_NOT_GET_LATEST_VERSION" value="false" />
+      <option name="REPLACE_WRITABLE" value="false" />
+      <option name="RECURSIVE" value="false" />
+    </CheckoutOptions>
+    <CheckinOptions>
+      <option name="COMMENT" value="" />
+      <option name="KEEP_CHECKED_OUT" value="false" />
+      <option name="RECURSIVE" value="false" />
+    </CheckinOptions>
+    <AddOptions>
+      <option name="COMMENT" value="" />
+      <option name="STORE_ONLY_LATEST_VERSION" value="false" />
+      <option name="CHECK_OUT_IMMEDIATELY" value="false" />
+      <option name="FILE_TYPE" value="0" />
+    </AddOptions>
+    <UndocheckoutOptions>
+      <option name="MAKE_WRITABLE" value="false" />
+      <option name="REPLACE_LOCAL_COPY" value="0" />
+      <option name="RECURSIVE" value="false" />
+    </UndocheckoutOptions>
+    <GetOptions>
+      <option name="REPLACE_WRITABLE" value="0" />
+      <option name="MAKE_WRITABLE" value="false" />
+      <option name="RECURSIVE" value="false" />
+    </GetOptions>
+  </component>
+  <component name="antWorkspaceConfiguration">
+    <option name="IS_AUTOSCROLL_TO_SOURCE" value="false" />
+    <option name="FILTER_TARGETS" value="false" />
+    <buildFile url="file://$PROJECT_DIR$/collaborate/ContactPortlet/build.xml">
+      <antCommandLine value="" />
+      <runInBackground value="false" />
+      <targetFilters>
+        <filter targetName="deploy24" isVisible="false" />
+        <filter targetName="clean" isVisible="false" />
+        <filter targetName="prepare" isVisible="false" />
+        <filter targetName="clover-no" isVisible="false" />
+        <filter targetName="all" isVisible="false" />
+        <filter targetName="explode" isVisible="false" />
+        <filter targetName="clover-yes" isVisible="false" />
+        <filter targetName="deploy22" isVisible="false" />
+      </targetFilters>
+      <treeView value="true" />
+      <verbose value="true" />
+      <viewClosedWhenNoErrors value="false" />
+    </buildFile>
+    <buildFile url="file://$PROJECT_DIR$/miscellaneous/CalcPortlet/build.xml">
+      <antCommandLine value="" />
+      <runInBackground value="false" />
+      <targetFilters>
+        <filter targetName="deploy24" isVisible="false" />
+        <filter targetName="clean" isVisible="false" />
+        <filter targetName="prepare" isVisible="false" />
+        <filter targetName="clover-no" isVisible="false" />
+        <filter targetName="all" isVisible="false" />
+        <filter targetName="explode" isVisible="false" />
+        <filter targetName="clover-yes" isVisible="false" />
+        <filter targetName="deploy22" isVisible="false" />
+      </targetFilters>
+      <treeView value="true" />
+      <verbose value="true" />
+      <viewClosedWhenNoErrors value="false" />
+    </buildFile>
+    <buildFile url="file://$PROJECT_DIR$/miscellaneous/FlashPortlet/build.xml">
+      <antCommandLine value="" />
+      <runInBackground value="false" />
+      <targetFilters>
+        <filter targetName="deploy24" isVisible="false" />
+        <filter targetName="clean" isVisible="false" />
+        <filter targetName="prepare" isVisible="false" />
+        <filter targetName="clover-no" isVisible="false" />
+        <filter targetName="all" isVisible="false" />
+        <filter targetName="explode" isVisible="false" />
+        <filter targetName="clover-yes" isVisible="false" />
+        <filter targetName="deploy22" isVisible="false" />
+      </targetFilters>
+      <treeView value="true" />
+      <verbose value="true" />
+      <viewClosedWhenNoErrors value="false" />
+    </buildFile>
+    <buildFile url="file://$PROJECT_DIR$/miscellaneous/IFramePortlet/build.xml">
+      <antCommandLine value="" />
+      <runInBackground value="false" />
+      <targetFilters>
+        <filter targetName="deploy24" isVisible="false" />
+        <filter targetName="clean" isVisible="false" />
+        <filter targetName="prepare" isVisible="false" />
+        <filter targetName="clover-no" isVisible="false" />
+        <filter targetName="all" isVisible="false" />
+        <filter targetName="explode" isVisible="false" />
+        <filter targetName="clover-yes" isVisible="false" />
+        <filter targetName="deploy22" isVisible="false" />
+      </targetFilters>
+      <treeView value="true" />
+      <verbose value="true" />
+      <viewClosedWhenNoErrors value="false" />
+    </buildFile>
+    <buildFile url="file://$PROJECT_DIR$/miscellaneous/JBoss_NewsPortlet/build.xml">
+      <antCommandLine value="" />
+      <runInBackground value="false" />
+      <targetFilters>
+        <filter targetName="clean" isVisible="false" />
+        <filter targetName="prepare" isVisible="false" />
+        <filter targetName="clover-no" isVisible="false" />
+        <filter targetName="all" isVisible="false" />
+        <filter targetName="deploy" isVisible="false" />
+        <filter targetName="explode" isVisible="false" />
+        <filter targetName="clover-yes" isVisible="false" />
+      </targetFilters>
+      <treeView value="true" />
+      <verbose value="true" />
+      <viewClosedWhenNoErrors value="false" />
+    </buildFile>
+    <buildFile url="file://$PROJECT_DIR$/miscellaneous/JBoss_WeatherPortlet/build.xml">
+      <antCommandLine value="" />
+      <runInBackground value="false" />
+      <targetFilters>
+        <filter targetName="clean" isVisible="false" />
+        <filter targetName="prepare" isVisible="false" />
+        <filter targetName="clover-no" isVisible="false" />
+        <filter targetName="all" isVisible="false" />
+        <filter targetName="deploy" isVisible="false" />
+        <filter targetName="explode" isVisible="false" />
+        <filter targetName="clover-yes" isVisible="false" />
+      </targetFilters>
+      <treeView value="true" />
+      <verbose value="true" />
+      <viewClosedWhenNoErrors value="false" />
+    </buildFile>
+  </component>
+  <component name="editorHistoryManager">
+    <entry file="file://$PROJECT_DIR$/collaborate/ContactPortlet/README.txt">
+      <provider selected="true" editor-type-id="text-editor">
+        <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
+          <folding />
+        </state>
+      </provider>
+    </entry>
+    <entry file="file://$PROJECT_DIR$/collaborate/ContactPortlet/build.xml">
+      <provider selected="true" editor-type-id="text-editor">
+        <state line="44" column="56" selection-start="1630" selection-end="1630" vertical-scroll-proportion="0.15799257">
+          <folding />
+        </state>
+      </provider>
+    </entry>
+    <entry file="file://$PROJECT_DIR$/miscellaneous/CalcPortlet/README.txt">
+      <provider selected="true" editor-type-id="text-editor">
+        <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
+          <folding />
+        </state>
+      </provider>
+    </entry>
+    <entry file="file://$PROJECT_DIR$/miscellaneous/IFramePortlet/README.txt">
+      <provider selected="true" editor-type-id="text-editor">
+        <state line="13" column="0" selection-start="174" selection-end="905" vertical-scroll-proportion="0.41078067">
+          <folding />
+        </state>
+      </provider>
+    </entry>
+    <entry file="file://$PROJECT_DIR$/miscellaneous/IFramePortlet/build.xml">
+      <provider selected="true" editor-type-id="text-editor">
+        <state line="78" column="26" selection-start="2674" selection-end="2674" vertical-scroll-proportion="0.36889693">
+          <folding />
+        </state>
+      </provider>
+    </entry>
+    <entry file="file://$PROJECT_DIR$/miscellaneous/FlashPortlet/build.xml">
+      <provider selected="true" editor-type-id="text-editor">
+        <state line="54" column="10" selection-start="1877" selection-end="1877" vertical-scroll-proportion="0.47397768">
+          <folding />
+        </state>
+      </provider>
+    </entry>
+    <entry file="file://$PROJECT_DIR$/miscellaneous/JBoss_NewsPortlet/README.txt">
+      <provider selected="true" editor-type-id="text-editor">
+        <state line="13" column="0" selection-start="317" selection-end="1044" vertical-scroll-proportion="0.41078067">
+          <folding />
+        </state>
+      </provider>
+    </entry>
+    <entry file="file://$PROJECT_DIR$/miscellaneous/JBoss_WeatherPortlet/README.txt">
+      <provider selected="true" editor-type-id="text-editor">
+        <state line="9" column="56" selection-start="675" selection-end="675" vertical-scroll-proportion="0.2843866">
+          <folding />
+        </state>
+      </provider>
+    </entry>
+    <entry file="file://$PROJECT_DIR$/miscellaneous/JBoss_WeatherPortlet/LICENSES.txt">
+      <provider selected="true" editor-type-id="text-editor">
+        <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
+          <folding />
+        </state>
+      </provider>
+    </entry>
+    <entry file="file://$PROJECT_DIR$/miscellaneous/CalcPortlet/build.xml">
+      <provider selected="true" editor-type-id="text-editor">
+        <state line="64" column="6" selection-start="2170" selection-end="2170" vertical-scroll-proportion="0.5840868">
+          <folding>
+            <marker date="1153836346921" expanded="true" signature="40:3648" placeholder="..." />
+            <marker date="1153836346921" expanded="true" signature="711:788" placeholder="..." />
+            <marker date="1153836346921" expanded="true" signature="1029:1136" placeholder="..." />
+            <marker date="1153836346921" expanded="true" signature="1210:1272" placeholder="..." />
+            <marker date="1153836346921" expanded="true" signature="1300:1576" placeholder="..." />
+            <marker date="1153836346921" expanded="true" signature="1602:1802" placeholder="..." />
+            <marker date="1153836346921" expanded="true" signature="1863:2539" placeholder="..." />
+            <marker date="1153836346921" expanded="true" signature="1897:2161" placeholder="..." />
+            <marker date="1153836346921" expanded="true" signature="2260:2277" placeholder="..." />
+            <marker date="1153836346921" expanded="true" signature="2347:2526" placeholder="..." />
+            <marker date="1153836346921" expanded="true" signature="2367:2449" placeholder="..." />
+            <marker date="1153836346921" expanded="true" signature="2600:3276" placeholder="..." />
+            <marker date="1153836346921" expanded="true" signature="2634:2898" placeholder="..." />
+            <marker date="1153836346921" expanded="true" signature="2997:3014" placeholder="..." />
+            <marker date="1153836346921" expanded="true" signature="3084:3263" placeholder="..." />
+            <marker date="1153836346921" expanded="true" signature="3104:3186" placeholder="..." />
+            <marker date="1153836346921" expanded="true" signature="3323:3594" placeholder="..." />
+            <marker date="1153836346921" expanded="true" signature="3386:3451" placeholder="..." />
+            <marker date="1153836346921" expanded="true" signature="3468:3580" placeholder="..." />
+          </folding>
+        </state>
+      </provider>
+    </entry>
+    <entry file="file://$PROJECT_DIR$/miscellaneous/JBoss_NewsPortlet/build.xml">
+      <provider selected="true" editor-type-id="text-editor">
+        <state line="50" column="2" selection-start="1617" selection-end="1617" vertical-scroll-proportion="1.5799257">
+          <folding />
+        </state>
+      </provider>
+    </entry>
+    <entry file="file://$PROJECT_DIR$/miscellaneous/JBoss_WeatherPortlet/build.xml">
+      <provider selected="true" editor-type-id="text-editor">
+        <state line="72" column="3" selection-start="2293" selection-end="2293" vertical-scroll-proportion="0.5576208">
+          <folding />
+        </state>
+      </provider>
+    </entry>
+  </component>
+  <component name="simpleUML.DiagramSettingsWorkspace" />
+  <component name="simpleUML.UMLToolWindowPlugin">
+    <General>
+      <option name="birdViewUpdateDelay" value="2000" />
+      <option name="defaultFileLocation" value="file://$APPLICATION_HOME_DIR$/bin" />
+    </General>
+    <Classdiagram>
+      <option name="diagramTitleFont" value="SansSerif,1,12" />
+      <option name="diagramFont" value="SansSerif,0,10" />
+      <option name="defaultFieldsExpanded" value="false" />
+      <option name="defaultContructorsExpanded" value="false" />
+      <option name="defaultMethodsExpanded" value="false" />
+      <option name="showParameters" value="true" />
+      <option name="showTooltip" value="true" />
+      <option name="showReturnValues" value="true" />
+      <option name="longModifier" value="true" />
+      <option name="implementsBehaviour" value="1" />
+      <option name="extendsBehaviour" value="1" />
+      <option name="compartmentBehaviour" value="1" />
+      <option name="interfaceBackgroundColor" value="-6494306" />
+      <option name="abstractClassBackgroundColor" value="-1580132" />
+      <option name="classBackgroundColor" value="-6508057" />
+      <option name="diagramBackgroundColor" value="-1" />
+      <option name="useAntialiasedConnectors" value="true" />
+      <option name="quickSourceLinkColor" value="-16776961" />
+      <option name="quickDiagramLinkColor" value="-8454144" />
+      <option name="drawDecorations" value="false" />
+      <option name="hideFieldList" value="" />
+      <option name="showFieldList" value="" />
+      <option name="hideConstructorList" value="" />
+      <option name="showConstructorList" value="" />
+      <option name="hideMethodList" value="" />
+      <option name="showMethodList" value="" />
+      <option name="minimumFigureSize" value="0,0" />
+    </Classdiagram>
+    <Dependencydiagram>
+      <option name="diagramTitleFont" value="SansSerif,1,12" />
+      <option name="diagramFont" value="SansSerif,0,10" />
+      <option name="diagramBackgroundColor" value="-1" />
+      <option name="useAntialiasedConnectors" value="true" />
+      <option name="packageNameCompressionLevel" value="0" />
+    </Dependencydiagram>
+    <Packagediagram>
+      <option name="diagramTitleFont" value="SansSerif,0,12" />
+      <option name="diagramFont" value="SansSerif,0,10" />
+      <option name="packageBackgroundColor" value="-4144960" />
+      <option name="diagramBackgroundColor" value="-1" />
+      <option name="useAntialiasedConnectors" value="true" />
+      <option name="packageNameCompressionLevel" value="2" />
+    </Packagediagram>
+  </component>
+</project>
+


Property changes on: portlets/src/collaborate/ContactPortlet
___________________________________________________________________
Name: svn:ignore
   + output


Added: portlets/src/collaborate/ContactPortlet/LICENSES.txt
===================================================================
--- portlets/src/collaborate/ContactPortlet/LICENSES.txt	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/collaborate/ContactPortlet/LICENSES.txt	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,2 @@
+LGPL: explode.jar, portal-common.jar, portal-core-lib.jar, portlet-api.jar
+ASL: log4j.jar
\ No newline at end of file

Added: portlets/src/collaborate/ContactPortlet/README.txt
===================================================================
--- portlets/src/collaborate/ContactPortlet/README.txt	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/collaborate/ContactPortlet/README.txt	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,13 @@
+This portlet works with JBoss Portal 2.2+. It allows for a user-defined Address Book. This software is distributed under the LGPL, unless otherwise noted in the LICENSES.txt.
+
+For JBoss Portal 2.2:
+- To build the war file, use ant to execute the build.xml at the root of this bundle, ie.  "ant deploy22"
+- To deploy this portlet, simply copy the contact.war file to your /deploy directory where JBoss Portal resides.
+
+For JBoss Portal 2.4:
+- To build the war file, use ant to execute the build.xml at the root of this bundle, ie.  "ant deploy24"
+- To deploy this portlet, simply copy the contact.war file to your /deploy directory where JBoss Portal resides.
+
+For other Portal servers:
+- To build the war file, use ant to execute the build.xml at the root of this bundle, ie.  "ant deploy"
+- You will then need to add any proprietary descriptors your portal server vendor recommends and deploy.

Added: portlets/src/collaborate/ContactPortlet/build.xml
===================================================================
--- portlets/src/collaborate/ContactPortlet/build.xml	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/collaborate/ContactPortlet/build.xml	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,111 @@
+<project name="JBoss Contact Portlet"
+         default="deploy24"
+         basedir=".">
+
+   <property name="app.name" value="flash"/>
+
+   <property name="src.dir" value="${basedir}/src"/>
+
+   <property name="lib.dir" value="${basedir}/lib"/>
+
+   <property name="build.dir" value="${basedir}/output"/>
+
+   <property name="build.lib" value="${build.dir}/lib"/>
+
+   <property name="build.resources" value="${src.dir}/resources"/>
+
+   <property name="build.etc" value="${src.dir}/etc"/>
+
+   <property name="classes.dir" value="${build.dir}/classes"/>
+
+   <property name="dist.dir" value="${src.dir}/resources"/>
+
+   <property name="libs.api" value="${lib.dir}/portlet-api-lib.jar"/>
+
+   <property name="libs.ant"
+             value="${lib.dir}/explode.jar;${lib.dir}/portal-common-lib.jar;${lib.dir}/portal-core-lib.jar;${lib.dir}/portal-portlet-lib.jar;${lib.dir}/hibernate3.jar"/>
+
+   <property name="libs" value="${libs.api};${libs.ant}"/>
+
+   <available property="clover.available" classname="org.apache.tools.ant.taskdefs.CloverCompilerAdapter"/>
+
+   <target name="clover-yes" depends="prepare" if="clover.available">
+      <property name="compiler" value="org.apache.tools.ant.taskdefs.CloverCompilerAdapter"/>
+   </target>
+
+   <target name="clover-no" depends="prepare" unless="clover.available">
+      <property name="compiler" value="modern"/>
+   </target>
+
+   <target name="prepare">
+      <mkdir dir="${classes.dir}"/>
+      <mkdir dir="${build.lib}"/>
+      <mkdir dir="${build.lib}/exploded"/>
+      <mkdir dir="${build.resources}/contact-war_24/WEB-INF/classes"/>
+      <mkdir dir="${build.resources}/contact-war_22/WEB-INF/classes"/>
+   </target>
+
+   <target name="clean">
+      <delete dir="${build.dir}"/>
+      <delete dir="${build.resources}/contact-war_24/WEB-INF/classes"/>
+      <delete dir="${build.resources}/contact-war_22/WEB-INF/classes"/>
+   </target>
+
+   <target name="deploy24" depends="clover-yes, clover-no">
+      <javac srcdir="${src.dir}"
+             destdir="${classes.dir}"
+             classpath="${libs}"
+             debug="off"
+             optimize="on"
+             deprecation="on"
+             compiler="${compiler}">
+         <include name="main/org/jboss/portlet/**/*.java"/>
+      </javac>
+
+      <copydir src="${classes.dir}" dest="${build.resources}/contact-war_24/WEB-INF/classes">
+      </copydir>
+
+      <!-- contact.war -->
+      <jar jarfile="contact.war">
+         <manifest>
+            <attribute name="Manifest-Version" value="1.0"/>
+         </manifest>
+         <fileset dir="${build.resources}/contact-war_24"/>
+      </jar>
+   </target>
+
+   <target name="deploy22" depends="clover-yes, clover-no">
+      <javac srcdir="${src.dir}"
+             destdir="${classes.dir}"
+             classpath="${libs}"
+             debug="off"
+             optimize="on"
+             deprecation="on"
+             compiler="${compiler}">
+         <include name="main/org/jboss/portlet/**/*.java"/>
+      </javac>
+
+      <copydir src="${classes.dir}" dest="${build.resources}/contact-war_22/WEB-INF/classes">
+      </copydir>
+
+      <!-- contact.war -->
+      <jar jarfile="contact.war">
+         <manifest>
+            <attribute name="Manifest-Version" value="1.0"/>
+         </manifest>
+         <fileset dir="${build.resources}/contact-war_22"/>
+      </jar>
+   </target>
+
+   <target name="explode" depends="deploy24">
+      <taskdef classname="org.jboss.nukes.common.ant.Explode"
+               name="explode"
+               classpath="${libs}"/>
+      <explode
+            file="contact.war"
+            todir="${build.lib}/exploded"
+            name="contact.war"/>
+   </target>
+   <target name="all" depends="deploy24"/>
+</project>
+

Added: portlets/src/collaborate/ContactPortlet/contact.war
===================================================================
(Binary files differ)


Property changes on: portlets/src/collaborate/ContactPortlet/contact.war
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: portlets/src/collaborate/ContactPortlet/lib/explode.jar
===================================================================
(Binary files differ)


Property changes on: portlets/src/collaborate/ContactPortlet/lib/explode.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: portlets/src/collaborate/ContactPortlet/lib/hibernate3.jar
===================================================================
(Binary files differ)


Property changes on: portlets/src/collaborate/ContactPortlet/lib/hibernate3.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: portlets/src/collaborate/ContactPortlet/lib/portal-common-lib.jar
===================================================================
(Binary files differ)


Property changes on: portlets/src/collaborate/ContactPortlet/lib/portal-common-lib.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: portlets/src/collaborate/ContactPortlet/lib/portal-core-lib.jar
===================================================================
(Binary files differ)


Property changes on: portlets/src/collaborate/ContactPortlet/lib/portal-core-lib.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: portlets/src/collaborate/ContactPortlet/lib/portal-portlet-lib.jar
===================================================================
(Binary files differ)


Property changes on: portlets/src/collaborate/ContactPortlet/lib/portal-portlet-lib.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: portlets/src/collaborate/ContactPortlet/lib/portlet-api-lib.jar
===================================================================
(Binary files differ)


Property changes on: portlets/src/collaborate/ContactPortlet/lib/portlet-api-lib.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: portlets/src/collaborate/ContactPortlet/src/main/org/jboss/portlet/contacts/Contact.java
===================================================================
--- portlets/src/collaborate/ContactPortlet/src/main/org/jboss/portlet/contacts/Contact.java	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/collaborate/ContactPortlet/src/main/org/jboss/portlet/contacts/Contact.java	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,114 @@
+package org.jboss.portlet.contacts;
+
+/**
+ * User: Chris Mills (millsy at jboss.com)
+ * Date: 05-Mar-2006
+ * Time: 21:25:29
+ */
+public class Contact
+{
+   protected Long key;
+   protected String userName;
+   protected String givenName;
+   protected String familyName;
+   protected String telephone;
+   protected String mobile;
+   protected String email;
+
+   public Contact()
+   {
+      key = null;
+      userName = null;
+      givenName = null;
+      familyName = null;
+      telephone = null;
+      mobile = null;
+      email = null;
+   }
+
+   public Contact(String userName)
+   {
+      key = null;
+      this.userName = userName;
+      givenName = null;
+      familyName = null;
+      telephone = null;
+      mobile = null;
+      email = null;
+   }
+
+   public Long getKey()
+   {
+      return key;
+   }
+
+   public void setKey(Long key)
+   {
+      this.key = key;
+   }
+
+   public void setUserName(String userName)
+   {
+      this.userName = userName;
+   }
+
+   public Long getId()
+   {
+      return key;
+   }
+
+   public String getUserName()
+   {
+      return userName;
+   }
+
+   public String getGivenName()
+   {
+      return givenName;
+   }
+
+   public void setGivenName(String givenName)
+   {
+      this.givenName = givenName;
+   }
+
+   public String getFamilyName()
+   {
+      return familyName;
+   }
+
+   public void setFamilyName(String familyName)
+   {
+      this.familyName = familyName;
+   }
+
+   public String getTelephone()
+   {
+      return telephone;
+   }
+
+   public void setTelephone(String telephone)
+   {
+      this.telephone = telephone;
+   }
+
+   public String getMobile()
+   {
+      return mobile;
+   }
+
+   public void setMobile(String mobile)
+   {
+      this.mobile = mobile;
+   }
+
+   public String getEmail()
+   {
+      return email;
+   }
+
+   public void setEmail(String email)
+   {
+      this.email = email;
+   }
+}

Added: portlets/src/collaborate/ContactPortlet/src/main/org/jboss/portlet/contacts/ContactsPortlet.java
===================================================================
--- portlets/src/collaborate/ContactPortlet/src/main/org/jboss/portlet/contacts/ContactsPortlet.java	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/collaborate/ContactPortlet/src/main/org/jboss/portlet/contacts/ContactsPortlet.java	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,267 @@
+package org.jboss.portlet.contacts;
+
+import org.hibernate.Criteria;
+import org.hibernate.Session;
+import org.hibernate.SessionFactory;
+import org.hibernate.Transaction;
+import org.hibernate.cfg.Configuration;
+import org.hibernate.criterion.Expression;
+import org.hibernate.criterion.MatchMode;
+import org.jboss.portlet.JBossActionResponse;
+
+import javax.portlet.ActionRequest;
+import javax.portlet.ActionResponse;
+import javax.portlet.GenericPortlet;
+import javax.portlet.PortletException;
+import javax.portlet.PortletRequestDispatcher;
+import javax.portlet.PortletSecurityException;
+import javax.portlet.RenderRequest;
+import javax.portlet.RenderResponse;
+import java.io.ByteArrayInputStream;
+import java.io.IOException;
+import java.util.List;
+
+/**
+ * User: Chris Mills (millsy at jboss.com)
+ * Date: 05-Mar-2006
+ * Time: 20:53:43
+ */
+public class ContactsPortlet extends GenericPortlet
+{
+   private SessionFactory sessionFactory;
+
+   public void init()
+   {
+      Configuration config = new Configuration();
+      config.configure("WEB-INF/contacts/hibernate.cfg.xml");
+      this.sessionFactory = config.buildSessionFactory();
+   }
+
+   public void processAction(ActionRequest request, ActionResponse response) throws PortletException, PortletSecurityException, IOException
+   {
+      String op = request.getParameter("op");
+      if((op != null) && (op.trim().length() > 0))
+      {
+         String key = request.getParameter("key");
+         String givenName = request.getParameter("givenName");
+         String familyName = request.getParameter("familyName");
+         String telephone = request.getParameter("telephone");
+         String mobile = request.getParameter("mobile");
+         String email = request.getParameter("email");
+         if(op.equalsIgnoreCase("Add Contact"))
+         {
+            addNewContact(request.getUserPrincipal().getName(), givenName, familyName, telephone, mobile, email);
+         }
+         else if(op.equalsIgnoreCase("Update Contact"))
+         {
+            saveContact(key, givenName, familyName, telephone, mobile, email);
+         }
+         else if(op.equalsIgnoreCase("Delete Contact"))
+         {
+            deleteContact(key);
+         }
+         else if((request.getParameter("op") != null) && (request.getParameter("op").equalsIgnoreCase("vcard")))
+         {
+            String vcard = createVCard(request.getParameter("key"));
+            ((JBossActionResponse) response).sendStream("text/x-vcard", vcard.getBytes().length, new ByteArrayInputStream(vcard.getBytes()));
+         }
+      }
+   }
+
+   public void doView(RenderRequest request, RenderResponse response)
+   {
+      try
+      {
+         if((request.getUserPrincipal() != null) && (request.getUserPrincipal().getName() != null))
+         {
+            String userName = request.getUserPrincipal().getName();
+            String jspName = null;
+            if((request.getParameter("op") != null) && (request.getParameter("op").equalsIgnoreCase("Search")))
+            {
+               request.setAttribute("contacts", getUsersContacts(userName, request.getParameter("familyName")));
+               jspName = "/WEB-INF/contacts/list.jsp";
+            }
+            else if((request.getParameter("op") != null) && (request.getParameter("op").equalsIgnoreCase("shownew")))
+            {
+               jspName = "/WEB-INF/contacts/add.jsp";
+            }
+            else if((request.getParameter("op") != null) && (request.getParameter("op").equalsIgnoreCase("edit")))
+            {
+               request.setAttribute("contact", findContact(userName, request.getParameter("key")));
+               jspName = "/WEB-INF/contacts/edit.jsp";
+            }
+            else if((request.getParameter("op") != null) && (request.getParameter("op").equalsIgnoreCase("delete")))
+            {
+               request.setAttribute("contact", findContact(userName, request.getParameter("key")));
+               jspName = "/WEB-INF/contacts/delete.jsp";
+            }
+            else
+            {
+               request.setAttribute("contacts", getUsersContacts(userName));
+               jspName = "/WEB-INF/contacts/list.jsp";
+            }
+            response.setContentType("text/html");
+            PortletRequestDispatcher prd = getPortletContext().getRequestDispatcher(jspName);
+            prd.include(request, response);
+         }
+         else
+         {
+            response.setContentType("text/html");
+            PortletRequestDispatcher prd = getPortletContext().getRequestDispatcher("/WEB-INF/common/notloggedin.jsp");
+            prd.include(request, response);
+         }
+      }
+      catch(Exception e)
+      {
+         e.printStackTrace();
+      }
+   }
+
+   private List getUsersContacts(String userName)
+   {
+      Session session = this.sessionFactory.openSession();
+      Criteria criteria = session.createCriteria(Contact.class);
+      criteria.add(Expression.eq("userName", userName));
+      List contacts = criteria.list();
+      session.disconnect();
+      return contacts;
+   }
+
+   private List getUsersContacts(String userName, String name)
+   {
+      Session session = this.sessionFactory.openSession();
+      Criteria criteria = session.createCriteria(Contact.class);
+      criteria.add(Expression.eq("userName", userName));
+      criteria.add(Expression.like("familyName", name, MatchMode.ANYWHERE));
+      List contacts = criteria.list();
+      session.disconnect();
+      return contacts;
+   }
+
+   private void addNewContact(String userName, String givenName, String familyName, String telephone, String mobile, String email)
+   {
+      Session session = this.sessionFactory.openSession();
+      Transaction t = session.beginTransaction();
+      try
+      {
+         Contact contact = new Contact(userName);
+         contact.setGivenName(givenName);
+         contact.setFamilyName(familyName);
+         contact.setTelephone(telephone);
+         contact.setMobile(mobile);
+         contact.setEmail(email);
+         session.save(contact);
+         t.commit();
+      }
+      catch(Exception e)
+      {
+         t.rollback();
+      }
+      finally
+      {
+         if(session != null)
+         {
+            session.disconnect();
+         }
+      }
+   }
+
+   private Contact findContact(String userName, String id)
+   {
+      Session session = this.sessionFactory.openSession();
+      Criteria criteria = session.createCriteria(Contact.class);
+      criteria.add(Expression.eq("userName", userName));
+      criteria.add(Expression.eq("key", new Long(id)));
+      List contacts = criteria.list();
+      session.disconnect();
+      if(contacts.size() == 1)
+      {
+         return (Contact) contacts.get(0);
+      }
+      return null;
+   }
+
+   private void saveContact(String key, String givenName, String familyName, String telephone, String mobile, String email)
+   {
+      Session session = this.sessionFactory.openSession();
+      Transaction t = session.beginTransaction();
+      try
+      {
+         Contact contact = (Contact) session.load(Contact.class, new Long(key));
+         contact.setGivenName(givenName);
+         contact.setFamilyName(familyName);
+         contact.setTelephone(telephone);
+         contact.setMobile(mobile);
+         contact.setEmail(email);
+
+         session.update(contact);
+         t.commit();
+      }
+      catch(Exception e)
+      {
+         t.rollback();
+      }
+      finally
+      {
+         if(session != null)
+         {
+            session.disconnect();
+         }
+      }
+   }
+
+   private void deleteContact(String key)
+   {
+      Session session = this.sessionFactory.openSession();
+      Transaction t = session.beginTransaction();
+      try
+      {
+         Contact contact = (Contact) session.load(Contact.class, new Long(key));
+
+         session.delete(contact);
+         t.commit();
+      }
+      catch(Exception e)
+      {
+         t.rollback();
+      }
+      finally
+      {
+         if(session != null)
+         {
+            session.disconnect();
+         }
+      }
+   }
+
+   private String createVCard(String key)
+   {
+      Session session = this.sessionFactory.openSession();
+      Contact contact = (Contact) session.load(Contact.class, new Long(key));
+      StringBuffer sbContact = new StringBuffer(1024);
+      sbContact.append("BEGIN:VCARD\n");
+      sbContact.append("VERSION:2.1\n");
+      sbContact.append("N:");
+      sbContact.append(contact.getFamilyName());
+      sbContact.append(" ");
+      sbContact.append(contact.getGivenName());
+      sbContact.append("\n");
+      sbContact.append("FN:");
+      sbContact.append(contact.getGivenName());
+      sbContact.append(" ");
+      sbContact.append(contact.getFamilyName());
+      sbContact.append("\n");
+      sbContact.append("TEL;WORK;VOICE:");
+      sbContact.append(contact.getTelephone());
+      sbContact.append("\n");
+      sbContact.append("TEL;CELL;VOICE:");
+      sbContact.append(contact.getMobile());
+      sbContact.append("\n");
+      sbContact.append("EMAIL;PREF;INTERNET:");
+      sbContact.append(contact.getEmail());
+      sbContact.append("\n");
+      sbContact.append("END:VCARD\n");
+      return sbContact.toString();
+   }
+}
+


Property changes on: portlets/src/collaborate/ContactPortlet/src/resources/contact-war_22/WEB-INF
___________________________________________________________________
Name: svn:ignore
   + classes


Added: portlets/src/collaborate/ContactPortlet/src/resources/contact-war_22/WEB-INF/common/notloggedin.jsp
===================================================================
--- portlets/src/collaborate/ContactPortlet/src/resources/contact-war_22/WEB-INF/common/notloggedin.jsp	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/collaborate/ContactPortlet/src/resources/contact-war_22/WEB-INF/common/notloggedin.jsp	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,13 @@
+<%@ page language="java" extends="org.jboss.portal.core.servlet.jsp.PortalJsp" %>
+
+<!--
+/**
+ * User: Chris Mills (millsy at jboss.com)
+ * Date: 27-Feb-2006
+ * Time: 22:02:11
+ */
+-->
+
+<center>
+    <b>You must be an authenticated user of this system to use this portlet</b>
+</center>
\ No newline at end of file

Added: portlets/src/collaborate/ContactPortlet/src/resources/contact-war_22/WEB-INF/contacts/add.jsp
===================================================================
--- portlets/src/collaborate/ContactPortlet/src/resources/contact-war_22/WEB-INF/contacts/add.jsp	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/collaborate/ContactPortlet/src/resources/contact-war_22/WEB-INF/contacts/add.jsp	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,41 @@
+<%@ page language="java" extends="org.jboss.portal.core.servlet.jsp.PortalJsp" %>
+<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet" %>
+
+<!--
+/**
+ * User: Chris Mills (millsy at jboss.com)
+ * Date: 27-Feb-2006
+ * Time: 22:02:11
+ */
+-->
+<portlet:defineObjects/>
+
+<form action="<portlet:actionURL/>" method="POST">
+    <table>
+        <tr>
+            <td>Given Name</td>
+            <td><input type="text" name="givenName"/></td>
+        </tr>
+        <tr>
+            <td>Family Name</td>
+            <td><input type="text" name="familyName"/></td>
+        </tr>
+        <tr>
+            <td>Telephone</td>
+            <td><input type="text" name="telephone"/></td>
+        </tr>
+        <tr>
+            <td>Mobile</td>
+            <td><input type="text" name="mobile"/></td>
+        </tr>
+        <tr>
+            <td>Email</td>
+            <td><input type="text" name="email"/></td>
+        </tr>
+        <tr>
+            <td><input type="submit" name="op" value="Add Contact"/></td>
+            <td><input type="submit" name="op" value="Cancel"/></td>
+        </tr>
+    </table>
+</form>
+

Added: portlets/src/collaborate/ContactPortlet/src/resources/contact-war_22/WEB-INF/contacts/delete.jsp
===================================================================
--- portlets/src/collaborate/ContactPortlet/src/resources/contact-war_22/WEB-INF/contacts/delete.jsp	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/collaborate/ContactPortlet/src/resources/contact-war_22/WEB-INF/contacts/delete.jsp	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,47 @@
+<%@ page import="org.jboss.portlet.contacts.Contact"%>
+<%@ page language="java" extends="org.jboss.portal.core.servlet.jsp.PortalJsp" %>
+<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet" %>
+
+<!--
+/**
+ * User: Chris Mills (millsy at jboss.com)
+ * Date: 27-Feb-2006
+ * Time: 22:02:11
+ */
+-->
+<portlet:defineObjects/>
+
+<%
+	Contact contact = (Contact) request.getAttribute("contact");
+%>
+
+<form action="<portlet:actionURL/>" method="POST">
+	<input type="hidden" name="key" value="<%= contact.getKey() %>"/>
+    <table>
+        <tr>
+            <td>Given Name</td>
+            <td><%= contact.getGivenName() != null ? contact.getGivenName() : "" %></td>
+        </tr>
+        <tr>
+            <td>Family Name</td>
+            <td><%= contact.getFamilyName() != null ? contact.getFamilyName() : "" %></td>
+        </tr>
+        <tr>
+            <td>Telephone</td>
+            <td><%= contact.getTelephone() != null ? contact.getTelephone() : "" %></td>
+        </tr>
+        <tr>
+            <td>Mobile</td>
+            <td><%= contact.getMobile() != null ? contact.getMobile() : "" %></td>
+        </tr>
+        <tr>
+            <td>Email</td>
+            <td><%= contact.getEmail() != null ? contact.getEmail() : "" %>"</td>
+        </tr>
+        <tr>
+            <td><input type="submit" name="op" value="Delete Contact"/></td>
+            <td><input type="submit" name="op" value="Cancel"/></td>
+        </tr>
+    </table>
+</form>
+

Added: portlets/src/collaborate/ContactPortlet/src/resources/contact-war_22/WEB-INF/contacts/domain.hbm.xml
===================================================================
--- portlets/src/collaborate/ContactPortlet/src/resources/contact-war_22/WEB-INF/contacts/domain.hbm.xml	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/collaborate/ContactPortlet/src/resources/contact-war_22/WEB-INF/contacts/domain.hbm.xml	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,61 @@
+<?xml version="1.0"?>
+<!DOCTYPE hibernate-mapping PUBLIC
+   "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
+   "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
+<hibernate-mapping>
+   <class
+      name="org.jboss.portlet.contacts.Contact"
+      table="jbp_contacts">
+      <cache usage="read-write"/>
+      <id
+         name="key"
+         column="jbp_uid"
+         type="java.lang.Long">
+         <generator class="native">
+            <param name="sequence">contacts_seq</param>
+         </generator>
+      </id>
+      <property
+         name="userName"
+         type="java.lang.String"
+         update="false"
+         insert="true"
+         column="jbp_uname"
+         unique="false"/>
+      <property
+         name="givenName"
+         type="java.lang.String"
+         update="true"
+         insert="true"
+         column="jbp_givenname"
+         unique="false"/>
+       <property
+          name="familyName"
+          type="java.lang.String"
+          update="true"
+          insert="true"
+          column="jbp_familyname"
+          unique="false"/>
+       <property
+          name="telephone"
+          type="java.lang.String"
+          update="true"
+          insert="true"
+          column="jbp_telephone"
+          unique="false"/>
+       <property
+          name="mobile"
+          type="java.lang.String"
+          update="true"
+          insert="true"
+          column="jbp_mobile"
+          unique="false"/>
+	   <property
+          name="email"
+          type="java.lang.String"
+          update="true"
+          insert="true"
+          column="jbp_email"
+          unique="false"/>
+   </class>
+</hibernate-mapping>
\ No newline at end of file

Added: portlets/src/collaborate/ContactPortlet/src/resources/contact-war_22/WEB-INF/contacts/edit.jsp
===================================================================
--- portlets/src/collaborate/ContactPortlet/src/resources/contact-war_22/WEB-INF/contacts/edit.jsp	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/collaborate/ContactPortlet/src/resources/contact-war_22/WEB-INF/contacts/edit.jsp	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,46 @@
+<%@ page import="org.jboss.portlet.contacts.Contact"%>
+<%@ page language="java" extends="org.jboss.portal.core.servlet.jsp.PortalJsp" %>
+<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet" %>
+
+<!--
+/**
+ * User: Chris Mills (millsy at jboss.com)
+ * Date: 27-Feb-2006
+ * Time: 22:02:11
+ */
+-->
+<portlet:defineObjects/>
+
+<%
+	Contact contact = (Contact) request.getAttribute("contact");
+%>
+
+<form action="<portlet:actionURL/>" method="POST">
+	<input type="hidden" name="key" value="<%= contact.getKey() %>"/>
+    <table>
+        <tr>
+            <td>Given Name</td>
+            <td><input type="text" name="givenName" value="<%= contact.getGivenName() != null ? contact.getGivenName() : "" %>"/></td>
+        </tr>
+        <tr>
+            <td>Family Name</td>
+            <td><input type="text" name="familyName" value="<%= contact.getFamilyName() != null ? contact.getFamilyName() : "" %>"/></td>
+        </tr>
+        <tr>
+            <td>Telephone</td>
+            <td><input type="text" name="telephone" value="<%= contact.getTelephone() != null ? contact.getTelephone() : "" %>"/></td>
+        </tr>
+        <tr>
+            <td>Mobile</td>
+            <td><input type="text" name="mobile" value="<%= contact.getMobile() != null ? contact.getMobile() : "" %>"/></td>
+        </tr>
+        <tr>
+            <td>Email</td>
+            <td><input type="text" name="email" value="<%= contact.getEmail() != null ? contact.getEmail() : "" %>"/></td>
+        </tr>
+        <tr>
+            <td><input type="submit" name="op" value="Update Contact"/></td>
+            <td><input type="submit" name="op" value="Cancel"/></td>
+        </tr>
+    </table>
+</form>

Added: portlets/src/collaborate/ContactPortlet/src/resources/contact-war_22/WEB-INF/contacts/hibernate.cfg.xml
===================================================================
--- portlets/src/collaborate/ContactPortlet/src/resources/contact-war_22/WEB-INF/contacts/hibernate.cfg.xml	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/collaborate/ContactPortlet/src/resources/contact-war_22/WEB-INF/contacts/hibernate.cfg.xml	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,19 @@
+<?xml version='1.0' encoding='utf-8'?>
+<!DOCTYPE hibernate-configuration PUBLIC
+    "-//Hibernate/Hibernate Configuration DTD//EN"
+    "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
+<hibernate-configuration>
+   <session-factory>
+      <property name="connection.datasource">java:PortalDS</property>
+      <property name="show_sql">false</property>
+      <property name="cache.use_second_level_cache">true</property>
+      <property name="cache.use_query_cache">true</property>
+	  
+	  <property name="hibernate.hbm2ddl.auto">update</property>
+
+      <property name="cache.provider_class">org.hibernate.cache.EhCacheProvider</property>
+
+      <!-- Mapping files -->
+      <mapping resource="WEB-INF/contacts/domain.hbm.xml"/>
+   </session-factory>
+</hibernate-configuration>
\ No newline at end of file

Added: portlets/src/collaborate/ContactPortlet/src/resources/contact-war_22/WEB-INF/contacts/list.jsp
===================================================================
--- portlets/src/collaborate/ContactPortlet/src/resources/contact-war_22/WEB-INF/contacts/list.jsp	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/collaborate/ContactPortlet/src/resources/contact-war_22/WEB-INF/contacts/list.jsp	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,72 @@
+<%@ page import="org.jboss.portlet.contacts.Contact" %>
+<%@ page import="java.util.List" %>
+<%@ page language="java" extends="org.jboss.portal.core.servlet.jsp.PortalJsp" %>
+<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet" %>
+
+<!--
+/**
+* User: Chris Mills (millsy at jboss.com)
+* Date: 27-Feb-2006
+* Time: 22:02:11
+*/
+-->
+<portlet:defineObjects/>
+
+<table width="100%">
+   <tr class="portlet-table-body">
+      <form action="<portlet:renderURL/>" method="POST">
+         <td colspan="2">Find contacts: </td>
+         <td colspan="2"><input type="text" name="familyName"/></td>
+         <td colspan="2"><input type="submit" name="op" value="Search"/></td>
+      </form>
+   </tr>
+   <%
+      List contacts = (List) request.getAttribute("contacts");
+      if(contacts.size() > 0)
+      {
+   %>
+   <tr class="portlet-section-header">
+      <td>Given Name</td>
+      <td>Family Name</td>
+      <td>Telephone</td>
+      <td>Mobile</td>
+      <td>Email</td>
+      <td colspan="3">Options</td>
+   </tr>
+   <%
+      for(int i = 0; i < contacts.size(); i++)
+      {
+         Contact contact = (Contact) contacts.get(i);
+   %>
+   <tr class="portlet-table-body">
+      <td><%= contact.getGivenName() %></td>
+      <td><%= contact.getFamilyName() %></td>
+      <td><a href="callto:<%= contact.getTelephone() %>"><%= contact.getTelephone() %></a></td>
+      <td><a href="callto:<%= contact.getMobile() %>"><%= contact.getMobile() %></a></td>
+      <td><a href="mailto:<%= contact.getEmail() %>"><%= contact.getEmail() %></a></td>
+      <td><a
+            href="<portlet:renderURL><portlet:param name="op" value="edit"/><portlet:param name="key" value="<%= contact.getKey().toString() %>"/></portlet:renderURL>">Edit</a>
+      </td>
+      <td><a
+            href="<portlet:renderURL><portlet:param name="op" value="delete"/><portlet:param name="key" value="<%= contact.getKey().toString() %>"/></portlet:renderURL>">Delete</a>
+      </td>
+      <td><a target="_new"
+             href="<portlet:actionURL><portlet:param name="op" value="vcard"/><portlet:param name="key" value="<%= contact.getKey().toString() %>"/></portlet:actionURL>">VCard</a>
+      </td>
+   </tr>
+   <%
+      }
+   }
+   else
+   {
+   %>
+   <tr>
+      <td colspan="6" align="center">No contacts</td>
+   </tr>
+   <%
+      }
+   %>
+</table>
+<center><a href="<portlet:renderURL><portlet:param name="op" value="shownew"/></portlet:renderURL>">Add new contact</a>
+</center>
+

Added: portlets/src/collaborate/ContactPortlet/src/resources/contact-war_22/WEB-INF/contacts-object.xml
===================================================================
--- portlets/src/collaborate/ContactPortlet/src/resources/contact-war_22/WEB-INF/contacts-object.xml	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/collaborate/ContactPortlet/src/resources/contact-war_22/WEB-INF/contacts-object.xml	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<deployments>
+   <deployment>
+      <if-exists>overwrite</if-exists>
+      <parent-ref>default</parent-ref>
+      <page>
+         <page-name>Contacts</page-name>
+         <window>
+            <window-name>ContactsPortletWindow</window-name>
+            <instance-ref>ContactsPortletInstance</instance-ref>
+            <region>center</region>
+            <height>0</height>
+         </window>
+      </page>
+   </deployment>
+   <deployment>
+      <if-exists>overwrite</if-exists>
+      <instance>
+         <instance-name>ContactsPortletInstance</instance-name>
+         <component-ref>contactsportlet.ContactsPortlet</component-ref>
+      </instance>
+   </deployment>
+</deployments>
\ No newline at end of file

Added: portlets/src/collaborate/ContactPortlet/src/resources/contact-war_22/WEB-INF/jboss-app.xml
===================================================================
--- portlets/src/collaborate/ContactPortlet/src/resources/contact-war_22/WEB-INF/jboss-app.xml	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/collaborate/ContactPortlet/src/resources/contact-war_22/WEB-INF/jboss-app.xml	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,3 @@
+<jboss-app>
+    <app-name>contactsportlet</app-name>
+</jboss-app>
\ No newline at end of file

Added: portlets/src/collaborate/ContactPortlet/src/resources/contact-war_22/WEB-INF/jboss-web.xml
===================================================================
--- portlets/src/collaborate/ContactPortlet/src/resources/contact-war_22/WEB-INF/jboss-web.xml	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/collaborate/ContactPortlet/src/resources/contact-war_22/WEB-INF/jboss-web.xml	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,3 @@
+<?xml version="1.0"?>
+<jboss-web>
+</jboss-web>

Added: portlets/src/collaborate/ContactPortlet/src/resources/contact-war_22/WEB-INF/portlet.xml
===================================================================
--- portlets/src/collaborate/ContactPortlet/src/resources/contact-war_22/WEB-INF/portlet.xml	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/collaborate/ContactPortlet/src/resources/contact-war_22/WEB-INF/portlet.xml	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
+             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+             xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd /opt/SUNWps/dtd/portlet.xsd"
+             version="1.0">
+   <portlet>
+      <portlet-name>ContactsPortlet</portlet-name>
+      <portlet-class>org.jboss.portlet.contacts.ContactsPortlet</portlet-class>
+      <supports>
+         <mime-type>text/html</mime-type>
+         <portlet-mode>VIEW</portlet-mode>
+      </supports>
+      <portlet-info>
+         <title>Address Book</title>
+      </portlet-info>
+   </portlet>
+</portlet-app>

Added: portlets/src/collaborate/ContactPortlet/src/resources/contact-war_22/WEB-INF/web.xml
===================================================================
--- portlets/src/collaborate/ContactPortlet/src/resources/contact-war_22/WEB-INF/web.xml	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/collaborate/ContactPortlet/src/resources/contact-war_22/WEB-INF/web.xml	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,6 @@
+<?xml version="1.0"?>
+<!DOCTYPE web-app PUBLIC
+   "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
+   "http://java.sun.com/dtd/web-app_2_3.dtd">
+<web-app>
+</web-app>


Property changes on: portlets/src/collaborate/ContactPortlet/src/resources/contact-war_24/WEB-INF
___________________________________________________________________
Name: svn:ignore
   + classes


Added: portlets/src/collaborate/ContactPortlet/src/resources/contact-war_24/WEB-INF/common/notloggedin.jsp
===================================================================
--- portlets/src/collaborate/ContactPortlet/src/resources/contact-war_24/WEB-INF/common/notloggedin.jsp	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/collaborate/ContactPortlet/src/resources/contact-war_24/WEB-INF/common/notloggedin.jsp	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,13 @@
+<%@ page language="java" extends="org.jboss.portal.core.servlet.jsp.PortalJsp" %>
+
+<!--
+/**
+ * User: Chris Mills (millsy at jboss.com)
+ * Date: 27-Feb-2006
+ * Time: 22:02:11
+ */
+-->
+
+<center>
+    <b>You must be an authenticated user of this system to use this portlet</b>
+</center>
\ No newline at end of file

Added: portlets/src/collaborate/ContactPortlet/src/resources/contact-war_24/WEB-INF/contacts/add.jsp
===================================================================
--- portlets/src/collaborate/ContactPortlet/src/resources/contact-war_24/WEB-INF/contacts/add.jsp	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/collaborate/ContactPortlet/src/resources/contact-war_24/WEB-INF/contacts/add.jsp	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,41 @@
+<%@ page language="java" extends="org.jboss.portal.core.servlet.jsp.PortalJsp" %>
+<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet" %>
+
+<!--
+/**
+ * User: Chris Mills (millsy at jboss.com)
+ * Date: 27-Feb-2006
+ * Time: 22:02:11
+ */
+-->
+<portlet:defineObjects/>
+
+<form action="<portlet:actionURL/>" method="POST">
+    <table>
+        <tr>
+            <td>Given Name</td>
+            <td><input type="text" name="givenName"/></td>
+        </tr>
+        <tr>
+            <td>Family Name</td>
+            <td><input type="text" name="familyName"/></td>
+        </tr>
+        <tr>
+            <td>Telephone</td>
+            <td><input type="text" name="telephone"/></td>
+        </tr>
+        <tr>
+            <td>Mobile</td>
+            <td><input type="text" name="mobile"/></td>
+        </tr>
+        <tr>
+            <td>Email</td>
+            <td><input type="text" name="email"/></td>
+        </tr>
+        <tr>
+            <td><input type="submit" name="op" value="Add Contact"/></td>
+            <td><input type="submit" name="op" value="Cancel"/></td>
+        </tr>
+    </table>
+</form>
+

Added: portlets/src/collaborate/ContactPortlet/src/resources/contact-war_24/WEB-INF/contacts/delete.jsp
===================================================================
--- portlets/src/collaborate/ContactPortlet/src/resources/contact-war_24/WEB-INF/contacts/delete.jsp	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/collaborate/ContactPortlet/src/resources/contact-war_24/WEB-INF/contacts/delete.jsp	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,47 @@
+<%@ page import="org.jboss.portlet.contacts.Contact"%>
+<%@ page language="java" extends="org.jboss.portal.core.servlet.jsp.PortalJsp" %>
+<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet" %>
+
+<!--
+/**
+ * User: Chris Mills (millsy at jboss.com)
+ * Date: 27-Feb-2006
+ * Time: 22:02:11
+ */
+-->
+<portlet:defineObjects/>
+
+<%
+	Contact contact = (Contact) request.getAttribute("contact");
+%>
+
+<form action="<portlet:actionURL/>" method="POST">
+	<input type="hidden" name="key" value="<%= contact.getKey() %>"/>
+    <table>
+        <tr>
+            <td>Given Name</td>
+            <td><%= contact.getGivenName() != null ? contact.getGivenName() : "" %></td>
+        </tr>
+        <tr>
+            <td>Family Name</td>
+            <td><%= contact.getFamilyName() != null ? contact.getFamilyName() : "" %></td>
+        </tr>
+        <tr>
+            <td>Telephone</td>
+            <td><%= contact.getTelephone() != null ? contact.getTelephone() : "" %></td>
+        </tr>
+        <tr>
+            <td>Mobile</td>
+            <td><%= contact.getMobile() != null ? contact.getMobile() : "" %></td>
+        </tr>
+        <tr>
+            <td>Email</td>
+            <td><%= contact.getEmail() != null ? contact.getEmail() : "" %>"</td>
+        </tr>
+        <tr>
+            <td><input type="submit" name="op" value="Delete Contact"/></td>
+            <td><input type="submit" name="op" value="Cancel"/></td>
+        </tr>
+    </table>
+</form>
+

Added: portlets/src/collaborate/ContactPortlet/src/resources/contact-war_24/WEB-INF/contacts/domain.hbm.xml
===================================================================
--- portlets/src/collaborate/ContactPortlet/src/resources/contact-war_24/WEB-INF/contacts/domain.hbm.xml	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/collaborate/ContactPortlet/src/resources/contact-war_24/WEB-INF/contacts/domain.hbm.xml	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,61 @@
+<?xml version="1.0"?>
+<!DOCTYPE hibernate-mapping PUBLIC
+   "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
+   "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
+<hibernate-mapping>
+   <class
+      name="org.jboss.portlet.contacts.Contact"
+      table="jbp_contacts">
+      <cache usage="read-write"/>
+      <id
+         name="key"
+         column="jbp_uid"
+         type="java.lang.Long">
+         <generator class="native">
+            <param name="sequence">contacts_seq</param>
+         </generator>
+      </id>
+      <property
+         name="userName"
+         type="java.lang.String"
+         update="false"
+         insert="true"
+         column="jbp_uname"
+         unique="false"/>
+      <property
+         name="givenName"
+         type="java.lang.String"
+         update="true"
+         insert="true"
+         column="jbp_givenname"
+         unique="false"/>
+       <property
+          name="familyName"
+          type="java.lang.String"
+          update="true"
+          insert="true"
+          column="jbp_familyname"
+          unique="false"/>
+       <property
+          name="telephone"
+          type="java.lang.String"
+          update="true"
+          insert="true"
+          column="jbp_telephone"
+          unique="false"/>
+       <property
+          name="mobile"
+          type="java.lang.String"
+          update="true"
+          insert="true"
+          column="jbp_mobile"
+          unique="false"/>
+	   <property
+          name="email"
+          type="java.lang.String"
+          update="true"
+          insert="true"
+          column="jbp_email"
+          unique="false"/>
+   </class>
+</hibernate-mapping>
\ No newline at end of file

Added: portlets/src/collaborate/ContactPortlet/src/resources/contact-war_24/WEB-INF/contacts/edit.jsp
===================================================================
--- portlets/src/collaborate/ContactPortlet/src/resources/contact-war_24/WEB-INF/contacts/edit.jsp	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/collaborate/ContactPortlet/src/resources/contact-war_24/WEB-INF/contacts/edit.jsp	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,46 @@
+<%@ page import="org.jboss.portlet.contacts.Contact"%>
+<%@ page language="java" extends="org.jboss.portal.core.servlet.jsp.PortalJsp" %>
+<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet" %>
+
+<!--
+/**
+ * User: Chris Mills (millsy at jboss.com)
+ * Date: 27-Feb-2006
+ * Time: 22:02:11
+ */
+-->
+<portlet:defineObjects/>
+
+<%
+	Contact contact = (Contact) request.getAttribute("contact");
+%>
+
+<form action="<portlet:actionURL/>" method="POST">
+	<input type="hidden" name="key" value="<%= contact.getKey() %>"/>
+    <table>
+        <tr>
+            <td>Given Name</td>
+            <td><input type="text" name="givenName" value="<%= contact.getGivenName() != null ? contact.getGivenName() : "" %>"/></td>
+        </tr>
+        <tr>
+            <td>Family Name</td>
+            <td><input type="text" name="familyName" value="<%= contact.getFamilyName() != null ? contact.getFamilyName() : "" %>"/></td>
+        </tr>
+        <tr>
+            <td>Telephone</td>
+            <td><input type="text" name="telephone" value="<%= contact.getTelephone() != null ? contact.getTelephone() : "" %>"/></td>
+        </tr>
+        <tr>
+            <td>Mobile</td>
+            <td><input type="text" name="mobile" value="<%= contact.getMobile() != null ? contact.getMobile() : "" %>"/></td>
+        </tr>
+        <tr>
+            <td>Email</td>
+            <td><input type="text" name="email" value="<%= contact.getEmail() != null ? contact.getEmail() : "" %>"/></td>
+        </tr>
+        <tr>
+            <td><input type="submit" name="op" value="Update Contact"/></td>
+            <td><input type="submit" name="op" value="Cancel"/></td>
+        </tr>
+    </table>
+</form>

Added: portlets/src/collaborate/ContactPortlet/src/resources/contact-war_24/WEB-INF/contacts/hibernate.cfg.xml
===================================================================
--- portlets/src/collaborate/ContactPortlet/src/resources/contact-war_24/WEB-INF/contacts/hibernate.cfg.xml	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/collaborate/ContactPortlet/src/resources/contact-war_24/WEB-INF/contacts/hibernate.cfg.xml	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,19 @@
+<?xml version='1.0' encoding='utf-8'?>
+<!DOCTYPE hibernate-configuration PUBLIC
+    "-//Hibernate/Hibernate Configuration DTD//EN"
+    "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
+<hibernate-configuration>
+   <session-factory>
+      <property name="connection.datasource">java:PortalDS</property>
+      <property name="show_sql">false</property>
+      <property name="cache.use_second_level_cache">true</property>
+      <property name="cache.use_query_cache">true</property>
+	  
+	  <property name="hibernate.hbm2ddl.auto">update</property>
+
+      <property name="cache.provider_class">org.hibernate.cache.EhCacheProvider</property>
+
+      <!-- Mapping files -->
+      <mapping resource="WEB-INF/contacts/domain.hbm.xml"/>
+   </session-factory>
+</hibernate-configuration>
\ No newline at end of file

Added: portlets/src/collaborate/ContactPortlet/src/resources/contact-war_24/WEB-INF/contacts/list.jsp
===================================================================
--- portlets/src/collaborate/ContactPortlet/src/resources/contact-war_24/WEB-INF/contacts/list.jsp	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/collaborate/ContactPortlet/src/resources/contact-war_24/WEB-INF/contacts/list.jsp	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,72 @@
+<%@ page import="org.jboss.portlet.contacts.Contact" %>
+<%@ page import="java.util.List" %>
+<%@ page language="java" extends="org.jboss.portal.core.servlet.jsp.PortalJsp" %>
+<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet" %>
+
+<!--
+/**
+* User: Chris Mills (millsy at jboss.com)
+* Date: 27-Feb-2006
+* Time: 22:02:11
+*/
+-->
+<portlet:defineObjects/>
+
+<table width="100%">
+   <tr class="portlet-table-body">
+      <form action="<portlet:renderURL/>" method="POST">
+         <td colspan="2">Find contacts: </td>
+         <td colspan="2"><input type="text" name="familyName"/></td>
+         <td colspan="2"><input type="submit" name="op" value="Search"/></td>
+      </form>
+   </tr>
+   <%
+      List contacts = (List) request.getAttribute("contacts");
+      if(contacts.size() > 0)
+      {
+   %>
+   <tr class="portlet-section-header">
+      <td>Given Name</td>
+      <td>Family Name</td>
+      <td>Telephone</td>
+      <td>Mobile</td>
+      <td>Email</td>
+      <td colspan="3">Options</td>
+   </tr>
+   <%
+      for(int i = 0; i < contacts.size(); i++)
+      {
+         Contact contact = (Contact) contacts.get(i);
+   %>
+   <tr class="portlet-table-body">
+      <td><%= contact.getGivenName() %></td>
+      <td><%= contact.getFamilyName() %></td>
+      <td><a href="callto:<%= contact.getTelephone() %>"><%= contact.getTelephone() %></a></td>
+      <td><a href="callto:<%= contact.getMobile() %>"><%= contact.getMobile() %></a></td>
+      <td><a href="mailto:<%= contact.getEmail() %>"><%= contact.getEmail() %></a></td>
+      <td><a
+            href="<portlet:renderURL><portlet:param name="op" value="edit"/><portlet:param name="key" value="<%= contact.getKey().toString() %>"/></portlet:renderURL>">Edit</a>
+      </td>
+      <td><a
+            href="<portlet:renderURL><portlet:param name="op" value="delete"/><portlet:param name="key" value="<%= contact.getKey().toString() %>"/></portlet:renderURL>">Delete</a>
+      </td>
+      <td><a target="_new"
+             href="<portlet:actionURL><portlet:param name="op" value="vcard"/><portlet:param name="key" value="<%= contact.getKey().toString() %>"/></portlet:actionURL>">VCard</a>
+      </td>
+   </tr>
+   <%
+      }
+   }
+   else
+   {
+   %>
+   <tr>
+      <td colspan="6" align="center">No contacts</td>
+   </tr>
+   <%
+      }
+   %>
+</table>
+<center><a href="<portlet:renderURL><portlet:param name="op" value="shownew"/></portlet:renderURL>">Add new contact</a>
+</center>
+

Added: portlets/src/collaborate/ContactPortlet/src/resources/contact-war_24/WEB-INF/contacts-object.xml
===================================================================
--- portlets/src/collaborate/ContactPortlet/src/resources/contact-war_24/WEB-INF/contacts-object.xml	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/collaborate/ContactPortlet/src/resources/contact-war_24/WEB-INF/contacts-object.xml	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<deployments>
+   <deployment>
+      <if-exists>overwrite</if-exists>
+      <parent-ref>default</parent-ref>
+      <page>
+         <page-name>Contacts</page-name>
+         <window>
+            <window-name>ContactsPortletWindow</window-name>
+            <instance-ref>ContactsPortletInstance</instance-ref>
+            <region>center</region>
+            <height>0</height>
+         </window>
+      </page>
+   </deployment>
+</deployments>
\ No newline at end of file

Added: portlets/src/collaborate/ContactPortlet/src/resources/contact-war_24/WEB-INF/jboss-app.xml
===================================================================
--- portlets/src/collaborate/ContactPortlet/src/resources/contact-war_24/WEB-INF/jboss-app.xml	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/collaborate/ContactPortlet/src/resources/contact-war_24/WEB-INF/jboss-app.xml	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,3 @@
+<jboss-app>
+    <app-name>contactsportlet</app-name>
+</jboss-app>
\ No newline at end of file

Added: portlets/src/collaborate/ContactPortlet/src/resources/contact-war_24/WEB-INF/jboss-web.xml
===================================================================
--- portlets/src/collaborate/ContactPortlet/src/resources/contact-war_24/WEB-INF/jboss-web.xml	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/collaborate/ContactPortlet/src/resources/contact-war_24/WEB-INF/jboss-web.xml	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,3 @@
+<?xml version="1.0"?>
+<jboss-web>
+</jboss-web>

Added: portlets/src/collaborate/ContactPortlet/src/resources/contact-war_24/WEB-INF/portlet-instances.xml
===================================================================
--- portlets/src/collaborate/ContactPortlet/src/resources/contact-war_24/WEB-INF/portlet-instances.xml	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/collaborate/ContactPortlet/src/resources/contact-war_24/WEB-INF/portlet-instances.xml	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,10 @@
+<?xml version="1.0" standalone="yes"?>
+<deployments>
+   <deployment>
+      <if-exists>overwrite</if-exists>
+      <instance>
+         <instance-id>ContactsPortletInstance</instance-id>
+         <portlet-ref>ContactsPortlet</portlet-ref>
+      </instance>
+   </deployment>
+</deployments>
\ No newline at end of file

Added: portlets/src/collaborate/ContactPortlet/src/resources/contact-war_24/WEB-INF/portlet.xml
===================================================================
--- portlets/src/collaborate/ContactPortlet/src/resources/contact-war_24/WEB-INF/portlet.xml	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/collaborate/ContactPortlet/src/resources/contact-war_24/WEB-INF/portlet.xml	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
+             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+             xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd /opt/SUNWps/dtd/portlet.xsd"
+             version="1.0">
+   <portlet>
+      <portlet-name>ContactsPortlet</portlet-name>
+      <portlet-class>org.jboss.portlet.contacts.ContactsPortlet</portlet-class>
+      <supports>
+         <mime-type>text/html</mime-type>
+         <portlet-mode>VIEW</portlet-mode>
+      </supports>
+      <portlet-info>
+         <title>Address Book</title>
+      </portlet-info>
+   </portlet>
+</portlet-app>

Added: portlets/src/collaborate/ContactPortlet/src/resources/contact-war_24/WEB-INF/web.xml
===================================================================
--- portlets/src/collaborate/ContactPortlet/src/resources/contact-war_24/WEB-INF/web.xml	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/collaborate/ContactPortlet/src/resources/contact-war_24/WEB-INF/web.xml	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,6 @@
+<?xml version="1.0"?>
+<!DOCTYPE web-app PUBLIC
+   "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
+   "http://java.sun.com/dtd/web-app_2_3.dtd">
+<web-app>
+</web-app>

Added: portlets/src/common_libs/portlet-api-lib.jar
===================================================================
(Binary files differ)


Property changes on: portlets/src/common_libs/portlet-api-lib.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream


Property changes on: portlets/src/miscellaneous/CalcPortlet
___________________________________________________________________
Name: svn:ignore
   + output


Added: portlets/src/miscellaneous/CalcPortlet/LICENSES.txt
===================================================================
--- portlets/src/miscellaneous/CalcPortlet/LICENSES.txt	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/CalcPortlet/LICENSES.txt	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1 @@
+LGPL: explode.jar, portal-common.jar, portlet-api.jar

Added: portlets/src/miscellaneous/CalcPortlet/README.txt
===================================================================
--- portlets/src/miscellaneous/CalcPortlet/README.txt	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/CalcPortlet/README.txt	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,13 @@
+This portlet works with JBoss Portal 2.4+. It allows for a ui-based calculator. This software is distributed under the LGPL, unless otherwise noted in the LICENSES.txt.
+
+For JBoss Portal 2.2:
+- To build the war file, use ant to execute the build.xml at the root of this bundle, ie.  "ant deploy22"
+- To deploy this portlet, simply copy the calcportlet.war file to your /deploy directory where JBoss Portal resides.
+
+For JBoss Portal 2.4:
+- To build the war file, use ant to execute the build.xml at the root of this bundle, ie.  "ant deploy24"
+- To deploy this portlet, simply copy the calcportlet.war file to your /deploy directory where JBoss Portal resides.
+
+For other Portal servers:
+- To build the war file, use ant to execute the build.xml at the root of this bundle, ie.  "ant deploy"
+- You will then need to add any proprietary descriptors your portal server vendor recommends and deploy.

Added: portlets/src/miscellaneous/CalcPortlet/build.xml
===================================================================
--- portlets/src/miscellaneous/CalcPortlet/build.xml	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/CalcPortlet/build.xml	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,111 @@
+<project name="JBoss Calculator Portlet"
+         default="deploy24"
+         basedir=".">
+
+   <property name="app.name" value="flash"/>
+
+   <property name="src.dir" value="${basedir}/src"/>
+
+   <property name="lib.dir" value="${basedir}/lib"/>
+
+   <property name="build.dir" value="${basedir}/output"/>
+
+   <property name="build.lib" value="${build.dir}/lib"/>
+
+   <property name="build.resources" value="${src.dir}/resources"/>
+
+   <property name="build.etc" value="${src.dir}/etc"/>
+
+   <property name="classes.dir" value="${build.dir}/classes"/>
+
+   <property name="dist.dir" value="${src.dir}/resources"/>
+
+   <property name="libs.api" value="${lib.dir}/portlet-api-lib.jar"/>
+
+   <property name="libs.ant"
+             value="${lib.dir}/explode.jar;${lib.dir}/portal-common-lib.jar"/>
+
+   <property name="libs" value="${libs.api};${libs.ant}"/>
+
+   <available property="clover.available" classname="org.apache.tools.ant.taskdefs.CloverCompilerAdapter"/>
+
+   <target name="clover-yes" depends="prepare" if="clover.available">
+      <property name="compiler" value="org.apache.tools.ant.taskdefs.CloverCompilerAdapter"/>
+   </target>
+
+   <target name="clover-no" depends="prepare" unless="clover.available">
+      <property name="compiler" value="modern"/>
+   </target>
+
+   <target name="prepare">
+      <mkdir dir="${classes.dir}"/>
+      <mkdir dir="${build.lib}"/>
+      <mkdir dir="${build.lib}/exploded"/>
+      <mkdir dir="${build.resources}/calcportlet-war_22/WEB-INF/classes"/>
+      <mkdir dir="${build.resources}/calcportlet-war_24/WEB-INF/classes"/>
+   </target>
+
+   <target name="clean">
+      <delete dir="${build.dir}"/>
+      <delete dir="${build.resources}/calcportlet-war_22/WEB-INF/classes"/>
+      <delete dir="${build.resources}/calcportlet-war_24/WEB-INF/classes"/>
+   </target>
+
+   <target name="deploy24" depends="clover-yes, clover-no">
+      <javac srcdir="${src.dir}"
+             destdir="${classes.dir}"
+             classpath="${libs}"
+             debug="off"
+             optimize="on"
+             deprecation="on"
+             compiler="${compiler}">
+         <include name="main/org/jboss/portlet/**/*.java"/>
+      </javac>
+
+      <copydir src="${classes.dir}" dest="${build.resources}/calcportlet-war_24/WEB-INF/classes">
+      </copydir>
+
+      <!-- calcportlet.war -->
+      <jar jarfile="calcportlet.war">
+         <manifest>
+            <attribute name="Manifest-Version" value="1.0"/>
+         </manifest>
+         <fileset dir="${build.resources}/calcportlet-war_24"/>
+      </jar>
+   </target>
+
+   <target name="deploy22" depends="clover-yes, clover-no">
+      <javac srcdir="${src.dir}"
+             destdir="${classes.dir}"
+             classpath="${libs}"
+             debug="off"
+             optimize="on"
+             deprecation="on"
+             compiler="${compiler}">
+         <include name="main/org/jboss/portlet/**/*.java"/>
+      </javac>
+
+      <copydir src="${classes.dir}" dest="${build.resources}/calcportlet-war_22/WEB-INF/classes">
+      </copydir>
+
+      <!-- calcportlet.war -->
+      <jar jarfile="calcportlet.war">
+         <manifest>
+            <attribute name="Manifest-Version" value="1.0"/>
+         </manifest>
+         <fileset dir="${build.resources}/calcportlet-war_22"/>
+      </jar>
+   </target>
+
+   <target name="explode" depends="deploy24">
+      <taskdef classname="org.jboss.nukes.common.ant.Explode"
+               name="explode"
+               classpath="${libs}"/>
+      <explode
+            file="calcportlet.war"
+            todir="${build.lib}/exploded"
+            name="calcportlet.war"/>
+   </target>
+   <target name="all" depends="deploy24"/>
+</project>
+

Added: portlets/src/miscellaneous/CalcPortlet/calcportlet.war
===================================================================
(Binary files differ)


Property changes on: portlets/src/miscellaneous/CalcPortlet/calcportlet.war
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: portlets/src/miscellaneous/CalcPortlet/lib/explode.jar
===================================================================
(Binary files differ)


Property changes on: portlets/src/miscellaneous/CalcPortlet/lib/explode.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: portlets/src/miscellaneous/CalcPortlet/lib/portal-common-lib.jar
===================================================================
(Binary files differ)


Property changes on: portlets/src/miscellaneous/CalcPortlet/lib/portal-common-lib.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: portlets/src/miscellaneous/CalcPortlet/lib/portlet-api-lib.jar
===================================================================
(Binary files differ)


Property changes on: portlets/src/miscellaneous/CalcPortlet/lib/portlet-api-lib.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: portlets/src/miscellaneous/CalcPortlet/src/main/org/jboss/portlet/calc/CalcPortlet.java
===================================================================
--- portlets/src/miscellaneous/CalcPortlet/src/main/org/jboss/portlet/calc/CalcPortlet.java	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/CalcPortlet/src/main/org/jboss/portlet/calc/CalcPortlet.java	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,49 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.portlet.calc;
+
+import javax.portlet.GenericPortlet;
+import javax.portlet.RenderRequest;
+import javax.portlet.RenderResponse;
+
+/**
+ * User: Chris Mills (millsy at jboss.com)
+ * Date: 03-Mar-2006
+ * Time: 19:28:04
+ */
+public class CalcPortlet extends GenericPortlet
+{
+   public void doView(RenderRequest request, RenderResponse response)
+   {
+      try
+      {
+         response.setContentType("text/html");
+         javax.portlet.PortletRequestDispatcher prd = getPortletContext().getRequestDispatcher("/WEB-INF/calc/calc.jsp");
+         prd.include(request, response);
+      }
+      catch(Exception e)
+      {
+         e.printStackTrace();
+      }
+   }
+
+}


Property changes on: portlets/src/miscellaneous/CalcPortlet/src/resources/calcportlet-war_22/WEB-INF
___________________________________________________________________
Name: svn:ignore
   + classes


Added: portlets/src/miscellaneous/CalcPortlet/src/resources/calcportlet-war_22/WEB-INF/calc/calc.jsp
===================================================================
--- portlets/src/miscellaneous/CalcPortlet/src/resources/calcportlet-war_22/WEB-INF/calc/calc.jsp	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/CalcPortlet/src/resources/calcportlet-war_22/WEB-INF/calc/calc.jsp	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,112 @@
+<!--
+  User: Chris Mills (millsy at jboss.com)
+  Date: 03-Mar-2006
+  Time: 22:38:07
+-->
+<html>
+<head>
+    <style type="text/css">
+        .result-field{
+            font-family: monospace;
+            color: black;
+            text-align: right;
+            background-color: white;
+        }
+
+        .calc-button{
+            width: 30px;
+            height: 18px;
+        }
+    </style>
+    <script language-="JavaScript">
+        var op = '';
+        var firstValue = '';
+        var clearField = false;
+
+        function numberPushed(number) {
+            if ((clearField == true) || (document.calc.resultField.value == '0' && number != '.')) {
+                document.calc.resultField.value = number;
+                clearField = false;
+            } else {
+                document.calc.resultField.value = document.calc.resultField.value + number;
+            }
+        }
+
+        function operatorPushed(operator) {
+            if (firstValue != '') {
+                equals();
+            }
+            firstValue = document.calc.resultField.value;
+            op = operator;
+            clearField = true;
+        }
+
+        function equals() {
+            if (op == '*') {
+                document.calc.resultField.value = firstValue * document.calc.resultField.value;
+            }
+            if (op == '/') {
+                document.calc.resultField.value = firstValue / document.calc.resultField.value;
+            }
+            if (op == '-') {
+                document.calc.resultField.value = firstValue - document.calc.resultField.value;
+            }
+            if (op == '+') {
+                document.calc.resultField.value = parseFloat(firstValue) + parseFloat(document.calc.resultField.value);
+            }
+            clearField = true;
+            firstValue = '';
+        }
+
+        function empty() {
+            op = '';
+            firstValue = '';
+            document.calc.resultField.value = '0';
+        }
+
+    </script>
+</head>
+
+<body>
+<form name="calc">
+    <table width="140px" align="center">
+        <tr>
+            <td>
+                <table border="1">
+                    <tr>
+                        <td colspan="4"><input readonly="true" type="text" value="0" name="resultField" class="result-field"/></td>
+                    </tr>
+                    <tr>
+                        <td><input type="button" value="7" class="calc-button" onclick="numberPushed('7');"/></td>
+                        <td><input type="button" value="8" class="calc-button" onclick="numberPushed('8');"/></td>
+                        <td><input type="button" value="9" class="calc-button" onclick="numberPushed('9');"/></td>
+                        <td><input type="button" value="*" class="calc-button" onclick="operatorPushed('*');"/></td>
+                    </tr>
+                    <tr>
+                        <td><input type="button" value="4" class="calc-button" onclick="numberPushed('4');"/></td>
+                        <td><input type="button" value="5" class="calc-button" onclick="numberPushed('5');"/></td>
+                        <td><input type="button" value="6" class="calc-button" onclick="numberPushed('6');"/></td>
+                        <td><input type="button" value="/" class="calc-button" onclick="operatorPushed('/');"/></td>
+                    </tr>
+                    <tr>
+                        <td><input type="button" value="1" class="calc-button" onclick="numberPushed('1');"/></td>
+                        <td><input type="button" value="2" class="calc-button" onclick="numberPushed('2');"/></td>
+                        <td><input type="button" value="3" class="calc-button" onclick="numberPushed('3');"/></td>
+                        <td><input type="button" value="+" class="calc-button" onclick="operatorPushed('+');"/></td>
+                    </tr>
+                    <tr>
+                        <td><input type="button" value="." class="calc-button" onclick="numberPushed('.');"/></td>
+                        <td><input type="button" value="0" class="calc-button" onclick="numberPushed('0');"/></td>
+                        <td><input type="button" value="=" class="calc-button" onclick="equals();"/></td>
+                        <td><input type="button" value="-" class="calc-button" onclick="operatorPushed('-');"/></td>
+                    </tr>
+                    <tr>
+                        <td><input type="button" value="C" class="calc-button" onclick="empty();"/></td>
+                    </tr>
+                </table>
+            </td>
+        </tr>
+    </table>
+</form>
+</body>
+</html>

Added: portlets/src/miscellaneous/CalcPortlet/src/resources/calcportlet-war_22/WEB-INF/calc-object.xml
===================================================================
--- portlets/src/miscellaneous/CalcPortlet/src/resources/calcportlet-war_22/WEB-INF/calc-object.xml	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/CalcPortlet/src/resources/calcportlet-war_22/WEB-INF/calc-object.xml	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<deployments>
+   <deployment>
+      <if-exists>overwrite</if-exists>
+      <parent-ref>default</parent-ref>
+      <page>
+         <page-name>Calculator</page-name>
+         <window>
+            <window-name>CalculatorPortletWindow</window-name>
+            <instance-ref>CalculatorPortletInstance</instance-ref>
+            <region>center</region>
+            <height>0</height>
+         </window>
+      </page>
+   </deployment>
+   <deployment>
+      <if-exists>overwrite</if-exists>
+      <instance>
+         <instance-name>CalculatorPortletInstance</instance-name>
+         <component-ref>calcportlet.CalcPortlet</component-ref>
+      </instance>
+   </deployment>
+</deployments>
\ No newline at end of file

Added: portlets/src/miscellaneous/CalcPortlet/src/resources/calcportlet-war_22/WEB-INF/jboss-app.xml
===================================================================
--- portlets/src/miscellaneous/CalcPortlet/src/resources/calcportlet-war_22/WEB-INF/jboss-app.xml	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/CalcPortlet/src/resources/calcportlet-war_22/WEB-INF/jboss-app.xml	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,3 @@
+<jboss-app>
+    <app-name>calcportlet</app-name>
+</jboss-app>
\ No newline at end of file

Added: portlets/src/miscellaneous/CalcPortlet/src/resources/calcportlet-war_22/WEB-INF/jboss-web.xml
===================================================================
--- portlets/src/miscellaneous/CalcPortlet/src/resources/calcportlet-war_22/WEB-INF/jboss-web.xml	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/CalcPortlet/src/resources/calcportlet-war_22/WEB-INF/jboss-web.xml	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,3 @@
+<?xml version="1.0"?>
+<jboss-web>
+</jboss-web>

Added: portlets/src/miscellaneous/CalcPortlet/src/resources/calcportlet-war_22/WEB-INF/portlet.xml
===================================================================
--- portlets/src/miscellaneous/CalcPortlet/src/resources/calcportlet-war_22/WEB-INF/portlet.xml	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/CalcPortlet/src/resources/calcportlet-war_22/WEB-INF/portlet.xml	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
+             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+             xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd /opt/SUNWps/dtd/portlet.xsd"
+             version="1.0">
+   <portlet>
+      <portlet-name>CalcPortlet</portlet-name>
+      <portlet-class>org.jboss.portlet.calc.CalcPortlet</portlet-class>
+      <supports>
+         <mime-type>text/html</mime-type>
+         <portlet-mode>VIEW</portlet-mode>
+      </supports>
+      <portlet-info>
+         <title>Calculator</title>
+      </portlet-info>
+   </portlet>
+</portlet-app>

Added: portlets/src/miscellaneous/CalcPortlet/src/resources/calcportlet-war_22/WEB-INF/web.xml
===================================================================
--- portlets/src/miscellaneous/CalcPortlet/src/resources/calcportlet-war_22/WEB-INF/web.xml	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/CalcPortlet/src/resources/calcportlet-war_22/WEB-INF/web.xml	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,6 @@
+<?xml version="1.0"?>
+<!DOCTYPE web-app PUBLIC
+   "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
+   "http://java.sun.com/dtd/web-app_2_3.dtd">
+<web-app>
+</web-app>


Property changes on: portlets/src/miscellaneous/CalcPortlet/src/resources/calcportlet-war_24/WEB-INF
___________________________________________________________________
Name: svn:ignore
   + classes


Added: portlets/src/miscellaneous/CalcPortlet/src/resources/calcportlet-war_24/WEB-INF/calc/calc.jsp
===================================================================
--- portlets/src/miscellaneous/CalcPortlet/src/resources/calcportlet-war_24/WEB-INF/calc/calc.jsp	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/CalcPortlet/src/resources/calcportlet-war_24/WEB-INF/calc/calc.jsp	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,112 @@
+<!--
+  User: Chris Mills (millsy at jboss.com)
+  Date: 03-Mar-2006
+  Time: 22:38:07
+-->
+<html>
+<head>
+    <style type="text/css">
+        .result-field{
+            font-family: monospace;
+            color: black;
+            text-align: right;
+            background-color: white;
+        }
+
+        .calc-button{
+            width: 30px;
+            height: 18px;
+        }
+    </style>
+    <script language-="JavaScript">
+        var op = '';
+        var firstValue = '';
+        var clearField = false;
+
+        function numberPushed(number) {
+            if ((clearField == true) || (document.calc.resultField.value == '0' && number != '.')) {
+                document.calc.resultField.value = number;
+                clearField = false;
+            } else {
+                document.calc.resultField.value = document.calc.resultField.value + number;
+            }
+        }
+
+        function operatorPushed(operator) {
+            if (firstValue != '') {
+                equals();
+            }
+            firstValue = document.calc.resultField.value;
+            op = operator;
+            clearField = true;
+        }
+
+        function equals() {
+            if (op == '*') {
+                document.calc.resultField.value = firstValue * document.calc.resultField.value;
+            }
+            if (op == '/') {
+                document.calc.resultField.value = firstValue / document.calc.resultField.value;
+            }
+            if (op == '-') {
+                document.calc.resultField.value = firstValue - document.calc.resultField.value;
+            }
+            if (op == '+') {
+                document.calc.resultField.value = parseFloat(firstValue) + parseFloat(document.calc.resultField.value);
+            }
+            clearField = true;
+            firstValue = '';
+        }
+
+        function empty() {
+            op = '';
+            firstValue = '';
+            document.calc.resultField.value = '0';
+        }
+
+    </script>
+</head>
+
+<body>
+<form name="calc">
+    <table width="140px" align="center">
+        <tr>
+            <td>
+                <table border="1">
+                    <tr>
+                        <td colspan="4"><input readonly="true" type="text" value="0" name="resultField" class="result-field"/></td>
+                    </tr>
+                    <tr>
+                        <td><input type="button" value="7" class="calc-button" onclick="numberPushed('7');"/></td>
+                        <td><input type="button" value="8" class="calc-button" onclick="numberPushed('8');"/></td>
+                        <td><input type="button" value="9" class="calc-button" onclick="numberPushed('9');"/></td>
+                        <td><input type="button" value="*" class="calc-button" onclick="operatorPushed('*');"/></td>
+                    </tr>
+                    <tr>
+                        <td><input type="button" value="4" class="calc-button" onclick="numberPushed('4');"/></td>
+                        <td><input type="button" value="5" class="calc-button" onclick="numberPushed('5');"/></td>
+                        <td><input type="button" value="6" class="calc-button" onclick="numberPushed('6');"/></td>
+                        <td><input type="button" value="/" class="calc-button" onclick="operatorPushed('/');"/></td>
+                    </tr>
+                    <tr>
+                        <td><input type="button" value="1" class="calc-button" onclick="numberPushed('1');"/></td>
+                        <td><input type="button" value="2" class="calc-button" onclick="numberPushed('2');"/></td>
+                        <td><input type="button" value="3" class="calc-button" onclick="numberPushed('3');"/></td>
+                        <td><input type="button" value="+" class="calc-button" onclick="operatorPushed('+');"/></td>
+                    </tr>
+                    <tr>
+                        <td><input type="button" value="." class="calc-button" onclick="numberPushed('.');"/></td>
+                        <td><input type="button" value="0" class="calc-button" onclick="numberPushed('0');"/></td>
+                        <td><input type="button" value="=" class="calc-button" onclick="equals();"/></td>
+                        <td><input type="button" value="-" class="calc-button" onclick="operatorPushed('-');"/></td>
+                    </tr>
+                    <tr>
+                        <td><input type="button" value="C" class="calc-button" onclick="empty();"/></td>
+                    </tr>
+                </table>
+            </td>
+        </tr>
+    </table>
+</form>
+</body>
+</html>

Added: portlets/src/miscellaneous/CalcPortlet/src/resources/calcportlet-war_24/WEB-INF/calc-object.xml
===================================================================
--- portlets/src/miscellaneous/CalcPortlet/src/resources/calcportlet-war_24/WEB-INF/calc-object.xml	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/CalcPortlet/src/resources/calcportlet-war_24/WEB-INF/calc-object.xml	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<deployments>
+   <deployment>
+      <if-exists>overwrite</if-exists>
+      <parent-ref>default</parent-ref>
+      <page>
+         <page-name>Calculator</page-name>
+         <window>
+            <window-name>CalculatorPortletWindow</window-name>
+            <instance-ref>CalculatorPortletInstance</instance-ref>
+            <region>center</region>
+            <height>0</height>
+         </window>
+      </page>
+   </deployment>
+</deployments>
\ No newline at end of file

Added: portlets/src/miscellaneous/CalcPortlet/src/resources/calcportlet-war_24/WEB-INF/jboss-app.xml
===================================================================
--- portlets/src/miscellaneous/CalcPortlet/src/resources/calcportlet-war_24/WEB-INF/jboss-app.xml	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/CalcPortlet/src/resources/calcportlet-war_24/WEB-INF/jboss-app.xml	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,3 @@
+<jboss-app>
+    <app-name>calcportlet</app-name>
+</jboss-app>
\ No newline at end of file

Added: portlets/src/miscellaneous/CalcPortlet/src/resources/calcportlet-war_24/WEB-INF/jboss-web.xml
===================================================================
--- portlets/src/miscellaneous/CalcPortlet/src/resources/calcportlet-war_24/WEB-INF/jboss-web.xml	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/CalcPortlet/src/resources/calcportlet-war_24/WEB-INF/jboss-web.xml	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,3 @@
+<?xml version="1.0"?>
+<jboss-web>
+</jboss-web>

Added: portlets/src/miscellaneous/CalcPortlet/src/resources/calcportlet-war_24/WEB-INF/portlet-instances.xml
===================================================================
--- portlets/src/miscellaneous/CalcPortlet/src/resources/calcportlet-war_24/WEB-INF/portlet-instances.xml	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/CalcPortlet/src/resources/calcportlet-war_24/WEB-INF/portlet-instances.xml	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,9 @@
+<?xml version="1.0" standalone="yes"?>
+<deployments>
+   <deployment>
+      <instance>
+         <instance-id>CalculatorPortletInstance</instance-id>
+         <portlet-ref>CalcPortlet</portlet-ref>
+      </instance>
+   </deployment>
+</deployments>

Added: portlets/src/miscellaneous/CalcPortlet/src/resources/calcportlet-war_24/WEB-INF/portlet.xml
===================================================================
--- portlets/src/miscellaneous/CalcPortlet/src/resources/calcportlet-war_24/WEB-INF/portlet.xml	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/CalcPortlet/src/resources/calcportlet-war_24/WEB-INF/portlet.xml	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
+             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+             xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd /opt/SUNWps/dtd/portlet.xsd"
+             version="1.0">
+   <portlet>
+      <portlet-name>CalcPortlet</portlet-name>
+      <portlet-class>org.jboss.portlet.calc.CalcPortlet</portlet-class>
+      <supports>
+         <mime-type>text/html</mime-type>
+         <portlet-mode>VIEW</portlet-mode>
+      </supports>
+      <portlet-info>
+         <title>Calculator</title>
+      </portlet-info>
+   </portlet>
+</portlet-app>

Added: portlets/src/miscellaneous/CalcPortlet/src/resources/calcportlet-war_24/WEB-INF/web.xml
===================================================================
--- portlets/src/miscellaneous/CalcPortlet/src/resources/calcportlet-war_24/WEB-INF/web.xml	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/CalcPortlet/src/resources/calcportlet-war_24/WEB-INF/web.xml	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,6 @@
+<?xml version="1.0"?>
+<!DOCTYPE web-app PUBLIC
+   "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
+   "http://java.sun.com/dtd/web-app_2_3.dtd">
+<web-app>
+</web-app>


Property changes on: portlets/src/miscellaneous/FlashPortlet
___________________________________________________________________
Name: svn:ignore
   + output


Added: portlets/src/miscellaneous/FlashPortlet/LICENSES.txt
===================================================================
--- portlets/src/miscellaneous/FlashPortlet/LICENSES.txt	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/FlashPortlet/LICENSES.txt	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1 @@
+LGPL: explode.jar, portal-common.jar, portal-core-lib.jar, portlet-api.jar

Added: portlets/src/miscellaneous/FlashPortlet/README.txt
===================================================================
--- portlets/src/miscellaneous/FlashPortlet/README.txt	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/FlashPortlet/README.txt	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,15 @@
+This portlet is preconfigured to work with JBoss Portal 2.2+.
+It allows for a user-defined url pointing to a Flash (.swf) movie to be displayed and sized within a portlet window.
+This software is distributed under the LGPL, unless otherwise noted in the LICENSES.txt.
+
+For JBoss Portal 2.2:
+- To build the war file, use ant to execute the build.xml at the root of this bundle, ie.  "ant deploy22"
+- To deploy this portlet, simply copy the flash.war file to your /deploy directory where JBoss Portal resides.
+
+For JBoss Portal 2.4:
+- To build the war file, use ant to execute the build.xml at the root of this bundle, ie.  "ant deploy24"
+- To deploy this portlet, simply copy the flash.war file to your /deploy directory where JBoss Portal resides.
+
+For other Portal servers:
+- To build the war file, use ant to execute the build.xml at the root of this bundle, ie.  "ant deploy"
+- You will then need to add any proprietary descriptors your portal server vendor recommends and deploy.

Added: portlets/src/miscellaneous/FlashPortlet/build.xml
===================================================================
--- portlets/src/miscellaneous/FlashPortlet/build.xml	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/FlashPortlet/build.xml	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,111 @@
+<project name="JBoss Flash Portlet"
+         default="deploy24"
+         basedir=".">
+
+   <property name="app.name" value="flash"/>
+
+   <property name="src.dir" value="${basedir}/src"/>
+
+   <property name="lib.dir" value="${basedir}/lib"/>
+
+   <property name="build.dir" value="${basedir}/output"/>
+
+   <property name="build.lib" value="${build.dir}/lib"/>
+
+   <property name="build.resources" value="${src.dir}/resources"/>
+
+   <property name="build.etc" value="${src.dir}/etc"/>
+
+   <property name="classes.dir" value="${build.dir}/classes"/>
+
+   <property name="dist.dir" value="${src.dir}/resources"/>
+
+   <property name="libs.api" value="${lib.dir}/portlet-api-lib.jar"/>
+
+   <property name="libs.ant"
+             value="${lib.dir}/explode.jar;${lib.dir}/portal-common-lib.jar;${lib.dir}/portal-core-lib.jar"/>
+
+   <property name="libs" value="${libs.api};${libs.ant}"/>
+
+   <available property="clover.available" classname="org.apache.tools.ant.taskdefs.CloverCompilerAdapter"/>
+
+   <target name="clover-yes" depends="prepare" if="clover.available">
+      <property name="compiler" value="org.apache.tools.ant.taskdefs.CloverCompilerAdapter"/>
+   </target>
+
+   <target name="clover-no" depends="prepare" unless="clover.available">
+      <property name="compiler" value="modern"/>
+   </target>
+
+   <target name="prepare">
+      <mkdir dir="${classes.dir}"/>
+      <mkdir dir="${build.lib}"/>
+      <mkdir dir="${build.lib}/exploded"/>
+      <mkdir dir="${build.resources}/flash-war_24/WEB-INF/classes"/>
+      <mkdir dir="${build.resources}/flash-war_22/WEB-INF/classes"/>
+   </target>
+
+   <target name="clean">
+      <delete dir="${build.dir}"/>
+      <delete dir="${build.resources}/flash-war_24/WEB-INF/classes"/>
+      <delete dir="${build.resources}/flash-war_22/WEB-INF/classes"/>
+   </target>
+
+   <target name="deploy24" depends="clover-yes, clover-no">
+      <javac srcdir="${src.dir}"
+             destdir="${classes.dir}"
+             classpath="${libs}"
+             debug="off"
+             optimize="on"
+             deprecation="on"
+             compiler="${compiler}">
+         <include name="main/org/jboss/portlet/**/*.java"/>
+      </javac>
+
+      <copydir src="${classes.dir}" dest="${build.resources}/flash-war_24/WEB-INF/classes">
+      </copydir>
+
+      <!-- flash.war -->
+      <jar jarfile="flash.war">
+         <manifest>
+            <attribute name="Manifest-Version" value="1.0"/>
+         </manifest>
+         <fileset dir="${build.resources}/flash-war_24"/>
+      </jar>
+   </target>
+
+   <target name="deploy22" depends="clover-yes, clover-no">
+      <javac srcdir="${src.dir}"
+             destdir="${classes.dir}"
+             classpath="${libs}"
+             debug="off"
+             optimize="on"
+             deprecation="on"
+             compiler="${compiler}">
+         <include name="main/org/jboss/portlet/**/*.java"/>
+      </javac>
+
+      <copydir src="${classes.dir}" dest="${build.resources}/flash-war_22/WEB-INF/classes">
+      </copydir>
+
+      <!-- flash.war -->
+      <jar jarfile="flash.war">
+         <manifest>
+            <attribute name="Manifest-Version" value="1.0"/>
+         </manifest>
+         <fileset dir="${build.resources}/flash-war_22"/>
+      </jar>
+   </target>
+
+   <target name="explode" depends="deploy24">
+      <taskdef classname="org.jboss.nukes.common.ant.Explode"
+               name="explode"
+               classpath="${libs}"/>
+      <explode
+            file="flash.war"
+            todir="${build.lib}/exploded"
+            name="flash.war"/>
+   </target>
+   <target name="all" depends="deploy24"/>
+</project>
+

Added: portlets/src/miscellaneous/FlashPortlet/flash.war
===================================================================
(Binary files differ)


Property changes on: portlets/src/miscellaneous/FlashPortlet/flash.war
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: portlets/src/miscellaneous/FlashPortlet/lib/explode.jar
===================================================================
(Binary files differ)


Property changes on: portlets/src/miscellaneous/FlashPortlet/lib/explode.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: portlets/src/miscellaneous/FlashPortlet/lib/portal-common-lib.jar
===================================================================
(Binary files differ)


Property changes on: portlets/src/miscellaneous/FlashPortlet/lib/portal-common-lib.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: portlets/src/miscellaneous/FlashPortlet/lib/portlet-api-lib.jar
===================================================================
(Binary files differ)


Property changes on: portlets/src/miscellaneous/FlashPortlet/lib/portlet-api-lib.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: portlets/src/miscellaneous/FlashPortlet/src/main/org/jboss/portlet/flash/FlashPortlet.java
===================================================================
--- portlets/src/miscellaneous/FlashPortlet/src/main/org/jboss/portlet/flash/FlashPortlet.java	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/FlashPortlet/src/main/org/jboss/portlet/flash/FlashPortlet.java	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,110 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+
+package org.jboss.portlet.flash;
+
+import javax.portlet.ActionRequest;
+import javax.portlet.ActionResponse;
+import javax.portlet.GenericPortlet;
+import javax.portlet.PortletException;
+import javax.portlet.PortletMode;
+import javax.portlet.PortletPreferences;
+import javax.portlet.PortletRequestDispatcher;
+import javax.portlet.PortletSecurityException;
+import javax.portlet.RenderRequest;
+import javax.portlet.RenderResponse;
+import java.io.IOException;
+
+/**
+ * User: Chris Mills (millsy at jboss.com)
+ * Date: 07-Mar-2006
+ * Time: 21:14:06
+ */
+public class FlashPortlet extends GenericPortlet
+{
+   public void processAction(ActionRequest request, ActionResponse response) throws PortletException, PortletSecurityException, IOException
+   {
+      String op = request.getParameter("op");
+      StringBuffer message = new StringBuffer(1024);
+      if((op != null) && (op.trim().length() > 0))
+      {
+         if(op.equalsIgnoreCase("update"))
+         {
+            PortletPreferences prefs = request.getPreferences();
+            String url = request.getParameter("url");
+            String height = request.getParameter("height");
+            String width = request.getParameter("width");
+            prefs.setValue("flashurl", url);
+            prefs.setValue("flashheight", height);
+            prefs.setValue("flashwidth", width);
+            prefs.store();
+            response.setPortletMode(PortletMode.VIEW);
+            return;
+         }
+         else if(op.equalsIgnoreCase("cancel"))
+         {
+            response.setPortletMode(PortletMode.VIEW);
+            return;
+         }
+      }
+      response.setPortletMode(PortletMode.EDIT);
+   }
+
+   public void doView(RenderRequest request, RenderResponse response)
+   {
+      try
+      {
+         setRenderParameters(request);
+         response.setContentType("text/html");
+         PortletRequestDispatcher prd = getPortletContext().getRequestDispatcher("/WEB-INF/jsp/flash/flash.jsp");
+         prd.include(request, response);
+      }
+      catch(Exception e)
+      {
+         e.printStackTrace();
+      }
+   }
+
+   public void doEdit(RenderRequest request, RenderResponse response)
+   {
+      try
+      {
+         setRenderParameters(request);
+         response.setContentType("text/html");
+         PortletRequestDispatcher prd = getPortletContext().getRequestDispatcher("/WEB-INF/jsp/flash/edit.jsp");
+         prd.include(request, response);
+      }
+      catch(Exception e)
+      {
+         e.printStackTrace();
+      }
+   }
+
+   private void setRenderParameters(RenderRequest request)
+   {
+      PortletPreferences prefs = request.getPreferences();
+      request.setAttribute("flashurl", prefs.getValue("flashurl", "http://www.jboss.com/images/flash/next_now_movie.swf"));
+      request.setAttribute("flashheight", prefs.getValue("flashheight", "171"));
+      request.setAttribute("flashwidth", prefs.getValue("flashwidth", "493"));
+   }
+}
+


Property changes on: portlets/src/miscellaneous/FlashPortlet/src/resources/flash-war_22/WEB-INF
___________________________________________________________________
Name: svn:ignore
   + classes


Added: portlets/src/miscellaneous/FlashPortlet/src/resources/flash-war_22/WEB-INF/flash-objects.xml
===================================================================
--- portlets/src/miscellaneous/FlashPortlet/src/resources/flash-war_22/WEB-INF/flash-objects.xml	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/FlashPortlet/src/resources/flash-war_22/WEB-INF/flash-objects.xml	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<deployments>
+   <deployment>
+      <if-exists>overwrite</if-exists>
+      <parent-ref>default</parent-ref>
+      <page>
+         <page-name>Flash</page-name>
+         <window>
+            <window-name>FlashPortletWindow</window-name>
+            <instance-ref>FlashPortletInstance</instance-ref>
+            <region>center</region>
+            <height>0</height>
+         </window>
+      </page>
+   </deployment>
+   <deployment>
+      <if-exists>overwrite</if-exists>
+      <instance>
+         <instance-name>FlashPortletInstance</instance-name>
+         <component-ref>flashportlet.FlashPortlet</component-ref>
+      </instance>
+   </deployment>
+</deployments>
\ No newline at end of file

Added: portlets/src/miscellaneous/FlashPortlet/src/resources/flash-war_22/WEB-INF/jboss-app.xml
===================================================================
--- portlets/src/miscellaneous/FlashPortlet/src/resources/flash-war_22/WEB-INF/jboss-app.xml	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/FlashPortlet/src/resources/flash-war_22/WEB-INF/jboss-app.xml	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,3 @@
+<jboss-app>
+    <app-name>flashportlet</app-name>
+</jboss-app>
\ No newline at end of file

Added: portlets/src/miscellaneous/FlashPortlet/src/resources/flash-war_22/WEB-INF/jboss-web.xml
===================================================================
--- portlets/src/miscellaneous/FlashPortlet/src/resources/flash-war_22/WEB-INF/jboss-web.xml	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/FlashPortlet/src/resources/flash-war_22/WEB-INF/jboss-web.xml	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,3 @@
+<?xml version="1.0"?>
+<jboss-web>
+</jboss-web>

Added: portlets/src/miscellaneous/FlashPortlet/src/resources/flash-war_22/WEB-INF/jsp/flash/edit.jsp
===================================================================
--- portlets/src/miscellaneous/FlashPortlet/src/resources/flash-war_22/WEB-INF/jsp/flash/edit.jsp	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/FlashPortlet/src/resources/flash-war_22/WEB-INF/jsp/flash/edit.jsp	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,35 @@
+<%@ page language="java" extends="org.jboss.portal.core.servlet.jsp.PortalJsp" %>
+<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet" %>
+
+<!--
+/**
+ * User: Chris Mills (millsy at jboss.com)
+ * Date: 27-Feb-2006
+ * Time: 22:02:11
+ */
+-->
+<portlet:defineObjects/>
+
+<form method="post" action="<portlet:actionURL/>">
+	<table>
+        <tr class="portlet-msg-alert">
+            <td colspan="2"><%= request.getParameter("message") != null ?  request.getParameter("message") : ""%></td>
+        </tr>
+        <tr class="portlet-section-body">
+			<td>Source URL</td>
+			<td><input type="text" name="url" value="<%= request.getAttribute("flashurl") %>" size="50"/></td>
+		</tr>
+        <tr class="portlet-section-body">
+			<td>Height (px)</td>
+			<td><input type="text" name="height" value="<%= request.getAttribute("flashheight") %>"/></td>
+		</tr>
+        <tr class="portlet-section-body">
+			<td>Width (px)</td>
+			<td><input type="text" name="width" value="<%= request.getAttribute("flashwidth") %>"/></td>
+		</tr>
+        <tr class="portlet-section-body">
+			<td align="right"><input type="submit" name="op" value="Update"/></td>
+            <td align="left"><input type="submit" name="op" value="Cancel"/></td>
+        </tr>
+    </table>
+</form>

Added: portlets/src/miscellaneous/FlashPortlet/src/resources/flash-war_22/WEB-INF/jsp/flash/flash.jsp
===================================================================
--- portlets/src/miscellaneous/FlashPortlet/src/resources/flash-war_22/WEB-INF/jsp/flash/flash.jsp	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/FlashPortlet/src/resources/flash-war_22/WEB-INF/jsp/flash/flash.jsp	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,10 @@
+<%@ page language="java" extends="org.jboss.portal.core.servlet.jsp.PortalJsp" %>
+<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet" %>
+
+<center>
+    <object width="<%= request.getAttribute("flashwidth") %>" height="<%= request.getAttribute("flashheight") %>">
+        <param name="movie" value="<%= request.getAttribute("flashurl") %>"/>
+        <embed src="<%= request.getAttribute("flashurl") %>" width="<%= request.getAttribute("flashwidth") %>" height="<%= request.getAttribute("flashheight") %>"/>
+    </object>
+</center>
+

Added: portlets/src/miscellaneous/FlashPortlet/src/resources/flash-war_22/WEB-INF/portlet.xml
===================================================================
--- portlets/src/miscellaneous/FlashPortlet/src/resources/flash-war_22/WEB-INF/portlet.xml	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/FlashPortlet/src/resources/flash-war_22/WEB-INF/portlet.xml	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
+             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+             xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd /opt/SUNWps/dtd/portlet.xsd"
+             version="1.0">
+   <portlet>
+      <portlet-name>FlashPortlet</portlet-name>
+      <portlet-class>org.jboss.portlet.flash.FlashPortlet</portlet-class>
+      <supports>
+         <mime-type>text/html</mime-type>
+         <portlet-mode>VIEW</portlet-mode>
+         <portlet-mode>EDIT</portlet-mode>
+      </supports>
+      <portlet-info>
+         <title>Flash Portlet</title>
+      </portlet-info>
+      <portlet-preferences>
+         <preference>
+            <name>flashurl</name>
+            <value>http://www.jboss.com/images/flash/next_now_movie.swf</value>
+         </preference>
+         <preference>
+            <name>flashheight</name>
+            <value>171</value>
+         </preference>
+         <preference>
+            <name>flashwidth</name>
+            <value>493</value>
+         </preference>
+      </portlet-preferences>
+   </portlet>
+</portlet-app>

Added: portlets/src/miscellaneous/FlashPortlet/src/resources/flash-war_22/WEB-INF/web.xml
===================================================================
--- portlets/src/miscellaneous/FlashPortlet/src/resources/flash-war_22/WEB-INF/web.xml	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/FlashPortlet/src/resources/flash-war_22/WEB-INF/web.xml	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,6 @@
+<?xml version="1.0"?>
+<!DOCTYPE web-app PUBLIC
+   "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
+   "http://java.sun.com/dtd/web-app_2_3.dtd">
+<web-app>
+</web-app>


Property changes on: portlets/src/miscellaneous/FlashPortlet/src/resources/flash-war_24/WEB-INF
___________________________________________________________________
Name: svn:ignore
   + classes


Added: portlets/src/miscellaneous/FlashPortlet/src/resources/flash-war_24/WEB-INF/flash-object.xml
===================================================================
--- portlets/src/miscellaneous/FlashPortlet/src/resources/flash-war_24/WEB-INF/flash-object.xml	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/FlashPortlet/src/resources/flash-war_24/WEB-INF/flash-object.xml	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<deployments>
+   <deployment>
+      <if-exists>overwrite</if-exists>
+      <parent-ref>default</parent-ref>
+      <page>
+         <page-name>Flash</page-name>
+         <window>
+            <window-name>FlashPortletWindow</window-name>
+            <instance-ref>FlashPortletInstance</instance-ref>
+            <region>center</region>
+            <height>0</height>
+         </window>
+      </page>
+   </deployment>
+</deployments>
\ No newline at end of file

Added: portlets/src/miscellaneous/FlashPortlet/src/resources/flash-war_24/WEB-INF/jboss-app.xml
===================================================================
--- portlets/src/miscellaneous/FlashPortlet/src/resources/flash-war_24/WEB-INF/jboss-app.xml	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/FlashPortlet/src/resources/flash-war_24/WEB-INF/jboss-app.xml	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,3 @@
+<jboss-app>
+    <app-name>flashportlet</app-name>
+</jboss-app>
\ No newline at end of file

Added: portlets/src/miscellaneous/FlashPortlet/src/resources/flash-war_24/WEB-INF/jboss-web.xml
===================================================================
--- portlets/src/miscellaneous/FlashPortlet/src/resources/flash-war_24/WEB-INF/jboss-web.xml	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/FlashPortlet/src/resources/flash-war_24/WEB-INF/jboss-web.xml	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,3 @@
+<?xml version="1.0"?>
+<jboss-web>
+</jboss-web>

Added: portlets/src/miscellaneous/FlashPortlet/src/resources/flash-war_24/WEB-INF/jsp/flash/edit.jsp
===================================================================
--- portlets/src/miscellaneous/FlashPortlet/src/resources/flash-war_24/WEB-INF/jsp/flash/edit.jsp	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/FlashPortlet/src/resources/flash-war_24/WEB-INF/jsp/flash/edit.jsp	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,35 @@
+<%@ page language="java" extends="org.jboss.portal.core.servlet.jsp.PortalJsp" %>
+<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet" %>
+
+<!--
+/**
+ * User: Chris Mills (millsy at jboss.com)
+ * Date: 27-Feb-2006
+ * Time: 22:02:11
+ */
+-->
+<portlet:defineObjects/>
+
+<form method="post" action="<portlet:actionURL/>">
+	<table>
+        <tr class="portlet-msg-alert">
+            <td colspan="2"><%= request.getParameter("message") != null ?  request.getParameter("message") : ""%></td>
+        </tr>
+        <tr class="portlet-section-body">
+			<td>Source URL</td>
+			<td><input type="text" name="url" value="<%= request.getAttribute("flashurl") %>" size="50"/></td>
+		</tr>
+        <tr class="portlet-section-body">
+			<td>Height (px)</td>
+			<td><input type="text" name="height" value="<%= request.getAttribute("flashheight") %>"/></td>
+		</tr>
+        <tr class="portlet-section-body">
+			<td>Width (px)</td>
+			<td><input type="text" name="width" value="<%= request.getAttribute("flashwidth") %>"/></td>
+		</tr>
+        <tr class="portlet-section-body">
+			<td align="right"><input type="submit" name="op" value="Update"/></td>
+            <td align="left"><input type="submit" name="op" value="Cancel"/></td>
+        </tr>
+    </table>
+</form>

Added: portlets/src/miscellaneous/FlashPortlet/src/resources/flash-war_24/WEB-INF/jsp/flash/flash.jsp
===================================================================
--- portlets/src/miscellaneous/FlashPortlet/src/resources/flash-war_24/WEB-INF/jsp/flash/flash.jsp	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/FlashPortlet/src/resources/flash-war_24/WEB-INF/jsp/flash/flash.jsp	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,10 @@
+<%@ page language="java" extends="org.jboss.portal.core.servlet.jsp.PortalJsp" %>
+<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet" %>
+
+<center>
+    <object width="<%= request.getAttribute("flashwidth") %>" height="<%= request.getAttribute("flashheight") %>">
+        <param name="movie" value="<%= request.getAttribute("flashurl") %>"/>
+        <embed src="<%= request.getAttribute("flashurl") %>" width="<%= request.getAttribute("flashwidth") %>" height="<%= request.getAttribute("flashheight") %>"/>
+    </object>
+</center>
+

Added: portlets/src/miscellaneous/FlashPortlet/src/resources/flash-war_24/WEB-INF/portlet-instances.xml
===================================================================
--- portlets/src/miscellaneous/FlashPortlet/src/resources/flash-war_24/WEB-INF/portlet-instances.xml	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/FlashPortlet/src/resources/flash-war_24/WEB-INF/portlet-instances.xml	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,9 @@
+<?xml version="1.0" standalone="yes"?>
+<deployments>
+   <deployment>
+      <instance>
+         <instance-id>FlashPortletInstance</instance-id>
+         <portlet-ref>FlashPortlet</portlet-ref>
+      </instance>
+   </deployment>
+</deployments>
\ No newline at end of file

Added: portlets/src/miscellaneous/FlashPortlet/src/resources/flash-war_24/WEB-INF/portlet.xml
===================================================================
--- portlets/src/miscellaneous/FlashPortlet/src/resources/flash-war_24/WEB-INF/portlet.xml	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/FlashPortlet/src/resources/flash-war_24/WEB-INF/portlet.xml	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
+             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+             xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd /opt/SUNWps/dtd/portlet.xsd"
+             version="1.0">
+   <portlet>
+      <portlet-name>FlashPortlet</portlet-name>
+      <portlet-class>org.jboss.portlet.flash.FlashPortlet</portlet-class>
+      <supports>
+         <mime-type>text/html</mime-type>
+         <portlet-mode>VIEW</portlet-mode>
+         <portlet-mode>EDIT</portlet-mode>
+      </supports>
+      <portlet-info>
+         <title>Flash Portlet</title>
+      </portlet-info>
+      <portlet-preferences>
+         <preference>
+            <name>flashurl</name>
+            <value>http://www.jboss.com/images/flash/next_now_movie.swf</value>
+         </preference>
+         <preference>
+            <name>flashheight</name>
+            <value>171</value>
+         </preference>
+         <preference>
+            <name>flashwidth</name>
+            <value>493</value>
+         </preference>
+      </portlet-preferences>
+   </portlet>
+</portlet-app>

Added: portlets/src/miscellaneous/FlashPortlet/src/resources/flash-war_24/WEB-INF/web.xml
===================================================================
--- portlets/src/miscellaneous/FlashPortlet/src/resources/flash-war_24/WEB-INF/web.xml	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/FlashPortlet/src/resources/flash-war_24/WEB-INF/web.xml	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,6 @@
+<?xml version="1.0"?>
+<!DOCTYPE web-app PUBLIC
+   "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
+   "http://java.sun.com/dtd/web-app_2_3.dtd">
+<web-app>
+</web-app>


Property changes on: portlets/src/miscellaneous/IFramePortlet
___________________________________________________________________
Name: svn:ignore
   + output


Added: portlets/src/miscellaneous/IFramePortlet/LICENSES.txt
===================================================================
--- portlets/src/miscellaneous/IFramePortlet/LICENSES.txt	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/IFramePortlet/LICENSES.txt	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1 @@
+LGPL: explode.jar, portal-common.jar, portlet-api.jar

Added: portlets/src/miscellaneous/IFramePortlet/README.txt
===================================================================
--- portlets/src/miscellaneous/IFramePortlet/README.txt	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/IFramePortlet/README.txt	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,13 @@
+This portlet works with JBoss Portal 2.4+. It allows for a user-defined IFrame URL. This software is distributed under the LGPL, unless otherwise noted in the LICENSES.txt.
+
+For JBoss Portal 2.2:
+- To build the war file, use ant to execute the build.xml at the root of this bundle, ie.  "ant deploy22"
+- To deploy this portlet, simply copy the iframeportlet.war file to your /deploy directory where JBoss Portal resides.
+
+For JBoss Portal 2.4:
+- To build the war file, use ant to execute the build.xml at the root of this bundle, ie.  "ant deploy24"
+- To deploy this portlet, simply copy the iframeportlet.war file to your /deploy directory where JBoss Portal resides.
+
+For other Portal servers:
+- To build the war file, use ant to execute the build.xml at the root of this bundle, ie.  "ant deploy"
+- You will then need to add any proprietary descriptors your portal server vendor recommends and deploy.

Added: portlets/src/miscellaneous/IFramePortlet/build.xml
===================================================================
--- portlets/src/miscellaneous/IFramePortlet/build.xml	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/IFramePortlet/build.xml	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,111 @@
+<project name="JBoss IFrame Portlet"
+         default="deploy24"
+         basedir=".">
+
+   <property name="app.name" value="iframe"/>
+
+   <property name="src.dir" value="${basedir}/src"/>
+
+   <property name="lib.dir" value="${basedir}/lib"/>
+
+   <property name="build.dir" value="${basedir}/output"/>
+
+   <property name="build.lib" value="${build.dir}/lib"/>
+
+   <property name="build.resources" value="${src.dir}/resources"/>
+
+   <property name="build.etc" value="${src.dir}/etc"/>
+
+   <property name="classes.dir" value="${build.dir}/classes"/>
+
+   <property name="dist.dir" value="${src.dir}/resources"/>
+
+   <property name="libs.api" value="${lib.dir}/portlet-api-lib.jar"/>
+
+   <property name="libs.ant"
+             value="${lib.dir}/explode.jar;${lib.dir}/portal-common-lib.jar"/>
+
+   <property name="libs" value="${libs.api};${libs.ant}"/>
+
+   <available property="clover.available" classname="org.apache.tools.ant.taskdefs.CloverCompilerAdapter"/>
+
+   <target name="clover-yes" depends="prepare" if="clover.available">
+      <property name="compiler" value="org.apache.tools.ant.taskdefs.CloverCompilerAdapter"/>
+   </target>
+
+   <target name="clover-no" depends="prepare" unless="clover.available">
+      <property name="compiler" value="modern"/>
+   </target>
+
+   <target name="prepare">
+      <mkdir dir="${classes.dir}"/>
+      <mkdir dir="${build.lib}"/>
+      <mkdir dir="${build.lib}/exploded"/>
+      <mkdir dir="${build.resources}/iframeportlet-war_22/WEB-INF/classes"/>
+      <mkdir dir="${build.resources}/iframeportlet-war_24/WEB-INF/classes"/>
+   </target>
+
+   <target name="clean">
+      <delete dir="${build.dir}"/>
+      <delete dir="${build.resources}/iframeportlet-war_22/WEB-INF/classes"/>
+      <delete dir="${build.resources}/iframeportlet-war_24/WEB-INF/classes"/>
+   </target>
+
+   <target name="deploy24" depends="clover-yes, clover-no">
+      <javac srcdir="${src.dir}"
+             destdir="${classes.dir}"
+             classpath="${libs}"
+             debug="off"
+             optimize="on"
+             deprecation="on"
+             compiler="${compiler}">
+         <include name="main/org/jboss/portlet/**/*.java"/>
+      </javac>
+
+      <copydir src="${classes.dir}" dest="${build.resources}/iframeportlet-war_24/WEB-INF/classes">
+      </copydir>
+
+      <!-- iframeportlet.war -->
+      <jar jarfile="iframeportlet.war">
+         <manifest>
+            <attribute name="Manifest-Version" value="1.0"/>
+         </manifest>
+         <fileset dir="${build.resources}/iframeportlet-war_24"/>
+      </jar>
+   </target>
+
+   <target name="deploy22" depends="clover-yes, clover-no">
+      <javac srcdir="${src.dir}"
+             destdir="${classes.dir}"
+             classpath="${libs}"
+             debug="off"
+             optimize="on"
+             deprecation="on"
+             compiler="${compiler}">
+         <include name="main/org/jboss/portlet/**/*.java"/>
+      </javac>
+
+      <copydir src="${classes.dir}" dest="${build.resources}/iframeportlet-war_22/WEB-INF/classes">
+      </copydir>
+
+      <!-- iframeportlet.war -->
+      <jar jarfile="iframeportlet.war">
+         <manifest>
+            <attribute name="Manifest-Version" value="1.0"/>
+         </manifest>
+         <fileset dir="${build.resources}/iframeportlet-war_22"/>
+      </jar>
+   </target>
+
+   <target name="explode" depends="deploy24">
+      <taskdef classname="org.jboss.nukes.common.ant.Explode"
+               name="explode"
+               classpath="${libs}"/>
+      <explode
+            file="iframeportlet.war"
+            todir="${build.lib}/exploded"
+            name="iframeportlet.war"/>
+   </target>
+   <target name="all" depends="deploy24"/>
+</project>
+

Added: portlets/src/miscellaneous/IFramePortlet/iframeportlet.war
===================================================================
(Binary files differ)


Property changes on: portlets/src/miscellaneous/IFramePortlet/iframeportlet.war
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: portlets/src/miscellaneous/IFramePortlet/lib/explode.jar
===================================================================
(Binary files differ)


Property changes on: portlets/src/miscellaneous/IFramePortlet/lib/explode.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: portlets/src/miscellaneous/IFramePortlet/lib/portal-common-lib.jar
===================================================================
(Binary files differ)


Property changes on: portlets/src/miscellaneous/IFramePortlet/lib/portal-common-lib.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: portlets/src/miscellaneous/IFramePortlet/lib/portlet-api-lib.jar
===================================================================
(Binary files differ)


Property changes on: portlets/src/miscellaneous/IFramePortlet/lib/portlet-api-lib.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: portlets/src/miscellaneous/IFramePortlet/src/main/org/jboss/portlet/iframe/IFramePortlet.java
===================================================================
--- portlets/src/miscellaneous/IFramePortlet/src/main/org/jboss/portlet/iframe/IFramePortlet.java	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/IFramePortlet/src/main/org/jboss/portlet/iframe/IFramePortlet.java	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,171 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+
+package org.jboss.portlet.iframe;
+
+import javax.portlet.ActionRequest;
+import javax.portlet.ActionResponse;
+import javax.portlet.GenericPortlet;
+import javax.portlet.PortletException;
+import javax.portlet.PortletMode;
+import javax.portlet.PortletPreferences;
+import javax.portlet.PortletRequestDispatcher;
+import javax.portlet.PortletSecurityException;
+import javax.portlet.RenderRequest;
+import javax.portlet.RenderResponse;
+import java.io.IOException;
+
+/**
+ * User: Chris Mills (millsy at jboss.com)
+ * Date: 04-Mar-2006
+ * Time: 10:45:10
+ */
+
+public class IFramePortlet extends GenericPortlet
+{
+   private static final String defaultURL = "http://www.jboss.com";
+   private static final String defaultHeight = "200px";
+   private static final String defaultWidth = "100%";
+   private static final String defaultNonIFrameMessage = "Your browser does not support iframes";
+
+   public void processAction(ActionRequest request, ActionResponse response) throws PortletException, PortletSecurityException, IOException
+   {
+      String op = request.getParameter("op");
+      StringBuffer message = new StringBuffer(1024);
+      if((op != null) && (op.trim().length() > 0))
+      {
+         if(op.equalsIgnoreCase("update"))
+         {
+            PortletPreferences prefs = request.getPreferences();
+            String url = request.getParameter("url");
+            String height = request.getParameter("height");
+            String width = request.getParameter("width");
+            String noIFrameMessage = request.getParameter("noiframemessage");
+            boolean px = false;
+            boolean save = true;
+            if((url != null) && (height != null) && (width != null) && (noIFrameMessage != null))
+            {
+               if(!url.startsWith("http://"))
+               {
+                  save = false;
+                  message.append("URLs must start with 'http://'<br/>");
+               }
+
+               try
+               {
+                  if(height.endsWith("px"))
+                  {
+                     height = height.substring(0, height.length() - 2);
+                  }
+                  Integer.parseInt(height);
+               }
+               catch(NumberFormatException nfe)
+               {
+                  //Bad height value
+                  save = false;
+                  message.append("Height must be an integer<br/>");
+               }
+               try
+               {
+                  if(width.endsWith("px"))
+                  {
+                     px = true;
+                     width = width.substring(0, width.length() - 2);
+                  }
+                  else if(width.endsWith("%"))
+                  {
+                     width = width.substring(0, width.length() - 1);
+                  }
+                  Integer.parseInt(width);
+               }
+               catch(NumberFormatException nfe)
+               {
+                  //Bad height value
+                  save = false;
+                  message.append("Width must be an integer<br/>");
+               }
+
+               if(save)
+               {
+                  prefs.setValue("iframeheight", height + "px");
+                  prefs.setValue("iframewidth", px ? width + "px" : width + "%");
+                  prefs.setValue("iframeurl", url);
+                  prefs.setValue("iframemessage", noIFrameMessage);
+                  prefs.store();
+                  response.setPortletMode(PortletMode.VIEW);
+                  return;
+               }
+            }
+         }
+         else if(op.equalsIgnoreCase("cancel"))
+         {
+            response.setPortletMode(PortletMode.VIEW);
+            return;
+         }
+         else
+         {
+            message.append("Operation not found");
+         }
+      }
+      else
+      {
+         message.append("Operation is null");
+      }
+
+      response.setRenderParameter("message", message.toString());
+      response.setPortletMode(PortletMode.EDIT);
+   }
+
+   public void doView(RenderRequest request, RenderResponse response)
+   {
+      try
+      {
+         setRenderAttributes(request);
+         response.setContentType("text/html");
+         PortletRequestDispatcher prd = getPortletContext().getRequestDispatcher("/WEB-INF/iframe/iframe.jsp");
+         prd.include(request, response);
+      }
+      catch(Exception e)
+      {
+         e.printStackTrace();
+      }
+   }
+
+   public void doEdit(RenderRequest request, RenderResponse response) throws IOException, PortletException
+   {
+      setRenderAttributes(request);
+      response.setContentType("text/html");
+      response.setTitle("Edit");
+      PortletRequestDispatcher prd = getPortletContext().getRequestDispatcher("/WEB-INF/iframe/edit.jsp");
+      prd.include(request, response);
+   }
+
+   private void setRenderAttributes(RenderRequest request)
+   {
+      PortletPreferences prefs = request.getPreferences();
+      request.setAttribute("iframeurl", prefs.getValue("iframeurl", IFramePortlet.defaultURL));
+      request.setAttribute("iframeheight", prefs.getValue("iframeheight", IFramePortlet.defaultHeight));
+      request.setAttribute("iframewidth", prefs.getValue("iframewidth", IFramePortlet.defaultWidth));
+      request.setAttribute("iframemessage", prefs.getValue("iframemessage", IFramePortlet.defaultNonIFrameMessage));
+   }
+}
+


Property changes on: portlets/src/miscellaneous/IFramePortlet/src/resources/iframeportlet-war_22/WEB-INF
___________________________________________________________________
Name: svn:ignore
   + classes


Added: portlets/src/miscellaneous/IFramePortlet/src/resources/iframeportlet-war_22/WEB-INF/iframe/edit.jsp
===================================================================
--- portlets/src/miscellaneous/IFramePortlet/src/resources/iframeportlet-war_22/WEB-INF/iframe/edit.jsp	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/IFramePortlet/src/resources/iframeportlet-war_22/WEB-INF/iframe/edit.jsp	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,39 @@
+<%@ page language="java" extends="org.jboss.portal.core.servlet.jsp.PortalJsp" %>
+<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet" %>
+
+<!--
+/**
+ * User: Chris Mills (millsy at jboss.com)
+ * Date: 27-Feb-2006
+ * Time: 22:02:11
+ */
+-->
+<portlet:defineObjects/>
+
+<form method="post" action="<portlet:actionURL/>">
+	<table>
+        <tr class="portlet-msg-alert">
+            <td colspan="2"><%= request.getParameter("message") != null ?  request.getParameter("message") : ""%></td>
+        </tr>
+        <tr class="portlet-section-body">
+			<td>Non IFrame Browser Message</td>
+			<td><input type="text" name="noiframemessage" value="<%= request.getAttribute("iframemessage") %>" size="50"/></td>
+		</tr>
+        <tr class="portlet-section-body">
+			<td>Source URL</td>
+			<td><input type="text" name="url" value="<%= request.getAttribute("iframeurl") %>" size="50"/></td>
+		</tr>
+        <tr class="portlet-section-body">
+			<td>Height (px)</td>
+			<td><input type="text" name="height" value="<%= request.getAttribute("iframeheight") %>"/></td>
+		</tr>
+        <tr class="portlet-section-body">
+			<td>Width (px or %)</td>
+			<td><input type="text" name="width" value="<%= request.getAttribute("iframewidth") %>"/></td>
+		</tr>
+        <tr class="portlet-section-body">
+			<td align="right"><input type="submit" name="op" value="Update"/></td>
+            <td align="left"><input type="submit" name="op" value="Cancel"/></td>
+        </tr>
+    </table>
+</form>
\ No newline at end of file

Added: portlets/src/miscellaneous/IFramePortlet/src/resources/iframeportlet-war_22/WEB-INF/iframe/iframe.jsp
===================================================================
--- portlets/src/miscellaneous/IFramePortlet/src/resources/iframeportlet-war_22/WEB-INF/iframe/iframe.jsp	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/IFramePortlet/src/resources/iframeportlet-war_22/WEB-INF/iframe/iframe.jsp	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,26 @@
+<%@ page language="java" extends="org.jboss.portal.core.servlet.jsp.PortalJsp" %>
+<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet" %>
+
+<!--
+/**
+ * User: Chris Mills (millsy at jboss.com)
+ * Date: 27-Feb-2006
+ * Time: 22:02:11
+ */
+-->
+<portlet:defineObjects/>
+
+<table width="<%= request.getAttribute("iframewidth") %>">
+    <tr>
+        <td>
+            <a target="_new" href="<%= request.getAttribute("iframeurl") %>"><center>Open in new window</center></a>
+        </td>
+    </tr>
+    <tr>
+        <td>
+            <iframe src="<%= request.getAttribute("iframeurl") %>" width="<%= request.getAttribute("iframewidth") %>" height="<%= request.getAttribute("iframeheight") %>" border="0">
+	            Your browser does not support iframes
+            </iframe>
+        </td>
+    </tr>
+</table>
\ No newline at end of file

Added: portlets/src/miscellaneous/IFramePortlet/src/resources/iframeportlet-war_22/WEB-INF/iframe-object.xml
===================================================================
--- portlets/src/miscellaneous/IFramePortlet/src/resources/iframeportlet-war_22/WEB-INF/iframe-object.xml	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/IFramePortlet/src/resources/iframeportlet-war_22/WEB-INF/iframe-object.xml	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<deployments>
+   <deployment>
+      <if-exists>overwrite</if-exists>
+      <parent-ref>default</parent-ref>
+      <page>
+         <page-name>IFrame</page-name>
+         <window>
+            <window-name>IFramePortletWindow</window-name>
+            <instance-ref>IFramePortletInstance</instance-ref>
+            <region>center</region>
+            <height>0</height>
+         </window>
+      </page>
+   </deployment>
+   <deployment>
+      <if-exists>overwrite</if-exists>
+      <instance>
+         <instance-name>IFramePortletInstance</instance-name>
+         <component-ref>iframeportlet.IFramePortlet</component-ref>
+      </instance>
+   </deployment>
+</deployments>
\ No newline at end of file

Added: portlets/src/miscellaneous/IFramePortlet/src/resources/iframeportlet-war_22/WEB-INF/jboss-app.xml
===================================================================
--- portlets/src/miscellaneous/IFramePortlet/src/resources/iframeportlet-war_22/WEB-INF/jboss-app.xml	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/IFramePortlet/src/resources/iframeportlet-war_22/WEB-INF/jboss-app.xml	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,3 @@
+<jboss-app>
+    <app-name>iframeportlet</app-name>
+</jboss-app>
\ No newline at end of file

Added: portlets/src/miscellaneous/IFramePortlet/src/resources/iframeportlet-war_22/WEB-INF/jboss-web.xml
===================================================================
--- portlets/src/miscellaneous/IFramePortlet/src/resources/iframeportlet-war_22/WEB-INF/jboss-web.xml	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/IFramePortlet/src/resources/iframeportlet-war_22/WEB-INF/jboss-web.xml	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,3 @@
+<?xml version="1.0"?>
+<jboss-web>
+</jboss-web>

Added: portlets/src/miscellaneous/IFramePortlet/src/resources/iframeportlet-war_22/WEB-INF/portlet.xml
===================================================================
--- portlets/src/miscellaneous/IFramePortlet/src/resources/iframeportlet-war_22/WEB-INF/portlet.xml	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/IFramePortlet/src/resources/iframeportlet-war_22/WEB-INF/portlet.xml	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
+             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+             xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd /opt/SUNWps/dtd/portlet.xsd"
+             version="1.0">
+   <portlet>
+      <portlet-name>IFramePortlet</portlet-name>
+      <portlet-class>org.jboss.portlet.iframe.IFramePortlet</portlet-class>
+      <supports>
+         <mime-type>text/html</mime-type>
+         <portlet-mode>VIEW</portlet-mode>
+         <portlet-mode>EDIT</portlet-mode>
+      </supports>
+      <portlet-info>
+         <title>IFrame</title>
+      </portlet-info>
+   </portlet>
+</portlet-app>

Added: portlets/src/miscellaneous/IFramePortlet/src/resources/iframeportlet-war_22/WEB-INF/web.xml
===================================================================
--- portlets/src/miscellaneous/IFramePortlet/src/resources/iframeportlet-war_22/WEB-INF/web.xml	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/IFramePortlet/src/resources/iframeportlet-war_22/WEB-INF/web.xml	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,6 @@
+<?xml version="1.0"?>
+<!DOCTYPE web-app PUBLIC
+   "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
+   "http://java.sun.com/dtd/web-app_2_3.dtd">
+<web-app>
+</web-app>


Property changes on: portlets/src/miscellaneous/IFramePortlet/src/resources/iframeportlet-war_24/WEB-INF
___________________________________________________________________
Name: svn:ignore
   + classes


Added: portlets/src/miscellaneous/IFramePortlet/src/resources/iframeportlet-war_24/WEB-INF/iframe/edit.jsp
===================================================================
--- portlets/src/miscellaneous/IFramePortlet/src/resources/iframeportlet-war_24/WEB-INF/iframe/edit.jsp	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/IFramePortlet/src/resources/iframeportlet-war_24/WEB-INF/iframe/edit.jsp	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,39 @@
+<%@ page language="java" extends="org.jboss.portal.core.servlet.jsp.PortalJsp" %>
+<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet" %>
+
+<!--
+/**
+ * User: Chris Mills (millsy at jboss.com)
+ * Date: 27-Feb-2006
+ * Time: 22:02:11
+ */
+-->
+<portlet:defineObjects/>
+
+<form method="post" action="<portlet:actionURL/>">
+	<table>
+        <tr class="portlet-msg-alert">
+            <td colspan="2"><%= request.getParameter("message") != null ?  request.getParameter("message") : ""%></td>
+        </tr>
+        <tr class="portlet-section-body">
+			<td>Non IFrame Browser Message</td>
+			<td><input type="text" name="noiframemessage" value="<%= request.getAttribute("iframemessage") %>" size="50"/></td>
+		</tr>
+        <tr class="portlet-section-body">
+			<td>Source URL</td>
+			<td><input type="text" name="url" value="<%= request.getAttribute("iframeurl") %>" size="50"/></td>
+		</tr>
+        <tr class="portlet-section-body">
+			<td>Height (px)</td>
+			<td><input type="text" name="height" value="<%= request.getAttribute("iframeheight") %>"/></td>
+		</tr>
+        <tr class="portlet-section-body">
+			<td>Width (px or %)</td>
+			<td><input type="text" name="width" value="<%= request.getAttribute("iframewidth") %>"/></td>
+		</tr>
+        <tr class="portlet-section-body">
+			<td align="right"><input type="submit" name="op" value="Update"/></td>
+            <td align="left"><input type="submit" name="op" value="Cancel"/></td>
+        </tr>
+    </table>
+</form>
\ No newline at end of file

Added: portlets/src/miscellaneous/IFramePortlet/src/resources/iframeportlet-war_24/WEB-INF/iframe/iframe.jsp
===================================================================
--- portlets/src/miscellaneous/IFramePortlet/src/resources/iframeportlet-war_24/WEB-INF/iframe/iframe.jsp	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/IFramePortlet/src/resources/iframeportlet-war_24/WEB-INF/iframe/iframe.jsp	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,26 @@
+<%@ page language="java" extends="org.jboss.portal.core.servlet.jsp.PortalJsp" %>
+<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet" %>
+
+<!--
+/**
+ * User: Chris Mills (millsy at jboss.com)
+ * Date: 27-Feb-2006
+ * Time: 22:02:11
+ */
+-->
+<portlet:defineObjects/>
+
+<table width="<%= request.getAttribute("iframewidth") %>">
+    <tr>
+        <td>
+            <a target="_new" href="<%= request.getAttribute("iframeurl") %>"><center>Open in new window</center></a>
+        </td>
+    </tr>
+    <tr>
+        <td>
+            <iframe src="<%= request.getAttribute("iframeurl") %>" width="<%= request.getAttribute("iframewidth") %>" height="<%= request.getAttribute("iframeheight") %>" border="0">
+	            Your browser does not support iframes
+            </iframe>
+        </td>
+    </tr>
+</table>
\ No newline at end of file

Added: portlets/src/miscellaneous/IFramePortlet/src/resources/iframeportlet-war_24/WEB-INF/iframe-object.xml
===================================================================
--- portlets/src/miscellaneous/IFramePortlet/src/resources/iframeportlet-war_24/WEB-INF/iframe-object.xml	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/IFramePortlet/src/resources/iframeportlet-war_24/WEB-INF/iframe-object.xml	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<deployments>
+   <deployment>
+      <if-exists>overwrite</if-exists>
+      <parent-ref>default</parent-ref>
+      <page>
+         <page-name>IFrame</page-name>
+         <window>
+            <window-name>IFramePortletWindow</window-name>
+            <instance-ref>IFramePortletInstance</instance-ref>
+            <region>center</region>
+            <height>0</height>
+         </window>
+      </page>
+   </deployment>
+</deployments>
\ No newline at end of file

Added: portlets/src/miscellaneous/IFramePortlet/src/resources/iframeportlet-war_24/WEB-INF/jboss-app.xml
===================================================================
--- portlets/src/miscellaneous/IFramePortlet/src/resources/iframeportlet-war_24/WEB-INF/jboss-app.xml	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/IFramePortlet/src/resources/iframeportlet-war_24/WEB-INF/jboss-app.xml	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,3 @@
+<jboss-app>
+    <app-name>iframeportlet</app-name>
+</jboss-app>
\ No newline at end of file

Added: portlets/src/miscellaneous/IFramePortlet/src/resources/iframeportlet-war_24/WEB-INF/jboss-web.xml
===================================================================
--- portlets/src/miscellaneous/IFramePortlet/src/resources/iframeportlet-war_24/WEB-INF/jboss-web.xml	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/IFramePortlet/src/resources/iframeportlet-war_24/WEB-INF/jboss-web.xml	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,3 @@
+<?xml version="1.0"?>
+<jboss-web>
+</jboss-web>

Added: portlets/src/miscellaneous/IFramePortlet/src/resources/iframeportlet-war_24/WEB-INF/portlet-instances.xml
===================================================================
--- portlets/src/miscellaneous/IFramePortlet/src/resources/iframeportlet-war_24/WEB-INF/portlet-instances.xml	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/IFramePortlet/src/resources/iframeportlet-war_24/WEB-INF/portlet-instances.xml	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,10 @@
+<?xml version="1.0" standalone="yes"?>
+<deployments>
+   <deployment>
+      <if-exists>overwrite</if-exists>
+      <instance>
+         <instance-id>IFramePortletInstance</instance-id>
+         <portlet-ref>IFramePortlet</portlet-ref>
+      </instance>
+   </deployment>
+</deployments>

Added: portlets/src/miscellaneous/IFramePortlet/src/resources/iframeportlet-war_24/WEB-INF/portlet.xml
===================================================================
--- portlets/src/miscellaneous/IFramePortlet/src/resources/iframeportlet-war_24/WEB-INF/portlet.xml	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/IFramePortlet/src/resources/iframeportlet-war_24/WEB-INF/portlet.xml	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
+             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+             xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd /opt/SUNWps/dtd/portlet.xsd"
+             version="1.0">
+   <portlet>
+      <portlet-name>IFramePortlet</portlet-name>
+      <portlet-class>org.jboss.portlet.iframe.IFramePortlet</portlet-class>
+      <supports>
+         <mime-type>text/html</mime-type>
+         <portlet-mode>VIEW</portlet-mode>
+         <portlet-mode>EDIT</portlet-mode>
+      </supports>
+      <portlet-info>
+         <title>IFrame</title>
+      </portlet-info>
+   </portlet>
+</portlet-app>

Added: portlets/src/miscellaneous/IFramePortlet/src/resources/iframeportlet-war_24/WEB-INF/web.xml
===================================================================
--- portlets/src/miscellaneous/IFramePortlet/src/resources/iframeportlet-war_24/WEB-INF/web.xml	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/IFramePortlet/src/resources/iframeportlet-war_24/WEB-INF/web.xml	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,6 @@
+<?xml version="1.0"?>
+<!DOCTYPE web-app PUBLIC
+   "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
+   "http://java.sun.com/dtd/web-app_2_3.dtd">
+<web-app>
+</web-app>


Property changes on: portlets/src/miscellaneous/JBoss_NewsPortlet
___________________________________________________________________
Name: svn:ignore
   + output


Added: portlets/src/miscellaneous/JBoss_NewsPortlet/LICENSES.txt
===================================================================
--- portlets/src/miscellaneous/JBoss_NewsPortlet/LICENSES.txt	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/JBoss_NewsPortlet/LICENSES.txt	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,2 @@
+LGPL: explode.jar, portal-common.jar, portal-core-lib.jar, portlet-api.jar
+ASL: log4j.jar
\ No newline at end of file

Added: portlets/src/miscellaneous/JBoss_NewsPortlet/README.txt
===================================================================
--- portlets/src/miscellaneous/JBoss_NewsPortlet/README.txt	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/JBoss_NewsPortlet/README.txt	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,13 @@
+This portlet works with JBoss Portal 2.4+. It retrieves an RSS Feed from a news provider and displays the title with links to the actual content. Also, a user can modify the feed URL and save it to his preferences at any time. This software is distributed under the LGPL, unless otherwise noted in the LICENSES.txt.
+
+For JBoss Portal 2.2:
+- To build the war file, use ant to execute the build.xml at the root of this bundle, ie.  "ant deploy22"
+- To deploy this portlet, simply copy the newsportlet.war file to your /deploy directory where JBoss Portal resides.
+
+For JBoss Portal 2.4:
+- To build the war file, use ant to execute the build.xml at the root of this bundle, ie.  "ant deploy24"
+- To deploy this portlet, simply copy the newsportlet.war file to your /deploy directory where JBoss Portal resides.
+
+For other Portal servers:
+- To build the war file, use ant to execute the build.xml at the root of this bundle, ie.  "ant deploy"
+- You will then need to add any proprietary descriptors your portal server vendor recommends and deploy.

Added: portlets/src/miscellaneous/JBoss_NewsPortlet/build.xml
===================================================================
--- portlets/src/miscellaneous/JBoss_NewsPortlet/build.xml	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/JBoss_NewsPortlet/build.xml	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,107 @@
+<project name="JBoss News Portlet"
+         default="deploy24"
+         basedir=".">
+
+   <property name="app.name" value="newsportlet"/>
+
+   <property name="src.dir" value="${basedir}/src"/>
+
+   <property name="lib.dir" value="${basedir}/lib"/>
+
+   <property name="build.dir" value="${basedir}/output"/>
+
+   <property name="build.lib" value="${build.dir}/lib"/>
+
+   <property name="build.resources" value="${src.dir}/resources"/>
+
+   <property name="build.etc" value="${src.dir}/etc"/>
+
+   <property name="classes.dir" value="${build.dir}/classes"/>
+
+   <property name="dist.dir" value="${src.dir}/resources"/>
+
+   <property name="libs.api" value="${lib.dir}/portlet-api-lib.jar"/>
+
+   <property name="libs.ant"
+             value="${lib.dir}/log4j.jar;${lib.dir}/explode.jar;${lib.dir}/portal-common-lib.jar;${lib.dir}/portal-core-lib.jar"/>
+
+   <property name="libs" value="${libs.api};${libs.ant}"/>
+
+   <available property="clover.available" classname="org.apache.tools.ant.taskdefs.CloverCompilerAdapter"/>
+
+   <target name="clover-yes" depends="prepare" if="clover.available">
+      <property name="compiler" value="org.apache.tools.ant.taskdefs.CloverCompilerAdapter"/>
+   </target>
+
+   <target name="clover-no" depends="prepare" unless="clover.available">
+      <property name="compiler" value="modern"/>
+   </target>
+
+   <target name="prepare">
+      <mkdir dir="${classes.dir}"/>
+      <mkdir dir="${build.lib}"/>
+      <mkdir dir="${build.lib}/exploded"/>
+   </target>
+
+   <target name="clean">
+      <delete dir="${build.dir}"/>
+   </target>
+
+   <target name="deploy24" depends="clover-yes, clover-no">
+      <javac srcdir="${src.dir}"
+             destdir="${classes.dir}"
+             classpath="${libs}"
+             debug="off"
+             optimize="on"
+             deprecation="on"
+             compiler="${compiler}">
+         <include name="main/org/jboss/portlet/**/*.java"/>
+      </javac>
+
+      <copydir src="${classes.dir}" dest="${build.resources}/newsportlet-war_24/WEB-INF/classes">
+      </copydir>
+
+      <!-- newsportlet.war -->
+      <jar jarfile="newsportlet.war">
+         <manifest>
+            <attribute name="Manifest-Version" value="1.0"/>
+         </manifest>
+         <fileset dir="${build.resources}/newsportlet-war_24"/>
+      </jar>
+   </target>
+
+   <target name="deploy22" depends="clover-yes, clover-no">
+      <javac srcdir="${src.dir}"
+             destdir="${classes.dir}"
+             classpath="${libs}"
+             debug="off"
+             optimize="on"
+             deprecation="on"
+             compiler="${compiler}">
+         <include name="main/org/jboss/portlet/**/*.java"/>
+      </javac>
+
+      <copydir src="${classes.dir}" dest="${build.resources}/newsportlet-war_22/WEB-INF/classes">
+      </copydir>
+
+      <!-- newsportlet.war -->
+      <jar jarfile="newsportlet.war">
+         <manifest>
+            <attribute name="Manifest-Version" value="1.0"/>
+         </manifest>
+         <fileset dir="${build.resources}/newsportlet-war_22"/>
+      </jar>
+   </target>
+
+   <target name="explode" depends="deploy24">
+      <taskdef classname="org.jboss.portal.common.ant.Explode"
+               name="explode"
+               classpath="${libs}"/>
+      <explode
+            file="newsportlet.war"
+            todir="${build.lib}/exploded"
+            name="newsportlet.war"/>
+   </target>
+   <target name="all" depends="deploy24"/>
+</project>
+

Added: portlets/src/miscellaneous/JBoss_NewsPortlet/lib/explode.jar
===================================================================
(Binary files differ)


Property changes on: portlets/src/miscellaneous/JBoss_NewsPortlet/lib/explode.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: portlets/src/miscellaneous/JBoss_NewsPortlet/lib/log4j.jar
===================================================================
(Binary files differ)


Property changes on: portlets/src/miscellaneous/JBoss_NewsPortlet/lib/log4j.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: portlets/src/miscellaneous/JBoss_NewsPortlet/lib/portal-common-lib.jar
===================================================================
(Binary files differ)


Property changes on: portlets/src/miscellaneous/JBoss_NewsPortlet/lib/portal-common-lib.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: portlets/src/miscellaneous/JBoss_NewsPortlet/lib/portlet-api-lib.jar
===================================================================
(Binary files differ)


Property changes on: portlets/src/miscellaneous/JBoss_NewsPortlet/lib/portlet-api-lib.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: portlets/src/miscellaneous/JBoss_NewsPortlet/newsportlet.war
===================================================================
(Binary files differ)


Property changes on: portlets/src/miscellaneous/JBoss_NewsPortlet/newsportlet.war
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: portlets/src/miscellaneous/JBoss_NewsPortlet/src/etc/newsportlet-war.mf
===================================================================
--- portlets/src/miscellaneous/JBoss_NewsPortlet/src/etc/newsportlet-war.mf	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/JBoss_NewsPortlet/src/etc/newsportlet-war.mf	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,11 @@
+Manifest-Version: 1.0
+Created-By: @java.vm.version@ (@java.vm.vendor@)
+Specification-Title: @specification.title@
+Specification-Version: @specification.version@
+Specification-Vendor: @specification.vendor@
+Implementation-Title: @implementation.title@
+Implementation-URL: @implementation.url@
+Implementation-Version: @implementation.version@
+Implementation-Vendor: @implementation.vendor@
+Implementation-Vendor-Id: @implementation.vendor.id@
+Class-Path: ./newsportlet-lib.jar
\ No newline at end of file

Added: portlets/src/miscellaneous/JBoss_NewsPortlet/src/main/org/jboss/portlet/news/NewsPortlet.java
===================================================================
--- portlets/src/miscellaneous/JBoss_NewsPortlet/src/main/org/jboss/portlet/news/NewsPortlet.java	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/JBoss_NewsPortlet/src/main/org/jboss/portlet/news/NewsPortlet.java	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,250 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+
+
+package org.jboss.portlet.news;
+
+import org.apache.log4j.Logger;
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+
+import javax.portlet.ActionRequest;
+import javax.portlet.ActionResponse;
+import javax.portlet.GenericPortlet;
+import javax.portlet.PortletException;
+import javax.portlet.PortletMode;
+import javax.portlet.PortletPreferences;
+import javax.portlet.PortletRequestDispatcher;
+import javax.portlet.RenderRequest;
+import javax.portlet.RenderResponse;
+import javax.xml.parsers.DocumentBuilder;
+import javax.xml.parsers.DocumentBuilderFactory;
+import javax.xml.transform.Source;
+import javax.xml.transform.Templates;
+import javax.xml.transform.Transformer;
+import javax.xml.transform.TransformerConfigurationException;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.transform.stream.StreamResult;
+import javax.xml.transform.stream.StreamSource;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.PrintWriter;
+import java.net.URL;
+
+/**
+ * Adapted from JBoss Weather Portlet to deal with RSS News Feeds using RSS 1.0 or RSS 2.0 format.
+ *
+ * @author <a href="mailto:roy at jboss.org">Roy Russo</a>
+ */
+public class NewsPortlet extends GenericPortlet
+{
+   /**
+    * Logger
+    */
+   public static Logger log = Logger.getLogger(NewsPortlet.class);
+
+   /**
+    * Edit page
+    */
+   private static final String JSP_EDIT = "/WEB-INF/jsp/edit.jsp";
+
+   /**
+    * RSS 2.0 XSL page for output
+    */
+   private static final String RSS2_XSL = "/WEB-INF/Rss2.xsl";
+
+   /**
+    * RSS 1.0 XSL page for output
+    */
+   private static final String RSS1_XSL = "/WEB-INF/Rss1.xsl";
+
+   /**
+    * Compiled Template for output RSS 2.0
+    */
+   private Templates template_2_0;
+
+   /**
+    * Compiled Template for output RSS 1.0
+    */
+   private Templates template_1_0;
+
+   /**
+    * Base URL of News RSS
+    */
+   private String RSS_URL;
+
+   private static final String E_XSL_UNREADABLE = "Unable to prepare XSL files.";
+   private static final String E_UNREADABLE = "Unable to read XML Source.";
+   private static final String E_UNPARSEABLE = "Unable to parse XML Source.";
+
+   /**
+    * Compile the XSL File.
+    */
+   public void init()
+   {
+      try
+      {
+         InputStream inputstream_2 = getPortletContext().getResourceAsStream(NewsPortlet.RSS2_XSL);
+         StreamSource xslSource_2 = new StreamSource(inputstream_2);
+         TransformerFactory tFactory_2 = TransformerFactory.newInstance();
+         this.template_2_0 = tFactory_2.newTemplates(xslSource_2);
+
+         InputStream inputstream_1 = getPortletContext().getResourceAsStream(NewsPortlet.RSS1_XSL);
+         StreamSource xslSource_1 = new StreamSource(inputstream_1);
+         TransformerFactory tFactory_1 = TransformerFactory.newInstance();
+         this.template_1_0 = tFactory_1.newTemplates(xslSource_1);
+
+         this.RSS_URL = getInitParameter("base_url");
+      }
+      catch(TransformerConfigurationException tce)
+      {
+         log.error(E_XSL_UNREADABLE, tce);
+      }
+   }
+
+   protected void doView(RenderRequest request, RenderResponse response) throws IOException, PortletException
+   {
+      response.setProperty("expiration-cache", request.getPreferences().getValue("expires", "180"));
+
+      InputStream xmlInputStream = null;
+      InputStream xslInputStream = null;
+
+      String newURL = null;
+      try
+      {
+         newURL = request.getParameter("newurl");
+         response.setContentType("text/html");
+
+         if(null == newURL)
+         {
+            newURL = request.getPreferences().getValue("RssXml", RSS_URL);
+         }
+
+         xmlInputStream = new URL(newURL).openStream();
+         if(xmlInputStream == null)
+         {
+            log.error(E_UNREADABLE);
+            throw new PortletException(E_UNREADABLE);
+         }
+
+         // Ready the parsers
+         DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();
+         DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
+         Transformer transformer = this.template_2_0.newTransformer();
+
+         Source xmlSource = null;
+         try
+         {
+            Document document = docBuilder.parse(xmlInputStream);
+            transformer = this.template_2_0.newTransformer();
+            xmlSource = new DOMSource(document);
+
+            // added 1.0 check
+            Element element = document.getDocumentElement();
+            if(element.hasAttribute("version") && element.getAttribute("version").equals("1.0"))
+            {
+               transformer = this.template_1_0.newTransformer();
+            }
+         }
+         catch(TransformerConfigurationException tce)
+         {
+            log.error(E_UNPARSEABLE, tce);
+            throw new PortletException(E_UNPARSEABLE, tce);
+         }
+
+         // Transform document
+         PrintWriter writer = response.getWriter();
+         StreamResult outStream = new StreamResult(writer);
+         transformer.transform(xmlSource, outStream);
+      }
+      catch(Exception e)
+      {
+         log.error("Fatal Error reading/parsing XML Source.",e);
+         PrintWriter writer = response.getWriter();
+         writer.write("Failed to retrieve News Feed!");
+         writer.close();
+      }
+      finally // close all streams
+      {
+         if(xmlInputStream != null)
+         {
+            xmlInputStream.close();
+         }
+
+         if(xslInputStream != null)
+         {
+            xslInputStream.close();
+         }
+      }
+   }
+
+   /**
+    * Allow edit of RSS Feed.
+    *
+    * @param request
+    * @param response
+    * @throws java.io.IOException
+    * @throws javax.portlet.PortletException
+    */
+   protected void doEdit(RenderRequest request, RenderResponse response) throws IOException, PortletException
+   {
+      response.setContentType("text/html");
+      PortletRequestDispatcher dispatcher = getPortletContext().getRequestDispatcher(JSP_EDIT);
+      dispatcher.include(request, response);
+   }
+
+   /**
+    * Process RSS Feed edit.
+    *
+    * @param request
+    * @param response
+    * @throws javax.portlet.PortletException
+    */
+   public void processAction(ActionRequest request, ActionResponse response) throws PortletException
+   {
+      String newURL = request.getParameter("newurl");
+
+      if(null != newURL)
+      {
+         PortletPreferences prefs = request.getPreferences();
+         try
+         {
+            if(!prefs.isReadOnly("RssXml"))
+            {
+               prefs.setValue("RssXml", newURL);
+               prefs.store();
+            }
+         }
+         catch(Exception e)
+         {
+            e.printStackTrace();
+         }
+      }
+
+      //store as the selected xml so that it shows up selected as displays
+      response.setRenderParameter("newurl", newURL);
+
+      //set the portlet mode back to view
+      response.setPortletMode(PortletMode.VIEW);
+   }
+}
\ No newline at end of file


Property changes on: portlets/src/miscellaneous/JBoss_NewsPortlet/src/resources/newsportlet-war_22/WEB-INF
___________________________________________________________________
Name: svn:ignore
   + classes


Added: portlets/src/miscellaneous/JBoss_NewsPortlet/src/resources/newsportlet-war_22/WEB-INF/Rss1.xsl
===================================================================
--- portlets/src/miscellaneous/JBoss_NewsPortlet/src/resources/newsportlet-war_22/WEB-INF/Rss1.xsl	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/JBoss_NewsPortlet/src/resources/newsportlet-war_22/WEB-INF/Rss1.xsl	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,31 @@
+<?xml version="1.0"?>
+
+<xsl:stylesheet
+      xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+      version="1.0">
+
+   <xsl:output method="html"/>
+
+   <xsl:template match="/">
+      <TABLE WIDTH="100%" BORDER="0" CELLPADDING="2" CELLSPACING="0">
+         <xsl:apply-templates/>
+      </TABLE>
+   </xsl:template>
+
+   <xsl:template match="item">
+      <TR>
+         <TD>
+            -
+            <A TARGET="_popup" STYLE="text-decoration: none;">
+               <xsl:attribute name="HREF">
+                  <xsl:value-of select="link"/>
+               </xsl:attribute>
+               <xsl:value-of select="title"/>
+            </A>
+         </TD>
+      </TR>
+      <xsl:apply-templates/>
+   </xsl:template>
+
+   <xsl:template match="text()"/>
+</xsl:stylesheet>
\ No newline at end of file

Added: portlets/src/miscellaneous/JBoss_NewsPortlet/src/resources/newsportlet-war_22/WEB-INF/Rss2.xsl
===================================================================
--- portlets/src/miscellaneous/JBoss_NewsPortlet/src/resources/newsportlet-war_22/WEB-INF/Rss2.xsl	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/JBoss_NewsPortlet/src/resources/newsportlet-war_22/WEB-INF/Rss2.xsl	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,31 @@
+<?xml version="1.0" ?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+   <xsl:output method="xml" omit-xml-declaration="yes" indent="yes"/>
+   <xsl:variable name="link-path">
+      <xsl:value-of select="rss/channel/link"/>
+   </xsl:variable>
+   <xsl:template match="/">
+      <div align="center">
+         <a href="{$link-path}" target="_blank">
+            <xsl:value-of select="rss/channel/title"/>
+         </a>
+      </div>
+      <ul>
+         <xsl:for-each select="rss/channel/item">
+            <xsl:variable name="this-link">
+               <xsl:value-of select="link"/>
+            </xsl:variable>
+            <li>
+               <a href="{$this-link}" target="_blank">
+                  <xsl:value-of select="title"/>
+               </a>
+            </li>
+            <!--         <xsl:value-of select="description" disable-output-escaping="yes"/>
+         <br/>-->
+         </xsl:for-each>
+      </ul>
+      <br/>
+      <br/>
+      <xsl:value-of select="rss/channel/copyright"/>
+   </xsl:template>
+</xsl:stylesheet>

Added: portlets/src/miscellaneous/JBoss_NewsPortlet/src/resources/newsportlet-war_22/WEB-INF/jboss-app.xml
===================================================================
--- portlets/src/miscellaneous/JBoss_NewsPortlet/src/resources/newsportlet-war_22/WEB-INF/jboss-app.xml	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/JBoss_NewsPortlet/src/resources/newsportlet-war_22/WEB-INF/jboss-app.xml	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,3 @@
+<jboss-app>
+   <app-name>news</app-name>
+</jboss-app>
\ No newline at end of file

Added: portlets/src/miscellaneous/JBoss_NewsPortlet/src/resources/newsportlet-war_22/WEB-INF/jboss-web.xml
===================================================================
--- portlets/src/miscellaneous/JBoss_NewsPortlet/src/resources/newsportlet-war_22/WEB-INF/jboss-web.xml	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/JBoss_NewsPortlet/src/resources/newsportlet-war_22/WEB-INF/jboss-web.xml	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,3 @@
+<?xml version="1.0"?>
+<jboss-web>
+</jboss-web>

Added: portlets/src/miscellaneous/JBoss_NewsPortlet/src/resources/newsportlet-war_22/WEB-INF/jsp/edit.jsp
===================================================================
--- portlets/src/miscellaneous/JBoss_NewsPortlet/src/resources/newsportlet-war_22/WEB-INF/jsp/edit.jsp	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/JBoss_NewsPortlet/src/resources/newsportlet-war_22/WEB-INF/jsp/edit.jsp	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,17 @@
+<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet" %>
+<%@ page isELIgnored="false" %>
+
+<portlet:defineObjects/>
+
+<div align="center">
+   <br/>
+   <font class="portlet-font">Change News Feed URL:</font>
+
+   <form method="post" action="
+<portlet:actionURL></portlet:actionURL>">
+      <font class="portlet-font">URL:</font><br/>
+      <input class="portlet-form-input-field" type="text" value="" size="12" name="newurl">
+      <br/>
+      <input class="portlet-form-input-field" type="submit" name="submit" value="submit">
+   </form>
+</div>
\ No newline at end of file

Added: portlets/src/miscellaneous/JBoss_NewsPortlet/src/resources/newsportlet-war_22/WEB-INF/news-object.xml
===================================================================
--- portlets/src/miscellaneous/JBoss_NewsPortlet/src/resources/newsportlet-war_22/WEB-INF/news-object.xml	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/JBoss_NewsPortlet/src/resources/newsportlet-war_22/WEB-INF/news-object.xml	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<deployments>
+   <deployment>
+      <if-exists>overwrite</if-exists>
+      <parent-ref>default</parent-ref>
+      <page>
+         <page-name>News</page-name>
+         <window>
+            <window-name>NewsPortletWindow</window-name>
+            <instance-ref>NewsPortletInstance</instance-ref>
+            <region>center</region>
+            <height>0</height>
+         </window>
+      </page>
+   </deployment>
+   <deployment>
+      <if-exists>overwrite</if-exists>
+      <instance>
+         <instance-name>NewsPortletInstance</instance-name>
+         <component-ref>news.NewsPortlet</component-ref>
+      </instance>
+   </deployment>
+</deployments>

Added: portlets/src/miscellaneous/JBoss_NewsPortlet/src/resources/newsportlet-war_22/WEB-INF/portlet.xml
===================================================================
--- portlets/src/miscellaneous/JBoss_NewsPortlet/src/resources/newsportlet-war_22/WEB-INF/portlet.xml	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/JBoss_NewsPortlet/src/resources/newsportlet-war_22/WEB-INF/portlet.xml	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
+             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+             xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd /opt/SUNWps/dtd/portlet.xsd"
+             version="1.0">
+   <portlet>
+      <portlet-name>NewsPortlet</portlet-name>
+      <portlet-class>org.jboss.portlet.news.NewsPortlet</portlet-class>
+      <init-param>
+         <name>RSS1_XSL</name>
+         <value>/WEB-INF/Rss1.xsl</value>
+      </init-param>
+      <init-param>
+         <name>RSS2_XSL</name>
+         <value>/WEB-INF/Rss2.xsl</value>
+      </init-param>
+      <init-param>
+         <name>base_url</name>
+         <value>http://jboss.org/jbossBlog/blog/?flavor=rss2</value>
+      </init-param>
+      <expiration-cache>0</expiration-cache>
+      <supports>
+         <mime-type>text/html</mime-type>
+         <portlet-mode>VIEW</portlet-mode>
+         <portlet-mode>EDIT</portlet-mode>
+      </supports>
+      <portlet-info>
+         <title>News Feeds</title>
+      </portlet-info>
+      <portlet-preferences>
+         <preference>
+            <name>expires</name>
+            <value>180</value>
+         </preference>
+         <preference>
+            <name>RssXml</name>
+            <value>http://jboss.org/jbossBlog/blog/?flavor=rss2</value>
+         </preference>
+      </portlet-preferences>
+   </portlet>
+</portlet-app>

Added: portlets/src/miscellaneous/JBoss_NewsPortlet/src/resources/newsportlet-war_22/WEB-INF/web.xml
===================================================================
--- portlets/src/miscellaneous/JBoss_NewsPortlet/src/resources/newsportlet-war_22/WEB-INF/web.xml	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/JBoss_NewsPortlet/src/resources/newsportlet-war_22/WEB-INF/web.xml	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,6 @@
+<?xml version="1.0"?>
+<!DOCTYPE web-app PUBLIC
+   "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
+   "http://java.sun.com/dtd/web-app_2_3.dtd">
+<web-app>
+</web-app>


Property changes on: portlets/src/miscellaneous/JBoss_NewsPortlet/src/resources/newsportlet-war_24/WEB-INF
___________________________________________________________________
Name: svn:ignore
   + classes


Added: portlets/src/miscellaneous/JBoss_NewsPortlet/src/resources/newsportlet-war_24/WEB-INF/Rss1.xsl
===================================================================
--- portlets/src/miscellaneous/JBoss_NewsPortlet/src/resources/newsportlet-war_24/WEB-INF/Rss1.xsl	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/JBoss_NewsPortlet/src/resources/newsportlet-war_24/WEB-INF/Rss1.xsl	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,31 @@
+<?xml version="1.0"?>
+
+<xsl:stylesheet
+      xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+      version="1.0">
+
+   <xsl:output method="html"/>
+
+   <xsl:template match="/">
+      <TABLE WIDTH="100%" BORDER="0" CELLPADDING="2" CELLSPACING="0">
+         <xsl:apply-templates/>
+      </TABLE>
+   </xsl:template>
+
+   <xsl:template match="item">
+      <TR>
+         <TD>
+            -
+            <A TARGET="_popup" STYLE="text-decoration: none;">
+               <xsl:attribute name="HREF">
+                  <xsl:value-of select="link"/>
+               </xsl:attribute>
+               <xsl:value-of select="title"/>
+            </A>
+         </TD>
+      </TR>
+      <xsl:apply-templates/>
+   </xsl:template>
+
+   <xsl:template match="text()"/>
+</xsl:stylesheet>
\ No newline at end of file

Added: portlets/src/miscellaneous/JBoss_NewsPortlet/src/resources/newsportlet-war_24/WEB-INF/Rss2.xsl
===================================================================
--- portlets/src/miscellaneous/JBoss_NewsPortlet/src/resources/newsportlet-war_24/WEB-INF/Rss2.xsl	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/JBoss_NewsPortlet/src/resources/newsportlet-war_24/WEB-INF/Rss2.xsl	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,31 @@
+<?xml version="1.0" ?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+   <xsl:output method="xml" omit-xml-declaration="yes" indent="yes"/>
+   <xsl:variable name="link-path">
+      <xsl:value-of select="rss/channel/link"/>
+   </xsl:variable>
+   <xsl:template match="/">
+      <div align="center">
+         <a href="{$link-path}" target="_blank">
+            <xsl:value-of select="rss/channel/title"/>
+         </a>
+      </div>
+      <ul>
+         <xsl:for-each select="rss/channel/item">
+            <xsl:variable name="this-link">
+               <xsl:value-of select="link"/>
+            </xsl:variable>
+            <li>
+               <a href="{$this-link}" target="_blank">
+                  <xsl:value-of select="title"/>
+               </a>
+            </li>
+            <!--         <xsl:value-of select="description" disable-output-escaping="yes"/>
+         <br/>-->
+         </xsl:for-each>
+      </ul>
+      <br/>
+      <br/>
+      <xsl:value-of select="rss/channel/copyright"/>
+   </xsl:template>
+</xsl:stylesheet>

Added: portlets/src/miscellaneous/JBoss_NewsPortlet/src/resources/newsportlet-war_24/WEB-INF/jboss-app.xml
===================================================================
--- portlets/src/miscellaneous/JBoss_NewsPortlet/src/resources/newsportlet-war_24/WEB-INF/jboss-app.xml	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/JBoss_NewsPortlet/src/resources/newsportlet-war_24/WEB-INF/jboss-app.xml	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,3 @@
+<jboss-app>
+   <app-name>news</app-name>
+</jboss-app>
\ No newline at end of file

Added: portlets/src/miscellaneous/JBoss_NewsPortlet/src/resources/newsportlet-war_24/WEB-INF/jboss-web.xml
===================================================================
--- portlets/src/miscellaneous/JBoss_NewsPortlet/src/resources/newsportlet-war_24/WEB-INF/jboss-web.xml	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/JBoss_NewsPortlet/src/resources/newsportlet-war_24/WEB-INF/jboss-web.xml	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,3 @@
+<?xml version="1.0"?>
+<jboss-web>
+</jboss-web>

Added: portlets/src/miscellaneous/JBoss_NewsPortlet/src/resources/newsportlet-war_24/WEB-INF/jsp/edit.jsp
===================================================================
--- portlets/src/miscellaneous/JBoss_NewsPortlet/src/resources/newsportlet-war_24/WEB-INF/jsp/edit.jsp	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/JBoss_NewsPortlet/src/resources/newsportlet-war_24/WEB-INF/jsp/edit.jsp	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,17 @@
+<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet" %>
+<%@ page isELIgnored="false" %>
+
+<portlet:defineObjects/>
+
+<div align="center">
+   <br/>
+   <font class="portlet-font">Change News Feed URL:</font>
+
+   <form method="post" action="
+<portlet:actionURL></portlet:actionURL>">
+      <font class="portlet-font">URL:</font><br/>
+      <input class="portlet-form-input-field" type="text" value="" size="12" name="newurl">
+      <br/>
+      <input class="portlet-form-input-field" type="submit" name="submit" value="submit">
+   </form>
+</div>
\ No newline at end of file

Added: portlets/src/miscellaneous/JBoss_NewsPortlet/src/resources/newsportlet-war_24/WEB-INF/news-object.xml
===================================================================
--- portlets/src/miscellaneous/JBoss_NewsPortlet/src/resources/newsportlet-war_24/WEB-INF/news-object.xml	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/JBoss_NewsPortlet/src/resources/newsportlet-war_24/WEB-INF/news-object.xml	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<deployments>
+   <deployment>
+      <if-exists>overwrite</if-exists>
+      <parent-ref>default</parent-ref>
+      <page>
+         <page-name>RSSNews</page-name>
+         <window>
+            <window-name>RSSNewsPortletWindow</window-name>
+            <instance-ref>RSSNewsPortletInstance</instance-ref>
+            <region>center</region>
+            <height>0</height>
+         </window>
+      </page>
+   </deployment>
+</deployments>

Added: portlets/src/miscellaneous/JBoss_NewsPortlet/src/resources/newsportlet-war_24/WEB-INF/portlet-instances.xml
===================================================================
--- portlets/src/miscellaneous/JBoss_NewsPortlet/src/resources/newsportlet-war_24/WEB-INF/portlet-instances.xml	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/JBoss_NewsPortlet/src/resources/newsportlet-war_24/WEB-INF/portlet-instances.xml	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,10 @@
+<?xml version="1.0" standalone="yes"?>
+<deployments>
+   <deployment>
+      <if-exists>overwrite</if-exists>
+      <instance>
+         <instance-id>RSSNewsPortletInstance</instance-id>
+         <portlet-ref>RSSNewsPortlet</portlet-ref>
+      </instance>
+   </deployment>
+</deployments>
\ No newline at end of file

Added: portlets/src/miscellaneous/JBoss_NewsPortlet/src/resources/newsportlet-war_24/WEB-INF/portlet.xml
===================================================================
--- portlets/src/miscellaneous/JBoss_NewsPortlet/src/resources/newsportlet-war_24/WEB-INF/portlet.xml	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/JBoss_NewsPortlet/src/resources/newsportlet-war_24/WEB-INF/portlet.xml	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
+             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+             xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd /opt/SUNWps/dtd/portlet.xsd"
+             version="1.0">
+   <portlet>
+      <portlet-name>RSSNewsPortlet</portlet-name>
+      <portlet-class>org.jboss.portlet.news.NewsPortlet</portlet-class>
+      <init-param>
+         <name>RSS1_XSL</name>
+         <value>/WEB-INF/Rss1.xsl</value>
+      </init-param>
+      <init-param>
+         <name>RSS2_XSL</name>
+         <value>/WEB-INF/Rss2.xsl</value>
+      </init-param>
+      <init-param>
+         <name>base_url</name>
+         <value>http://jboss.org/jbossBlog/blog/?flavor=rss2</value>
+      </init-param>
+      <expiration-cache>0</expiration-cache>
+      <supports>
+         <mime-type>text/html</mime-type>
+         <portlet-mode>VIEW</portlet-mode>
+         <portlet-mode>EDIT</portlet-mode>
+      </supports>
+      <portlet-info>
+         <title>News Feeds</title>
+      </portlet-info>
+      <portlet-preferences>
+         <preference>
+            <name>expires</name>
+            <value>180</value>
+         </preference>
+         <preference>
+            <name>RssXml</name>
+            <value>http://jboss.org/jbossBlog/blog/?flavor=rss2</value>
+         </preference>
+      </portlet-preferences>
+   </portlet>
+</portlet-app>

Added: portlets/src/miscellaneous/JBoss_NewsPortlet/src/resources/newsportlet-war_24/WEB-INF/web.xml
===================================================================
--- portlets/src/miscellaneous/JBoss_NewsPortlet/src/resources/newsportlet-war_24/WEB-INF/web.xml	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/JBoss_NewsPortlet/src/resources/newsportlet-war_24/WEB-INF/web.xml	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,6 @@
+<?xml version="1.0"?>
+<!DOCTYPE web-app PUBLIC
+   "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
+   "http://java.sun.com/dtd/web-app_2_3.dtd">
+<web-app>
+</web-app>


Property changes on: portlets/src/miscellaneous/JBoss_WeatherPortlet
___________________________________________________________________
Name: svn:ignore
   + output


Added: portlets/src/miscellaneous/JBoss_WeatherPortlet/LICENSES.txt
===================================================================
--- portlets/src/miscellaneous/JBoss_WeatherPortlet/LICENSES.txt	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/JBoss_WeatherPortlet/LICENSES.txt	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,2 @@
+LGPL: explode.jar, portal-common.jar, portal-core-lib.jar, portlet-api.jar
+ASL: log4j.jar
\ No newline at end of file

Added: portlets/src/miscellaneous/JBoss_WeatherPortlet/README.txt
===================================================================
--- portlets/src/miscellaneous/JBoss_WeatherPortlet/README.txt	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/JBoss_WeatherPortlet/README.txt	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,14 @@
+This portlet works with JBoss Portal 2.2+. It retrieves an RSS Feed from Yahoo! Weather and displays a forecast of the
+weather for a given postal code. This software is distributed under the LGPL, unless otherwise noted in the LICENSES.txt.
+
+For JBoss Portal 2.2:
+- To build the war file, use ant to execute the build.xml at the root of this bundle, ie.  "ant deploy22"
+- To deploy this portlet, simply copy the weatherportlet.war file to your /deploy directory where JBoss Portal resides.
+
+For JBoss Portal 2.4:
+- To build the war file, use ant to execute the build.xml at the root of this bundle, ie.  "ant deploy24"
+- To deploy this portlet, simply copy the weatherportlet.war file to your /deploy directory where JBoss Portal resides.
+
+For other Portal servers:
+- To build the war file, use ant to execute the build.xml at the root of this bundle, ie.  "ant deploy"
+- You will then need to add any proprietary descriptors your portal server vendor recommends and deploy.

Added: portlets/src/miscellaneous/JBoss_WeatherPortlet/build.xml
===================================================================
--- portlets/src/miscellaneous/JBoss_WeatherPortlet/build.xml	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/JBoss_WeatherPortlet/build.xml	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,107 @@
+<project name="JBoss Weather Portlet"
+         default="deploy24"
+         basedir=".">
+
+   <property name="app.name" value="weatherportlet"/>
+
+   <property name="src.dir" value="${basedir}/src"/>
+
+   <property name="lib.dir" value="${basedir}/lib"/>
+
+   <property name="build.dir" value="${basedir}/output"/>
+
+   <property name="build.lib" value="${build.dir}/lib"/>
+
+   <property name="build.resources" value="${src.dir}/resources"/>
+
+   <property name="build.etc" value="${src.dir}/etc"/>
+
+   <property name="classes.dir" value="${build.dir}/classes"/>
+
+   <property name="dist.dir" value="${src.dir}/resources"/>
+
+   <property name="libs.api" value="${lib.dir}/portlet-api-lib.jar"/>
+
+   <property name="libs.ant"
+             value="${lib.dir}/log4j.jar;${lib.dir}/explode.jar;${lib.dir}/portal-common-lib.jar;${lib.dir}"/>
+
+   <property name="libs" value="${libs.api};${libs.ant}"/>
+
+   <available property="clover.available" classname="org.apache.tools.ant.taskdefs.CloverCompilerAdapter"/>
+
+   <target name="clover-yes" depends="prepare" if="clover.available">
+      <property name="compiler" value="org.apache.tools.ant.taskdefs.CloverCompilerAdapter"/>
+   </target>
+
+   <target name="clover-no" depends="prepare" unless="clover.available">
+      <property name="compiler" value="modern"/>
+   </target>
+
+   <target name="prepare">
+      <mkdir dir="${classes.dir}"/>
+      <mkdir dir="${build.lib}"/>
+      <mkdir dir="${build.lib}/exploded"/>
+   </target>
+
+   <target name="clean">
+      <delete dir="${build.dir}"/>
+   </target>
+
+   <target name="deploy24" depends="clover-yes, clover-no">
+      <javac srcdir="${src.dir}"
+             destdir="${classes.dir}"
+             classpath="${libs}"
+             debug="off"
+             optimize="on"
+             deprecation="on"
+             compiler="${compiler}">
+         <include name="main/org/jboss/portlet/**/*.java"/>
+      </javac>
+
+      <copydir src="${classes.dir}" dest="${build.resources}/weatherportlet-war_24/WEB-INF/classes">
+      </copydir>
+
+      <!-- weatherportlet.war -->
+      <jar jarfile="weatherportlet.war">
+         <manifest>
+            <attribute name="Manifest-Version" value="1.0"/>
+         </manifest>
+         <fileset dir="${build.resources}/weatherportlet-war_24"/>
+      </jar>
+   </target>
+
+   <target name="deploy22" depends="clover-yes, clover-no">
+      <javac srcdir="${src.dir}"
+             destdir="${classes.dir}"
+             classpath="${libs}"
+             debug="off"
+             optimize="on"
+             deprecation="on"
+             compiler="${compiler}">
+         <include name="main/org/jboss/portlet/**/*.java"/>
+      </javac>
+
+      <copydir src="${classes.dir}" dest="${build.resources}/weatherportlet-war_22/WEB-INF/classes">
+      </copydir>
+
+      <!-- weatherportlet.war -->
+      <jar jarfile="weatherportlet.war">
+         <manifest>
+            <attribute name="Manifest-Version" value="1.0"/>
+         </manifest>
+         <fileset dir="${build.resources}/weatherportlet-war_22"/>
+      </jar>
+   </target>
+
+   <target name="explode" depends="deploy24">
+      <taskdef classname="org.jboss.portal.common.ant.Explode"
+               name="explode"
+               classpath="${libs}"/>
+      <explode
+            file="weatherportlet.war"
+            todir="${build.lib}/exploded"
+            name="weatherportlet.war"/>
+   </target>
+   <target name="all" depends="deploy24"/>
+</project>
+

Added: portlets/src/miscellaneous/JBoss_WeatherPortlet/lib/explode.jar
===================================================================
(Binary files differ)


Property changes on: portlets/src/miscellaneous/JBoss_WeatherPortlet/lib/explode.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: portlets/src/miscellaneous/JBoss_WeatherPortlet/lib/log4j.jar
===================================================================
(Binary files differ)


Property changes on: portlets/src/miscellaneous/JBoss_WeatherPortlet/lib/log4j.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: portlets/src/miscellaneous/JBoss_WeatherPortlet/lib/portal-common-lib.jar
===================================================================
(Binary files differ)


Property changes on: portlets/src/miscellaneous/JBoss_WeatherPortlet/lib/portal-common-lib.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: portlets/src/miscellaneous/JBoss_WeatherPortlet/lib/portlet-api-lib.jar
===================================================================
(Binary files differ)


Property changes on: portlets/src/miscellaneous/JBoss_WeatherPortlet/lib/portlet-api-lib.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: portlets/src/miscellaneous/JBoss_WeatherPortlet/src/etc/weatherportlet-war.mf
===================================================================
--- portlets/src/miscellaneous/JBoss_WeatherPortlet/src/etc/weatherportlet-war.mf	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/JBoss_WeatherPortlet/src/etc/weatherportlet-war.mf	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,11 @@
+Manifest-Version: 1.0
+Created-By: @java.vm.version@ (@java.vm.vendor@)
+Specification-Title: @specification.title@
+Specification-Version: @specification.version@
+Specification-Vendor: @specification.vendor@
+Implementation-Title: @implementation.title@
+Implementation-URL: @implementation.url@
+Implementation-Version: @implementation.version@
+Implementation-Vendor: @implementation.vendor@
+Implementation-Vendor-Id: @implementation.vendor.id@
+Class-Path: ./weatherportlet-lib.jar
\ No newline at end of file

Added: portlets/src/miscellaneous/JBoss_WeatherPortlet/src/main/org/jboss/portlet/weather/WeatherPortlet.java
===================================================================
--- portlets/src/miscellaneous/JBoss_WeatherPortlet/src/main/org/jboss/portlet/weather/WeatherPortlet.java	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/JBoss_WeatherPortlet/src/main/org/jboss/portlet/weather/WeatherPortlet.java	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,227 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2005, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+
+
+package org.jboss.portlet.weather;
+
+import org.apache.log4j.Logger;
+import org.w3c.dom.Document;
+
+import javax.portlet.ActionRequest;
+import javax.portlet.ActionResponse;
+import javax.portlet.GenericPortlet;
+import javax.portlet.PortletException;
+import javax.portlet.PortletMode;
+import javax.portlet.PortletPreferences;
+import javax.portlet.PortletRequestDispatcher;
+import javax.portlet.RenderRequest;
+import javax.portlet.RenderResponse;
+import javax.xml.parsers.DocumentBuilder;
+import javax.xml.parsers.DocumentBuilderFactory;
+import javax.xml.transform.Source;
+import javax.xml.transform.Templates;
+import javax.xml.transform.Transformer;
+import javax.xml.transform.TransformerConfigurationException;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.transform.stream.StreamResult;
+import javax.xml.transform.stream.StreamSource;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.PrintWriter;
+import java.net.URL;
+
+public class WeatherPortlet extends GenericPortlet
+{
+   /**
+    * Logger
+    */
+   public static Logger log = Logger.getLogger(WeatherPortlet.class);
+
+   /**
+    * Edit page
+    */
+   private static final String JSP_EDIT = "/WEB-INF/jsp/edit.jsp";
+
+   /**
+    * Default zip set in init param.
+    */
+   private String DEFAULT_ZIP;
+
+   /**
+    * RSS 2.0 XSL page for output
+    */
+   private static final String RSS_XSL = "/WEB-INF/Rss.xsl";
+
+   /**
+    * Compiled Template for output
+    */
+   private Templates template_2_0;
+
+   /**
+    * Base URL of Weather RSS
+    */
+   private String RSS_URL_PREFIX;
+
+   private static final String E_XSL_UNREADABLE = "Unable to prepare XSL files.";
+   private static final String E_UNREADABLE = "Unable to read XML Source.";
+   private static final String E_UNPARSEABLE = "Unable to parse XML Source.";
+
+   /**
+    * Compile the XSL File.
+    */
+   public void init()
+   {
+      try
+      {
+         InputStream inputstream = getPortletContext().getResourceAsStream(WeatherPortlet.RSS_XSL);
+         StreamSource xslSource = new StreamSource(inputstream);
+         TransformerFactory tFactory = TransformerFactory.newInstance();
+         this.template_2_0 = tFactory.newTemplates(xslSource);
+
+         this.DEFAULT_ZIP = getInitParameter("default_zipcode");
+         this.RSS_URL_PREFIX = getInitParameter("base_url");
+      }
+      catch(TransformerConfigurationException tce)
+      {
+         log.error(E_XSL_UNREADABLE, tce);
+      }
+   }
+
+   protected void doView(RenderRequest request, RenderResponse response) throws IOException, PortletException
+   {
+      response.setProperty("expiration-cache", request.getPreferences().getValue("expires", "180"));
+
+      InputStream xmlInputStream = null;
+      InputStream xslInputStream = null;
+
+      String newZip = null;
+      try
+      {
+         newZip = request.getParameter("newzip");
+         response.setContentType("text/html");
+
+         if(null == newZip)
+         {
+            newZip = request.getPreferences().getValue("RssXml", RSS_URL_PREFIX + DEFAULT_ZIP);
+         }
+
+         xmlInputStream = new URL(newZip).openStream();
+         if(xmlInputStream == null)
+         {
+            log.error(E_UNREADABLE);
+            throw new PortletException(E_UNREADABLE);
+         }
+
+         // Ready the parsers
+         DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();
+         DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
+         Transformer transformer = this.template_2_0.newTransformer();
+
+         Source xmlSource = null;
+         try
+         {
+            Document document = docBuilder.parse(xmlInputStream);
+            transformer = this.template_2_0.newTransformer();
+            xmlSource = new DOMSource(document);
+         }
+         catch(TransformerConfigurationException tce)
+         {
+            log.error(E_UNPARSEABLE, tce);
+            throw new PortletException(E_UNPARSEABLE, tce);
+         }
+
+         // Transform document
+         PrintWriter writer = response.getWriter();
+         StreamResult outStream = new StreamResult(writer);
+         transformer.transform(xmlSource, outStream);
+      }
+      catch(Exception e)
+      {
+         log.error("Fatal Error reading/parsing XML Source.", e);
+         PrintWriter writer = response.getWriter();
+         writer.write("Failed to retrieve Weather Feed!");
+         writer.close();
+      }
+      finally // close all streams
+      {
+         if(xmlInputStream != null)
+         {
+            xmlInputStream.close();
+         }
+
+         if(xslInputStream != null)
+         {
+            xslInputStream.close();
+         }
+      }
+   }
+
+   /**
+    * Allow edit of weather location.
+    *
+    * @param request
+    * @param response
+    * @throws IOException
+    * @throws PortletException
+    */
+   protected void doEdit(RenderRequest request, RenderResponse response) throws IOException, PortletException
+   {
+      response.setContentType("text/html");
+      PortletRequestDispatcher dispatcher = getPortletContext().getRequestDispatcher(JSP_EDIT);
+      dispatcher.include(request, response);
+   }
+
+   /**
+    * Process weather location edit and store in user preferences.
+    *
+    * @param request
+    * @param response
+    * @throws PortletException
+    */
+   public void processAction(ActionRequest request, ActionResponse response) throws PortletException
+   {
+      String newZip = request.getParameter("newzip");
+
+      if(null != newZip)
+      {
+         PortletPreferences prefs = request.getPreferences();
+         try
+         {
+            prefs.setValue("RssXml", RSS_URL_PREFIX + newZip);
+            prefs.store();
+         }
+         catch(Exception e)
+         {
+            e.printStackTrace();
+         }
+      }
+
+      // TODO: error checking for URL + NewZIP
+
+      //store as the selected xml so that it shows up selected as displays
+      response.setRenderParameter("newzip", RSS_URL_PREFIX + newZip);
+
+      //set the portlet mode back to view
+      response.setPortletMode(PortletMode.VIEW);
+   }
+}
\ No newline at end of file


Property changes on: portlets/src/miscellaneous/JBoss_WeatherPortlet/src/resources/weatherportlet-war_22/WEB-INF
___________________________________________________________________
Name: svn:ignore
   + classes


Added: portlets/src/miscellaneous/JBoss_WeatherPortlet/src/resources/weatherportlet-war_22/WEB-INF/Rss.xsl
===================================================================
--- portlets/src/miscellaneous/JBoss_WeatherPortlet/src/resources/weatherportlet-war_22/WEB-INF/Rss.xsl	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/JBoss_WeatherPortlet/src/resources/weatherportlet-war_22/WEB-INF/Rss.xsl	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,77 @@
+<?xml version="1.0" ?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+   <xsl:output method="xml" omit-xml-declaration="yes" indent="yes"/>
+   <xsl:variable name="image-path">http://us.i1.yimg.com/us.yimg.com/i/us/we/52/</xsl:variable>
+   <xsl:variable name="link-path">
+      <xsl:value-of select="rss/channel/link"/>
+   </xsl:variable>
+   <xsl:template match="/">
+      <br/>
+      <div align="center">
+         <font>
+            <b>
+               <xsl:for-each select="rss/channel/location">
+                  <xsl:value-of select="@city"/>, <xsl:value-of select="@region"/>, <xsl:value-of
+                     select="@country"/>
+               </xsl:for-each>
+            </b>
+         </font>
+         <br/>
+         <br/>
+         <table width="130" border="0">
+            <tr>
+               <xsl:for-each select="rss/channel/item/condition">
+                  <td>
+                     <table border="0" height="130">
+                        <tr>
+                           <td class="portlet-section-header" align="center">Currently</td>
+                        </tr>
+                        <tr>
+                           <td class="portlet-section-alternate" align="center" valign="top">
+                              <img src="{$image-path}/{@code}.gif"/>
+                           </td>
+                        </tr>
+                        <tr>
+                           <td class="portlet-section-alternate" align="center" valign="top">
+                              <xsl:value-of select="@text"/>
+                           </td>
+                        </tr>
+                        <tr>
+                           <td class="portlet-section-alternate" align="center" valign="top">
+                              <xsl:value-of select="@temp"/>F</td>
+                        </tr>
+                     </table>
+                  </td>
+               </xsl:for-each>
+               <xsl:for-each select="rss/channel/item/forecast">
+                  <td>
+                     <table border="0" height="130">
+                        <tr>
+                           <td class="portlet-section-header" align="center" valign="top">
+                              <xsl:value-of select="@day"/>
+                           </td>
+                        </tr>
+                        <tr>
+                           <td class="portlet-section-alternate" align="center" valign="top">
+                              <img src="{$image-path}/{@code}.gif"/>
+                           </td>
+                        </tr>
+                        <tr>
+                           <td class="portlet-section-alternate" align="center" valign="top">
+                              <xsl:value-of select="@text"/>
+                           </td>
+                        </tr>
+                        <tr>
+                           <td class="portlet-section-alternate" align="center" valign="top">
+                              <xsl:value-of select="@low"/>F/<xsl:value-of select="@high"/>F</td>
+                        </tr>
+                     </table>
+                  </td>
+               </xsl:for-each>
+            </tr>
+         </table>
+         <br/>
+         <a href="{$link-path}" target="_blank">Complete Forecast</a>
+      </div>
+   </xsl:template>
+</xsl:stylesheet>

Added: portlets/src/miscellaneous/JBoss_WeatherPortlet/src/resources/weatherportlet-war_22/WEB-INF/jboss-app.xml
===================================================================
--- portlets/src/miscellaneous/JBoss_WeatherPortlet/src/resources/weatherportlet-war_22/WEB-INF/jboss-app.xml	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/JBoss_WeatherPortlet/src/resources/weatherportlet-war_22/WEB-INF/jboss-app.xml	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,3 @@
+<jboss-app>
+   <app-name>weather</app-name>
+</jboss-app>
\ No newline at end of file

Added: portlets/src/miscellaneous/JBoss_WeatherPortlet/src/resources/weatherportlet-war_22/WEB-INF/jboss-web.xml
===================================================================
--- portlets/src/miscellaneous/JBoss_WeatherPortlet/src/resources/weatherportlet-war_22/WEB-INF/jboss-web.xml	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/JBoss_WeatherPortlet/src/resources/weatherportlet-war_22/WEB-INF/jboss-web.xml	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,3 @@
+<?xml version="1.0"?>
+<jboss-web>
+</jboss-web>

Added: portlets/src/miscellaneous/JBoss_WeatherPortlet/src/resources/weatherportlet-war_22/WEB-INF/jsp/edit.jsp
===================================================================
--- portlets/src/miscellaneous/JBoss_WeatherPortlet/src/resources/weatherportlet-war_22/WEB-INF/jsp/edit.jsp	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/JBoss_WeatherPortlet/src/resources/weatherportlet-war_22/WEB-INF/jsp/edit.jsp	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,17 @@
+<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet" %>
+<%@ page isELIgnored="false" %>
+
+<portlet:defineObjects/>
+
+<div align="center">
+   <br/>
+   <font class="portlet-font">Change Weather Location:</font>
+
+   <form method="post" action="
+<portlet:actionURL></portlet:actionURL>">
+      <font class="portlet-font">Zip Code:</font><br/>
+      <input class="portlet-form-input-field" type="text" value="" size="12" name="newzip">
+      <br/>
+      <input class="portlet-form-input-field" type="submit" name="submit" value="submit">
+   </form>
+</div>
\ No newline at end of file

Added: portlets/src/miscellaneous/JBoss_WeatherPortlet/src/resources/weatherportlet-war_22/WEB-INF/portlet.xml
===================================================================
--- portlets/src/miscellaneous/JBoss_WeatherPortlet/src/resources/weatherportlet-war_22/WEB-INF/portlet.xml	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/JBoss_WeatherPortlet/src/resources/weatherportlet-war_22/WEB-INF/portlet.xml	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
+             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+             xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd /opt/SUNWps/dtd/portlet.xsd"
+             version="1.0">
+   <portlet>
+      <portlet-name>WeatherPortlet</portlet-name>
+      <portlet-class>org.jboss.portlet.weather.WeatherPortlet</portlet-class>
+      <init-param>
+         <name>default_zipcode</name>
+         <value>33145</value>
+      </init-param>
+      <init-param>
+         <name>RSS_XSL</name>
+         <value>/WEB-INF/Rss.xsl</value>
+      </init-param>
+      <init-param>
+         <name>base_url</name>
+         <value>http://xml.weather.yahoo.com/forecastrss?p=</value>
+      </init-param>
+      <expiration-cache>0</expiration-cache>
+      <supports>
+         <mime-type>text/html</mime-type>
+         <portlet-mode>VIEW</portlet-mode>
+         <portlet-mode>EDIT</portlet-mode>
+      </supports>
+      <portlet-info>
+         <title>Weather Portlet</title>
+      </portlet-info>
+      <portlet-preferences>
+         <preference>
+            <name>expires</name>
+            <value>180</value>
+         </preference>
+         <preference>
+            <name>RssXml</name>
+            <value>http://xml.weather.yahoo.com/forecastrss?p=33145</value>
+         </preference>
+      </portlet-preferences>
+   </portlet>
+</portlet-app>

Added: portlets/src/miscellaneous/JBoss_WeatherPortlet/src/resources/weatherportlet-war_22/WEB-INF/weather-object.xml
===================================================================
--- portlets/src/miscellaneous/JBoss_WeatherPortlet/src/resources/weatherportlet-war_22/WEB-INF/weather-object.xml	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/JBoss_WeatherPortlet/src/resources/weatherportlet-war_22/WEB-INF/weather-object.xml	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<deployments>
+   <deployment>
+      <if-exists>overwrite</if-exists>
+      <parent-ref>default</parent-ref>
+      <page>
+         <page-name>Weather</page-name>
+         <window>
+            <window-name>WeatherPortletWindow</window-name>
+            <instance-ref>WeatherPortletInstance</instance-ref>
+            <region>center</region>
+            <height>0</height>
+         </window>
+      </page>
+   </deployment>
+   <deployment>
+      <if-exists>overwrite</if-exists>
+      <instance>
+         <instance-name>WeatherPortletInstance</instance-name>
+         <component-ref>weather.WeatherPortlet</component-ref>
+      </instance>
+   </deployment>
+</deployments>

Added: portlets/src/miscellaneous/JBoss_WeatherPortlet/src/resources/weatherportlet-war_22/WEB-INF/web.xml
===================================================================
--- portlets/src/miscellaneous/JBoss_WeatherPortlet/src/resources/weatherportlet-war_22/WEB-INF/web.xml	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/JBoss_WeatherPortlet/src/resources/weatherportlet-war_22/WEB-INF/web.xml	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,6 @@
+<?xml version="1.0"?>
+<!DOCTYPE web-app PUBLIC
+   "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
+   "http://java.sun.com/dtd/web-app_2_3.dtd">
+<web-app>
+</web-app>


Property changes on: portlets/src/miscellaneous/JBoss_WeatherPortlet/src/resources/weatherportlet-war_24/WEB-INF
___________________________________________________________________
Name: svn:ignore
   + classes


Added: portlets/src/miscellaneous/JBoss_WeatherPortlet/src/resources/weatherportlet-war_24/WEB-INF/Rss.xsl
===================================================================
--- portlets/src/miscellaneous/JBoss_WeatherPortlet/src/resources/weatherportlet-war_24/WEB-INF/Rss.xsl	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/JBoss_WeatherPortlet/src/resources/weatherportlet-war_24/WEB-INF/Rss.xsl	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,77 @@
+<?xml version="1.0" ?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+   <xsl:output method="xml" omit-xml-declaration="yes" indent="yes"/>
+   <xsl:variable name="image-path">http://us.i1.yimg.com/us.yimg.com/i/us/we/52/</xsl:variable>
+   <xsl:variable name="link-path">
+      <xsl:value-of select="rss/channel/link"/>
+   </xsl:variable>
+   <xsl:template match="/">
+      <br/>
+      <div align="center">
+         <font>
+            <b>
+               <xsl:for-each select="rss/channel/location">
+                  <xsl:value-of select="@city"/>, <xsl:value-of select="@region"/>, <xsl:value-of
+                     select="@country"/>
+               </xsl:for-each>
+            </b>
+         </font>
+         <br/>
+         <br/>
+         <table width="130" border="0">
+            <tr>
+               <xsl:for-each select="rss/channel/item/condition">
+                  <td>
+                     <table border="0" height="130">
+                        <tr>
+                           <td class="portlet-section-header" align="center">Currently</td>
+                        </tr>
+                        <tr>
+                           <td class="portlet-section-alternate" align="center" valign="top">
+                              <img src="{$image-path}/{@code}.gif"/>
+                           </td>
+                        </tr>
+                        <tr>
+                           <td class="portlet-section-alternate" align="center" valign="top">
+                              <xsl:value-of select="@text"/>
+                           </td>
+                        </tr>
+                        <tr>
+                           <td class="portlet-section-alternate" align="center" valign="top">
+                              <xsl:value-of select="@temp"/>F</td>
+                        </tr>
+                     </table>
+                  </td>
+               </xsl:for-each>
+               <xsl:for-each select="rss/channel/item/forecast">
+                  <td>
+                     <table border="0" height="130">
+                        <tr>
+                           <td class="portlet-section-header" align="center" valign="top">
+                              <xsl:value-of select="@day"/>
+                           </td>
+                        </tr>
+                        <tr>
+                           <td class="portlet-section-alternate" align="center" valign="top">
+                              <img src="{$image-path}/{@code}.gif"/>
+                           </td>
+                        </tr>
+                        <tr>
+                           <td class="portlet-section-alternate" align="center" valign="top">
+                              <xsl:value-of select="@text"/>
+                           </td>
+                        </tr>
+                        <tr>
+                           <td class="portlet-section-alternate" align="center" valign="top">
+                              <xsl:value-of select="@low"/>F/<xsl:value-of select="@high"/>F</td>
+                        </tr>
+                     </table>
+                  </td>
+               </xsl:for-each>
+            </tr>
+         </table>
+         <br/>
+         <a href="{$link-path}" target="_blank">Complete Forecast</a>
+      </div>
+   </xsl:template>
+</xsl:stylesheet>

Added: portlets/src/miscellaneous/JBoss_WeatherPortlet/src/resources/weatherportlet-war_24/WEB-INF/jboss-app.xml
===================================================================
--- portlets/src/miscellaneous/JBoss_WeatherPortlet/src/resources/weatherportlet-war_24/WEB-INF/jboss-app.xml	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/JBoss_WeatherPortlet/src/resources/weatherportlet-war_24/WEB-INF/jboss-app.xml	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,3 @@
+<jboss-app>
+   <app-name>weather</app-name>
+</jboss-app>
\ No newline at end of file

Added: portlets/src/miscellaneous/JBoss_WeatherPortlet/src/resources/weatherportlet-war_24/WEB-INF/jboss-web.xml
===================================================================
--- portlets/src/miscellaneous/JBoss_WeatherPortlet/src/resources/weatherportlet-war_24/WEB-INF/jboss-web.xml	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/JBoss_WeatherPortlet/src/resources/weatherportlet-war_24/WEB-INF/jboss-web.xml	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,3 @@
+<?xml version="1.0"?>
+<jboss-web>
+</jboss-web>

Added: portlets/src/miscellaneous/JBoss_WeatherPortlet/src/resources/weatherportlet-war_24/WEB-INF/jsp/edit.jsp
===================================================================
--- portlets/src/miscellaneous/JBoss_WeatherPortlet/src/resources/weatherportlet-war_24/WEB-INF/jsp/edit.jsp	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/JBoss_WeatherPortlet/src/resources/weatherportlet-war_24/WEB-INF/jsp/edit.jsp	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,17 @@
+<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet" %>
+<%@ page isELIgnored="false" %>
+
+<portlet:defineObjects/>
+
+<div align="center">
+   <br/>
+   <font class="portlet-font">Change Weather Location:</font>
+
+   <form method="post" action="
+<portlet:actionURL></portlet:actionURL>">
+      <font class="portlet-font">Zip Code:</font><br/>
+      <input class="portlet-form-input-field" type="text" value="" size="12" name="newzip">
+      <br/>
+      <input class="portlet-form-input-field" type="submit" name="submit" value="submit">
+   </form>
+</div>
\ No newline at end of file

Added: portlets/src/miscellaneous/JBoss_WeatherPortlet/src/resources/weatherportlet-war_24/WEB-INF/portlet-instances.xml
===================================================================
--- portlets/src/miscellaneous/JBoss_WeatherPortlet/src/resources/weatherportlet-war_24/WEB-INF/portlet-instances.xml	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/JBoss_WeatherPortlet/src/resources/weatherportlet-war_24/WEB-INF/portlet-instances.xml	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,10 @@
+<?xml version="1.0" standalone="yes"?>
+<deployments>
+   <deployment>
+      <if-exists>overwrite</if-exists>
+      <instance>
+         <instance-id>RSSWeatherInstance</instance-id>
+         <portlet-ref>RSSWeatherPortlet</portlet-ref>
+      </instance>
+   </deployment>
+</deployments>
\ No newline at end of file

Added: portlets/src/miscellaneous/JBoss_WeatherPortlet/src/resources/weatherportlet-war_24/WEB-INF/portlet.xml
===================================================================
--- portlets/src/miscellaneous/JBoss_WeatherPortlet/src/resources/weatherportlet-war_24/WEB-INF/portlet.xml	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/JBoss_WeatherPortlet/src/resources/weatherportlet-war_24/WEB-INF/portlet.xml	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
+             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+             xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd /opt/SUNWps/dtd/portlet.xsd"
+             version="1.0">
+   <portlet>
+      <portlet-name>RSSWeatherPortlet</portlet-name>
+      <portlet-class>org.jboss.portlet.weather.WeatherPortlet</portlet-class>
+      <init-param>
+         <name>default_zipcode</name>
+         <value>33145</value>
+      </init-param>
+      <init-param>
+         <name>RSS_XSL</name>
+         <value>/WEB-INF/Rss.xsl</value>
+      </init-param>
+      <init-param>
+         <name>base_url</name>
+         <value>http://xml.weather.yahoo.com/forecastrss?p=</value>
+      </init-param>
+      <expiration-cache>180</expiration-cache>
+      <supports>
+         <mime-type>text/html</mime-type>
+         <portlet-mode>VIEW</portlet-mode>
+         <portlet-mode>EDIT</portlet-mode>
+      </supports>
+      <portlet-info>
+         <title>Weather Portlet</title>
+      </portlet-info>
+      <portlet-preferences>
+         <preference>
+            <name>expires</name>
+            <value>180</value>
+         </preference>
+         <preference>
+            <name>RssXml</name>
+            <value>http://xml.weather.yahoo.com/forecastrss?p=33145</value>
+            <read-only>false</read-only>
+         </preference>
+      </portlet-preferences>
+   </portlet>
+</portlet-app>

Added: portlets/src/miscellaneous/JBoss_WeatherPortlet/src/resources/weatherportlet-war_24/WEB-INF/weather-object.xml
===================================================================
--- portlets/src/miscellaneous/JBoss_WeatherPortlet/src/resources/weatherportlet-war_24/WEB-INF/weather-object.xml	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/JBoss_WeatherPortlet/src/resources/weatherportlet-war_24/WEB-INF/weather-object.xml	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<deployments>
+   <deployment>
+      <if-exists>overwrite</if-exists>
+      <parent-ref>default</parent-ref>
+      <page>
+         <page-name>RSSWeather</page-name>
+         <window>
+            <window-name>RSSWeatherWindow</window-name>
+            <instance-ref>RSSWeatherInstance</instance-ref>
+            <region>center</region>
+            <height>0</height>
+         </window>
+      </page>
+   </deployment>
+</deployments>

Added: portlets/src/miscellaneous/JBoss_WeatherPortlet/src/resources/weatherportlet-war_24/WEB-INF/web.xml
===================================================================
--- portlets/src/miscellaneous/JBoss_WeatherPortlet/src/resources/weatherportlet-war_24/WEB-INF/web.xml	2006-07-24 22:25:13 UTC (rev 101)
+++ portlets/src/miscellaneous/JBoss_WeatherPortlet/src/resources/weatherportlet-war_24/WEB-INF/web.xml	2006-07-25 14:23:17 UTC (rev 102)
@@ -0,0 +1,6 @@
+<?xml version="1.0"?>
+<!DOCTYPE web-app PUBLIC
+   "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
+   "http://java.sun.com/dtd/web-app_2_3.dtd">
+<web-app>
+</web-app>

Added: portlets/src/miscellaneous/JBoss_WeatherPortlet/weatherportlet.war
===================================================================
(Binary files differ)


Property changes on: portlets/src/miscellaneous/JBoss_WeatherPortlet/weatherportlet.war
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream




More information about the jboss-svn-commits mailing list