Wednesday, August 30, 2006

Search Engine Selector Portlet 0.1 Released

Search Engine Selector Portlet is JSR 168 portlet to dispatch your requested words to a selected search engine. You can deploy this portlet to JSR 168 compliant portal server.

To deploy this portlet:
1) Download searchselector.war
2) Deploy searchselector.war(For how to deploy portlet, see portal server's document)

If you want to add/modify/delete listed search engines, you can modify the configuration file(/WEB-INF/classes/jp/sf/pal/searchselector/SearchSelector.dicon). For example, if you want to add Yahoo Search Engine, add red characters:


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE components PUBLIC "-//SEASAR2.1//DTD S2Container//EN"
"http://www.seasar.org/dtd/components24.dtd">
<components>

<component name="SearchEngineFactory"
class="jp.sf.pal.searchselector.engine.SearchEngineFactory">
<arg>
{YahooEngine, GoogleEngine, YahooJapanEngine, InfoseekRakutenEngine,
MarsFlagEngine, GooEngine, FreshEyeEngine, RakutenIchibaEngine}
</arg>
</component>

<!-- SEARCH_WORD is replaced with an actual word -->

<component name="YahooEngine"
class="jp.sf.pal.searchselector.engine.SearchEngine">
<property name="id">"YahooEngine"</property>
<property name="name">
#{"en" : "Yahoo!", "ja" : "Yahoo!"}
</property>
<property name="actionUrl">
"http://search.yahoo.com/search?p=SEARCH_WORD"
</property>
<property name="encoding">"UTF-8"</property>
</component>

...


For information about .dicon file, please see http://www.seasar.org/en/

Thanks!

Saturday, August 26, 2006

ToDo List Portlet 0.2 was released!

ToDo Portlet is JSR 168 portlet to enable you to manage your todo list. You can deploy this portlet to JSR 168 compliant portal server.

To deploy this portlet:
1) Download todolist.war
2) Deploy todolist.war(For how to deploy portlet, see portal server's document)

Note: The tested environment is Jetspeed2.

Thanks!

Thursday, August 17, 2006

JStock Portlet 0.2 Released

This portlet is JSR 168 compliant and provides stock information for Japanese market. It is much appreciated if you can provide any feedback to us :)

Weather Portlet 0.3 Released

This is JSR 168 Portlet to provide weather information for Japan, not world-wide location. For Japanese user, some weather portlets(ex. a portlet provided as a sample) is useless. Because many users do not want weather information of a airport.. But this portlet will provide valuable information for each city in Japan!

Friday, August 11, 2006

VFS Portlet 1.1 Released

Do you want to access various file system? If yes, please try this portlet. This portlet enables you to access file systems(ex. local file system) via commons-vfs. So, basically, this portlet will support file systems supported by commons-vfs(but I checked only a local file system..).

To deploy this portlet:
1) Download vfs-portlet.war
2) Deploy vfs-portlet.war(For how to deploy portlet, see portal server's document)

If you want user to access only some specified paths, you can set the following init param in portlet.xml:

<init-param>
<name>accept-paths</name>
<value>.*</value>
</init-param>

The default value is ".*". It means user can access all file/directory. For example, if you want user to access files under /tmp and /home, the value is "/tmp/.*,/home/.*". On the other hand, if you want user not to access files, you can also use "deny-paths".

Tuesday, August 08, 2006

MyFaces Bridge 0.7 released!

MyFaces Bridge 0.7 was released today :) It supports Tomahawk 1.1.3. Using this library, you can use Upload component and some components that uses JavaScript. For MyFaces bridge, the tested environment is Teeda(JSF implementation) and Jetspeed2(If you can run it on other environment, please let me know!). I think that MyFaces Bridges runs on any JSF implementation. If you have a problem, let us know.

To use MyFaces Bridge:
1) Add portals-bridges-portletfilter-1.0.jar and bridges-myfaces-0.7.jar to WEB-INF/lib
2) Modify portlet.xml

For example, if you put the following portlet.xml,

<portlet-app id="vfs-portlets" version="1.0">
<portlet id="VFSNavigator">
<description>VFS Navigator</description>
<portlet-name>VFSNavigator</portlet-name>
<display-name>VFS Navigator</display-name>
<portlet-class>
jp.sf.pal.vfs.portlets.VFSPortlet
</portlet-class>
<init-param>
<name>view-page</name>
<value>/jsp/ListView.jsp</value>
</init-param>
<supports>
<mime-type>text/html</mime-type>
<portlet-mode>VIEW</portlet-mode>
</supports>
<portlet-info>
<title>VFS Navigator</title>
<short-title>VFS</short-title>
</portlet-info>
</portlet>
</portlet-app>

change it to:

<portlet-app id="vfs-portlets" version="1.0">
<portlet id="VFSNavigator">
<description>VFS Navigator</description>
<portlet-name>VFSNavigator</portlet-name>
<display-name>VFS Navigator</display-name>
<portlet-class>
org.apache.portals.bridges.portletfilter.FilterPortlet
</portlet-class>
<init-param>
<name>portlet-class</name>
<value>jp.sf.pal.vfs.portlets.VFSPortlet</value>
</init-param>
<init-param>
<name>portlet-filters</name>
<value>
jp.sf.pal.tomahawk.filter.ExtensionsPortletFilter
</value>
</init-param>
<init-param>
<name>view-page</name>
<value>/jsp/ListView.jsp</value>
</init-param>
<supports>
<mime-type>text/html</mime-type>
<portlet-mode>VIEW</portlet-mode>
</supports>
<portlet-info>
<title>VFS Navigator</title>
<short-title>VFS</short-title>
</portlet-info>
</portlet>
</portlet-app>

That's it! For Portals Portlet Filter, please see Apache Portals Bridges.

Thanks!

Monday, August 07, 2006

Updated MyFaces Bridge in CVS

MYFACES-434 is bothering many Portlet developers, and it's still open bug! So, PAL project provides MyFaces Bridge library that supports a file upload and resources, such as CSS and JavaScript, in head tag. But MyFaces Bridge 0.6 does not support the latest Tomahawk component.. So, I updated it in CVS! Now, it'll support Tomahawk 1.1.3 and be released soon..

Thanks!

Saturday, August 05, 2006

Notepad Portlet 0.2 Released

Notepad Portlet is JSR 168 portlet to provide notepad feature. You can deploy this portlet to JSR 168 compliant portal server.

To deploy this portlet:
1) Download notepad.war
2) Deploy notepad.war(For how to deploy portlet, see portal server's document)

Thanks!

What is "Portal Application Laboratory"?

"Portal Application Laboratory" is Open Source Community to create useful Portal Server and Portlet based on the standard of JSR-168 Java Portlet API. We are developing and providing them at http://sourceforge.jp/projects/pal/.