You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by ta...@apache.org on 2007/08/14 21:34:41 UTC

svn commit: r565865 - in /portals/jetspeed-2/trunk/applications/demo/src/webapp/WEB-INF: hello-wml.jsp hello.jsp portlet.xml

Author: taylor
Date: Tue Aug 14 12:34:40 2007
New Revision: 565865

URL: http://svn.apache.org/viewvc?view=rev&rev=565865
Log:
https://issues.apache.org/jira/browse/JS2-769
example of another content type

Added:
    portals/jetspeed-2/trunk/applications/demo/src/webapp/WEB-INF/hello-wml.jsp
Modified:
    portals/jetspeed-2/trunk/applications/demo/src/webapp/WEB-INF/hello.jsp
    portals/jetspeed-2/trunk/applications/demo/src/webapp/WEB-INF/portlet.xml

Added: portals/jetspeed-2/trunk/applications/demo/src/webapp/WEB-INF/hello-wml.jsp
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/trunk/applications/demo/src/webapp/WEB-INF/hello-wml.jsp?view=auto&rev=565865
==============================================================================
--- portals/jetspeed-2/trunk/applications/demo/src/webapp/WEB-INF/hello-wml.jsp (added)
+++ portals/jetspeed-2/trunk/applications/demo/src/webapp/WEB-INF/hello-wml.jsp Tue Aug 14 12:34:40 2007
@@ -0,0 +1,32 @@
+<%--
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+--%>
+<%@ page session="false"%>
+<%@ taglib uri='/WEB-INF/portlet.tld' prefix='portlet'%>
+<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>
+<fmt:setBundle basename="org.apache.jetspeed.portlet.helloworld.resources.HelloWorldResources" />
+<portlet:defineObjects/>
+<p><fmt:message key="hello.label.ThisIsATestLine"/></p>
+<b><portlet:namespace/><fmt:message key="hello.label.TestAtPlutoOrg"/></b>
+<p><fmt:message key="hello.label.WeNeedToDoSomething"/></p>
+<p>
+<fmt:message key="hello.label.PortletModeIs">
+   <fmt:param><%= renderRequest.getPortletMode().toString() %></fmt:param>
+</fmt:message>
+<fmt:message key="hello.label.WindowStateIs">
+   <fmt:param><%= renderRequest.getWindowState().toString() %></fmt:param>
+</fmt:message> 
+</p>

Modified: portals/jetspeed-2/trunk/applications/demo/src/webapp/WEB-INF/hello.jsp
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/trunk/applications/demo/src/webapp/WEB-INF/hello.jsp?view=diff&rev=565865&r1=565864&r2=565865
==============================================================================
--- portals/jetspeed-2/trunk/applications/demo/src/webapp/WEB-INF/hello.jsp (original)
+++ portals/jetspeed-2/trunk/applications/demo/src/webapp/WEB-INF/hello.jsp Tue Aug 14 12:34:40 2007
@@ -19,7 +19,7 @@
 <%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>
 <fmt:setBundle basename="org.apache.jetspeed.portlet.helloworld.resources.HelloWorldResources" />
 <portlet:defineObjects/>
-<p><fmt:message key="hello.label.ThisIsATestLine"/></P>
+<p><fmt:message key="hello.label.ThisIsATestLine"/></p>
 <b><portlet:namespace/><fmt:message key="hello.label.TestAtPlutoOrg"/></b>
 
 <h2><fmt:message key="hello.label.WeNeedToDoSomething"/></h2>

Modified: portals/jetspeed-2/trunk/applications/demo/src/webapp/WEB-INF/portlet.xml
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/trunk/applications/demo/src/webapp/WEB-INF/portlet.xml?view=diff&rev=565865&r1=565864&r2=565865
==============================================================================
--- portals/jetspeed-2/trunk/applications/demo/src/webapp/WEB-INF/portlet.xml (original)
+++ portals/jetspeed-2/trunk/applications/demo/src/webapp/WEB-INF/portlet.xml Tue Aug 14 12:34:40 2007
@@ -41,6 +41,10 @@
             <portlet-mode>VIEW</portlet-mode>
             <portlet-mode>HELP</portlet-mode>
         </supports>
+	    <supports>
+	      <mime-type>text/vnd.wap.wml</mime-type>      
+	      <portlet-mode>view</portlet-mode>    
+	    </supports>        
         <supported-locale>en</supported-locale>
         <supported-locale>ja</supported-locale>
         <resource-bundle>org.apache.jetspeed.portlet.helloworld.resources.HelloWorldResources</resource-bundle>
@@ -136,7 +140,7 @@
             <portlet-mode>VIEW</portlet-mode>
             <portlet-mode>EDIT</portlet-mode>
             <portlet-mode>HELP</portlet-mode>
-        </supports>
+        </supports>        
         <supported-locale>en</supported-locale>
         <supported-locale>de</supported-locale>
         <supported-locale>ja</supported-locale>



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org