portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject svn commit: r1709947 - in /portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF: portlet.xml view/search/ view/search/search.jsp
Date Thu, 22 Oct 2015 03:53:14 GMT
Author: taylor
Date: Thu Oct 22 03:53:14 2015
New Revision: 1709947

URL: http://svn.apache.org/viewvc?rev=1709947&view=rev
Log:
JS2-1341: new Search portlet (not completed) using detached feature

Added:
    portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF/view/search/
    portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF/view/search/search.jsp
      - copied, changed from r1693303, portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF/view/spaces/breadcrumbs.jsp
Modified:
    portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF/portlet.xml

Modified: portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF/portlet.xml
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF/portlet.xml?rev=1709947&r1=1709946&r2=1709947&view=diff
==============================================================================
--- portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF/portlet.xml (original)
+++ portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF/portlet.xml Thu
Oct 22 03:53:14 2015
@@ -1708,6 +1708,10 @@
     <display-name>SSO IFrame Portlet</display-name>
     <portlet-class>org.apache.jetspeed.portlets.sso.SSOIFramePortlet</portlet-class>
     <init-param>
+        <name>javax.portlet.automaticResourceDispatching</name>
+        <value>true</value>
+    </init-param>
+    <init-param>
       <name>EditPage</name>
       <value>/WEB-INF/security/sso/sso-edit-prefs.vm</value>
     </init-param>
@@ -2852,6 +2856,26 @@
     </portlet-preferences>
   </portlet>
 
+  <portlet>
+    <description>Search Portlet</description>
+    <portlet-name>SearchPortlet</portlet-name>
+    <display-name>Search Portlet</display-name>
+    <portlet-class>org.apache.jetspeed.portlets.search.SearchPortlet</portlet-class>
+    <init-param>
+        <name>ViewPage</name>
+        <value>/WEB-INF/view/search/search.jsp</value>
+    </init-param>
+    <supports>
+      <mime-type>text/html</mime-type>
+      <portlet-mode>VIEW</portlet-mode>
+    </supports>
+    <supported-locale>en</supported-locale>
+    <portlet-info>
+      <title>Search</title>
+      <keywords>search,find</keywords>
+    </portlet-info>
+  </portlet>
+
   <custom-portlet-mode>
     <description>Custom About Mode</description>
     <portlet-mode>about</portlet-mode>

Copied: portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF/view/search/search.jsp
(from r1693303, portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF/view/spaces/breadcrumbs.jsp)
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF/view/search/search.jsp?p2=portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF/view/search/search.jsp&p1=portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF/view/spaces/breadcrumbs.jsp&r1=1693303&r2=1709947&rev=1709947&view=diff
==============================================================================
--- portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF/view/spaces/breadcrumbs.jsp
(original)
+++ portals/jetspeed-2/applications/j2-admin/trunk/src/main/webapp/WEB-INF/view/search/search.jsp
Thu Oct 22 03:53:14 2015
@@ -23,19 +23,5 @@ limitations under the License.
 <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
 <%@ taglib uri="http://java.sun.com/portlet" prefix="portlet"%>
 <portlet:defineObjects/>
-<fmt:setBundle basename="org.apache.jetspeed.portlets.spaces.resources.SpacesResources"
/>
-<%
-List<BreadcrumbMenuItem> menus = (List<BreadcrumbMenuItem>)renderRequest.getAttribute("breadcrumbs");
-int count = 0;
 
-String separator = "";
-for (BreadcrumbMenuItem item : menus)
-{
-	if (count == 1)
-	    separator = "> ";
-%>     
-<span style='display: inline; color: #808080'><%=separator%></span><a
href="<%=item.getPath()%>"><%=item.getTitle() %></a>
-<%
-	count++;
-}
-%>
+<input id="jsSearch" type="search" style='font-size: 8pt' placeholder='Search'/>
\ No newline at end of file



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


Mime
View raw message