论坛

主页 » Liferay Portal » English » 3. Development

组合视图 统一视图 树状图
讨论主题 [ 上一个 | 下一个 ]
toggle
. .
Wicket Portlet in Liferay
2009年7月6日 下午2:14
答复

. .

等级: New Member

帖子: 21

加入日期: 2009年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:

. .
RE: Wicket Portlet in Liferay
2009年7月6日 下午2:13
答复

. .

等级: New Member

帖子: 21

加入日期: 2009年7月6日

最近的帖子

Hi,

i've solved the problem. I put the libs of the current Wicket Release and not it works fine! emoticon
Lisa Simpson
RE: Wicket Portlet in Liferay
2009年7月6日 下午2:30
答复

Lisa Simpson

等级: Liferay Legend

帖子: 2034

加入日期: 2009年3月5日

最近的帖子

Maybe you can post the portlet to the community repository???
. .
RE: Wicket Portlet in Liferay
2009年7月7日 上午2:13
答复

. .

等级: New Member

帖子: 21

加入日期: 2009年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
Lisa Simpson
RE: Wicket Portlet in Liferay
2009年7月7日 下午1:37
答复

Lisa Simpson

等级: Liferay Legend

帖子: 2034

加入日期: 2009年3月5日

最近的帖子

WOOT! I'll have to install it and check it out emoticon
Sandy K
RE: Wicket Portlet in Liferay
2009年7月8日 上午1:14
答复

Sandy K

等级: New Member

帖子: 4

加入日期: 2009年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.
. .
RE: Wicket Portlet in Liferay
2009年7月8日 上午2:00
答复

. .

等级: New Member

帖子: 21

加入日期: 2009年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:
 1
 2<?xml version="1.0" encoding="UTF-8"?>
 3
 4<portlet-app>
 5    <portlet>
 6        <description>Bachelorarbeit</description>
 7        <portlet-name>WicketApplication</portlet-name>
 8        <display-name>WicketApplication</display-name>
 9        <portlet-class>org.apache.wicket.protocol.http.portlet.WicketPortlet</portlet-class>
10        <init-param>
11            <name>ServletContextProvider</name>
12        </init-param>
13        <init-param>
14            <name>wicketFilterPath</name>
15            <value>/wicket/*</value>
16        </init-param>
17        <supports>
18            <mime-type>text/html</mime-type>
19            <portlet-mode>VIEW</portlet-mode>
20        </supports>
21        <portlet-info>
22            <title>WicketApplication</title>
23            <short-title>WicketApplication</short-title>
24        </portlet-info>
25    </portlet>
26</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
附件: BachelorArbeitWicket.zip (3,143.1k)
. .
RE: Wicket Portlet in Liferay
2009年7月8日 上午1:32
答复

. .

等级: New Member

帖子: 21

加入日期: 2009年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
RE: Wicket Portlet in Liferay
2009年7月8日 下午10:35
答复

Sandy K

等级: New Member

帖子: 4

加入日期: 2009年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
RE: Wicket Portlet in Liferay
2012年4月11日 下午3:45
答复

Anis Boutouria

等级: New Member

帖子: 4

加入日期: 2011年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.