rogerrut 2004/12/01 17:11:44 Modified: applications/demo/src/webapp/WEB-INF portlet.xml Added: applications/demo/src/webapp/WEB-INF/view edit-wcprefs.vm Log: Initial version of WebContentPortlet & WebContentRewriter --> needs work on the rewriter/SSO/Preferences Revision Changes Path 1.1 jakarta-jetspeed-2/applications/demo/src/webapp/WEB-INF/view/edit-wcprefs.vm Index: edit-wcprefs.vm =================================================================== <h2 class="portlet-section-header">Edit Preferences</h2> <form action="$renderResponse.createActionURL()" method="post"> <table> #foreach ($pref in $prefs) #prefField($pref.Key $pref.Value "40") #end </table> <input type="submit" name="Save" value="Save" /> </form> 1.28 +35 -3 jakarta-jetspeed-2/applications/demo/src/webapp/WEB-INF/portlet.xml Index: portlet.xml =================================================================== RCS file: /home/cvs/jakarta-jetspeed-2/applications/demo/src/webapp/WEB-INF/portlet.xml,v retrieving revision 1.27 retrieving revision 1.28 diff -u -r1.27 -r1.28 --- portlet.xml 1 Dec 2004 01:28:47 -0000 1.27 +++ portlet.xml 2 Dec 2004 01:11:44 -0000 1.28 @@ -385,7 +385,7 @@ <name>HelpPage</name> <value>/WEB-INF/view/iframe-help.html</value> </init-param> - + <portlet-class>org.apache.jetspeed.portlet.IFrameGenericPortlet</portlet-class> <expiration-cache>-1</expiration-cache> <supports> @@ -414,7 +414,7 @@ <preference> <name>MAX-WIDTH</name> <value>100%</value> - </preference> + </preference> </portlet-preferences> <supported-locale>en</supported-locale> <portlet-info> @@ -521,6 +521,38 @@ <description>User eMail</description> <name>user.home-info.online.email</name> </user-attribute> - + + <portlet id="web-cont-demo"> + <portlet-name>WebContentPortlet</portlet-name> + <display-name>WebContent Portlet</display-name> + <description> + Prototype of the WebContent portlet + </description> + <init-param> + <name>EditPage</name> + <value>/WEB-INF/view/edit-wcprefs.vm</value> + </init-param> + + <portlet-class>org.apache.jetspeed.portlet.WebContentPortlet</portlet-class> + <expiration-cache>-1</expiration-cache> + <supports> + <mime-type>text/html</mime-type> + <portlet-mode>EDIT</portlet-mode> + <portlet-mode>VIEW</portlet-mode> + </supports> + <portlet-preferences> + <preference> + <name>SRC</name> + <value>http://www.apache.org</value> + </preference> + </portlet-preferences> + <supported-locale>en</supported-locale> + <portlet-info> + <title>WebContent Prototype Portlet</title> + <short-title>WebContent</short-title> + <keywords>WebContent,Web, WebNav</keywords> + </portlet-info> + </portlet> + </portlet-app>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]