📄 demo-portlets.xreg
字号:
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2004 The Apache Software Foundation
Licensed 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.
-->
<registry>
<portlet-entry name="HelloVelocityCached" hidden="false" type="ref" parent="CustomizerVelocity" application="false">
<meta-info>
<title>HelloVelocityCached</title>
<description>Simple Cached Velocity Portlet Example</description>
</meta-info>
<parameter name="template" value="hello" hidden="true"/>
<parameter name="_TimeToLive" value="60000" hidden="false"/>
<parameter name="action" value="portlets.HelloAction" hidden="true"/>
<parameter name="text" value="Hello - only changes occasionally due to content caching" hidden="false"/>
<media-type ref="html"/>
<category>demo</category>
<category>velocity.demo</category>
</portlet-entry>
<portlet-entry name="HelloVelocity" hidden="false" type="ref" parent="CustomizerVelocity" application="false">
<meta-info>
<title>HelloVelocity</title>
<description>Simple Velocity Portlet Example</description>
</meta-info>
<parameter name="template" value="hello" hidden="true"/>
<parameter name="action" value="portlets.HelloAction" hidden="true"/>
<parameter name="text" value="Hello World in Velocity" hidden="false"/>
<media-type ref="html"/>
<category>demo</category>
<category>velocity.demo</category>
</portlet-entry>
<portlet-entry name="HelloJSP" hidden="false" type="ref" parent="JSP" application="false">
<meta-info>
<title>HelloJSP</title>
<description>Simple JSP Portlet Example</description>
</meta-info>
<parameter name="template" value="hello.jsp" hidden="true"/>
<media-type ref="html"/>
<category>demo</category>
<category>jsp.demo</category>
</portlet-entry>
<portlet-entry name="JSP1_1andJetspeedTagLib" hidden="false" type="ref" parent="JSP" application="false">
<meta-info>
<title>JSP1_1andJetspeedTagLib</title>
<description>
JSP Portlet Example that displays data from the Jetspeed
Tag Libaray and Java Servlet v1.2 request class. Requires a
Tomcat v3.x or a JSP 1.1 servlet engine.
</description>
</meta-info>
<parameter name="template" value="JSP1_1andJetspeedTagLib.jsp" hidden="true"/>
<media-type ref="html"/>
<category>demo</category>
<category>jsp.demo</category>
</portlet-entry>
<portlet-entry name="JSP1_2andJetspeedTagLib" hidden="false" type="ref" parent="JSP" application="false">
<meta-info>
<title>JSP1_2andJetspeedTagLib</title>
<description>
JSP Portlet Example that displays data from the Jetspeed
Tag Libaray and Java Servlet v1.2 request class. Requires a
Tomcat v4.x or a JSP 1.2 servlet engine.
</description>
</meta-info>
<parameter name="template" value="JSP1_2andJetspeedTagLib.jsp" hidden="true"/>
<media-type ref="html"/>
<category>demo</category>
<category>jsp.demo</category>
</portlet-entry>
<portlet-entry name="jslink_examples" hidden="false" type="ref" parent="Velocity" application="false">
<meta-info>
<title>JSLINK Examples</title>
<description>$jslink examples</description>
</meta-info>
<parameter name="template" value="Tool_jslink_examples" hidden="true"/>
<media-type ref="html"/>
<category>demo</category>
<category>velocity.demo</category>
</portlet-entry>
<portlet-entry name="Search" hidden="false" type="ref" parent="HTML" application="false">
<meta-info>
<title>Web Search</title>
<description>Search the Internet</description>
</meta-info>
<url>/search/index.html</url>
<category>search</category>
<category>html</category>
</portlet-entry>
<portlet-entry name="Welcome" hidden="false" type="ref" parent="HTML" application="false">
<meta-info>
<title>Welcome</title>
</meta-info>
<url>/welcome.html</url>
<category>demo</category>
<category>html.demo</category>
</portlet-entry>
<portlet-entry name="LoggedInWelcome" hidden="false" type="ref" parent="HTML" application="false">
<security-ref parent="user-view_admin-all"/>
<meta-info>
<title>Welcome to Logged in user</title>
<description>Example of a portlet with not Titlebar</description>
</meta-info>
<parameter name="_showtitlebar" value="false" hidden="false"/>
<url>/LoggedInWelcome.html</url>
<category>demo</category>
<category>html.demo</category>
</portlet-entry>
<portlet-entry name="XMLHack" hidden="false" type="ref" parent="RSS" application="false">
<meta-info>
<title>XMLHack</title>
</meta-info>
<url>http://www.xmlhack.com/rss.php</url>
<category>news.software.opensource</category>
</portlet-entry>
<portlet-entry name="Apacheweek" hidden="false" type="ref" parent="RSS" application="false">
<meta-info>
<title>Apacheweek</title>
</meta-info>
<url>http://www.apacheweek.com/issues/apacheweek-headlines.xml</url>
<category>news.software.opensource</category>
</portlet-entry>
<portlet-entry name="Mozilla" hidden="false" type="ref" parent="RSS" application="false">
<meta-info>
<title>Mozilla</title>
</meta-info>
<parameter name="itemdisplayed" value="10" hidden="false"/>
<url>http://www.mozilla.org/news.rdf</url>
<category>news.software.opensource</category>
</portlet-entry>
<portlet-entry name="Jetspeed" hidden="false" type="ref" parent="RSS" application="false">
<parameter name="openinpopup" value="true" hidden="false"/>
<url>/rss/Jetspeed.rss</url>
<category>news.software.opensource</category>
<meta-info>
<title>Jetspeed Documentation</title>
<description>Jetspeed Documentation Portlet</description>
</meta-info>
</portlet-entry>
<portlet-entry name="JavaWeb" hidden="false" type="ref" parent="WebPagePortlet" application="false">
<meta-info>
<title>JavaSoft</title>
<description>JavaSoft</description>
</meta-info>
<parameter name="dont_remove_applet" value="yes" hidden="false"/>
<url>http://java.sun.com/</url>
<category>sites.companies.sun</category>
</portlet-entry>
<portlet-entry type="ref" parent="Velocity" name="StockQuote" application="false" hidden="false">
<meta-info>
<title>Stock Portfolio</title>
<description>Stock Portfolio Portlet</description>
</meta-info>
<parameter name="template" value="stock-quote" hidden="true"/>
<parameter name="action" value="portlets.StockQuoteAction" hidden="true"/>
<parameter name="columns" value="Symbols,Price,Change,Volume" type="style" hidden="false">
<meta-info>
<title>Columns</title>
<description>Columns to display</description>
</meta-info>
</parameter>
<parameter name="columns.style.items" value="Symbol,Price,Change,Volume" hidden="true" cachedOnName="true" cachedOnValue="true"/>
<parameter name="columns.style.layout" value="$eastwest" hidden="true" cachedOnName="true" cachedOnValue="true"/>
<parameter name="columns.style" value="CheckBoxGroup" hidden="true" cachedOnName="true" cachedOnValue="true"/>
<parameter name="symbols" value="MSFT,IBM,ORCL,SUNW" type="style" hidden="false" cachedOnName="true" cachedOnValue="true">
<meta-info>
<title>Symbols</title>
<description>List of comma-separated stock symbols</description>
</meta-info>
</parameter>
<parameter name="symbols.style" value="TextArea" hidden="true" cachedOnName="true" cachedOnValue="true"/>
<media-type ref="html"/>
<media-type ref="wml"/>
<category>web services</category>
<category>finance.stocks</category>
</portlet-entry>
<portlet-entry name="myLinks" hidden="false" type="ref" parent="LinkPortlet" application="false">
<meta-info>
<title>My Bookmarks</title>
<description>Insert your personal links!</description>
</meta-info>
<parameter name="image" value="images/jetspeed-powered.gif" hidden="false"/>
<parameter name="link" value="http://portals.apache.org/jetspeed-1/" hidden="false"/>
<parameter name="anchor" value="Jetspeed" hidden="false"/>
<parameter name="description" value="Jetspeed's home page" hidden="false"/>
<parameter name="image1" value="" hidden="false"/>
<parameter name="link1" value="" hidden="false"/>
<parameter name="anchor1" value="" hidden="false"/>
<parameter name="description1" value="" hidden="true"/>
<parameter name="image2" value="" hidden="false"/>
<parameter name="link2" value="" hidden="false"/>
<parameter name="anchor2" value="" hidden="false"/>
<parameter name="description2" value="" hidden="true"/>
<parameter name="image3" value="" hidden="false"/>
<parameter name="link3" value="" hidden="false"/>
<parameter name="anchor3" value="" hidden="false"/>
<parameter name="description3" value="" hidden="true"/>
<parameter name="image4" value="" hidden="false"/>
<parameter name="link4" value="" hidden="false"/>
<parameter name="anchor4" value="" hidden="false"/>
<parameter name="description4" value="" hidden="true"/>
<media-type ref="html"/>
<category>bookmarks</category>
</portlet-entry>
<portlet-entry name="JetspeedFramed" hidden="false" type="ref" parent="IFramePortlet" application="false">
<meta-info>
<title>Jetspeed Framed</title>
<description>Navigate SomeSite within an IFRAME</description>
</meta-info>
<parameter name="source" value="http://portals.apache.org/jetspeed-1" hidden="false"/>
<media-type ref="html"/>
<category>frames</category>
</portlet-entry>
<portlet-entry name="DatabaseBrowserTest" hidden="false" type="ref" parent="DatabaseBrowserPortlet" application="false">
<meta-info>
<title>DatabaseBrowserTest</title>
<description>Simple Test Database Browser Portlet Example</description>
</meta-info>
<parameter name="sql" value="select * from coffees" type="style" hidden="false">
<security-ref parent="admin-only"/>
<meta-info>
<title>SQL Query</title>
</meta-info>
</parameter>
<parameter name="sql.style" value="TextArea" hidden="true"/>
<parameter name="windowSize" value="5" hidden="false">
<meta-info>
<title>Window Size</title>
<description>Number of rows per page to display</description>
</meta-info>
</parameter>
<!-- to use an alternate torque pool, set this parameter -->
<!-- parameter name="poolname" value="otherpool" hidden="true"/-->
<media-type ref="html"/>
<category>database</category>
</portlet-entry>
<portlet-entry name="DatabaseBrowserWithParms" hidden="false" type="ref" parent="DatabaseBrowserPortlet" application="false">
<meta-info>
<title>DatabaseBrowserTest with parameters</title>
<description>Simple Test Database Browser Portlet Example</description>
</meta-info>
<parameter name="sqlparam1" value="1" hidden="false">
<meta-info>
<title>Coffee Id</title>
<description>Only coffee with the id specified will be displayed</description>
</meta-info>
</parameter>
<parameter name="sql" value="select * from coffees where coffee_id=?" type="style" hidden="false">
<security-ref parent="admin-only"/>
<meta-info>
<title>SQL Query</title>
</meta-info>
</parameter>
<parameter name="sql.style" value="TextArea" hidden="true"/>
<parameter name="windowSize" value="5" hidden="false">
<meta-info>
<title>Window Size</title>
<description>Number of rows per page to display</description>
</meta-info>
</parameter>
<media-type ref="html"/>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -