留言板

Wicket Portlet in Liferay

Emrah Yasasin,修改在14 年前。

Wicket Portlet in Liferay

New Member 帖子: 21 加入日期: 09-7-6 最近的帖子
Hi,
I'm trying to develop an Apache Wicket-portlet with Netbeans. I've downloaded and installed the plugin Wicket 1.4 Support from geertjan on http://plugins.netbeans.org/PluginPortal/faces/PluginDetailPage.jsp?pluginid=3586.
Currently i'm using Liferay 5.2.3 with tomcat-6.0.18 (i deployed my Wicket-app in Tomcat 6.0.18 as well).

I added following libs in my Liferay:

- portlet_20.jar from http://www.jcp.org/aboutJava/communityprocess/final/jsr286/index.html
- portals-bridges-common-1.0.4.jar from http://portals.apache.org/bridges/download.html
- log4j-1.2.15.jar from http://logging.apache.org/log4j/1.2/download.html
- slf4j-api-1.5.8, slf4j-log4j12-1.5.8.jar, slf4j-jdk14-1.5.8.jar from http://www.slf4j.org/download.html
and „jaxb-api.jar“ from https://jaxb.dev.java.net/servlets/ProjectDocumentList

I installed my war-File and i got the following error message:

Emrah Yasasin,修改在14 年前。

RE: Wicket Portlet in Liferay

New Member 帖子: 21 加入日期: 09-7-6 最近的帖子
Hi,

i've solved the problem. I put the libs of the current Wicket Release and not it works fine! emoticon
thumbnail
Lisa Simpson,修改在14 年前。

RE: Wicket Portlet in Liferay

Liferay Legend 帖子: 2034 加入日期: 09-3-5 最近的帖子
Maybe you can post the portlet to the community repository???
Emrah Yasasin,修改在14 年前。

RE: Wicket Portlet in Liferay

New Member 帖子: 21 加入日期: 09-7-6 最近的帖子
Sure, I'll do it tonight. Shall I post it right here as an attachment?
The Wicket-App-Integration is for our EU Project SPIKE http://www.spike-project.eu/home.html - we are going to integrate different kinds of web applications into Liferay (that will be our Portal ;) ) and Wicket is one of these Frameworks we'll use.

My Bachelorthesis is about Developing Portlets from existing Web-Apps (using Liferay Portal), so Wicket was the first. emoticon
thumbnail
Lisa Simpson,修改在14 年前。

RE: Wicket Portlet in Liferay

Liferay Legend 帖子: 2034 加入日期: 09-3-5 最近的帖子
WOOT! I'll have to install it and check it out emoticon
Emrah Yasasin,修改在14 年前。

RE: Wicket Portlet in Liferay

New Member 帖子: 21 加入日期: 09-7-6 最近的帖子
Lisa Simpson:
WOOT! I'll have to install it and check it out emoticon


First I deployed my Wicket-App in Tomcat 6.0.18.
Then i packed the following libs in Liferay's Tomcat 6.0.18

- portlet_20.jar from http://www.jcp.org/aboutJava/communityprocess/final/jsr286/index.html
- portals-bridges-common-1.0.4.jar from http://portals.apache.org/bridges/download.html
- log4j-1.2.15.jar from http://logging.apache.org/log4j/1.2/download.html
- slf4j-api-1.5.8, slf4j-log4j12-1.5.8.jar, slf4j-jdk14-1.5.8.jar from http://www.slf4j.org/download.html
and „jaxb-api.jar“ from https://jaxb.dev.java.net/servlets/ProjectDocumentList

When you're developing with Netbeans 6.5 (or 6.5.1) and using the Wicket 1.4 Support-Plugin ( Netbeans-Plugin-Link ), then you'll get the following libs:

- wicket-1.4-rc1.jar
- wicket-auth-roles-1.4-rc1.jar
- wicket-extensions-1.4-rc1.jar

I created a portlet.xml:

<!--?xml version="1.0" encoding="UTF-8"?-->

<portlet-app>
	<portlet>
		<description>Bachelorarbeit</description>
		<portlet-name>WicketApplication</portlet-name>
		<display-name>WicketApplication</display-name>
		<portlet-class>org.apache.wicket.protocol.http.portlet.WicketPortlet</portlet-class>
		<init-param>
			<name>ServletContextProvider</name>
		</init-param>
		<init-param>
			<name>wicketFilterPath</name>
			<value>/wicket/*</value>
		</init-param>
		<supports>
			<mime-type>text/html</mime-type>
			<portlet-mode>VIEW</portlet-mode>
		</supports>
		<portlet-info>
			<title>WicketApplication</title>
			<short-title>WicketApplication</short-title>
		</portlet-info>
	</portlet>
</portlet-app>


Then I deployed this Wicket-App in Liferay but there was no content available. (See my first posting in this thread! emoticon )
The cause it didn't work with these libs was that ServletContextProvider wasn't found, so i changed them with the new ones of Apache Wicket 1.4-rc6. (Here: Apache Wicket 1.4-rc6 and here you can download it: Download Apache Wicket 1.4-rc6.

This is what it's look like:



I attached my example for the Thesis. emoticon
Sandy K,修改在14 年前。

RE: Wicket Portlet in Liferay

New Member 帖子: 4 加入日期: 09-7-8 最近的帖子
I am very new in liferay. I need to deploy wicket in liferay 5.2 using eclipse could you help me with the steps.
Emrah Yasasin,修改在14 年前。

RE: Wicket Portlet in Liferay

New Member 帖子: 21 加入日期: 09-7-6 最近的帖子
Sandy K:
I am very new in liferay. I need to deploy wicket in liferay 5.2 using eclipse could you help me with the steps.


First you'll have to create an application you can deploy. Then do the steps i explained above and it should work.
Sandy K,修改在14 年前。

RE: Wicket Portlet in Liferay

New Member 帖子: 4 加入日期: 09-7-8 最近的帖子
Thanks for the reply.

If you share sample hello world portlet build with Apache Wicket 1.4-rc6 code that would great so I can have some idea to start with Eclipse.

Thanks in Advance.
Anis Boutouria,修改在12 年前。

RE: Wicket Portlet in Liferay

New Member 帖子: 4 加入日期: 11-11-28 最近的帖子
Hi Guys,
I have an app with an old version of wicket 1.3.7 and we want to deploy it as portlet in liferay 6.1. We have improved some probleme espatially with the Ajax call behavior, is-there any configuration to do to let it work ?

Thinks.