How to convert Wicket application into Wicket Portlet application? - wicket

I have a complicated Apache Wicket application.I want to convert that application as a Wicket Portlet application. I got some information from https://cwiki.apache.org/WICKET/portal-howto.html. But doesnt so clear . So wanted to know the simple steps to convert an wicket Application into Wicket Portlet Application

I have done the exact opposite of you, I converted a lot of Wicket Portlet to a single Wicket Application. What portlet container are you going to use ? What Wicket version are you using ? I think Portlet support has been dropped in 1.5, so be warned that you will be stuck with 1.4 unless you provide your patches. The Wiki page you're talking explains everything you have to know. I suggest you try an hello-world before converting your application.

Related

Integrate liferay cms into existing java application

I have an existing java web application, servlet based. I plan to add a module to show news articles to visitors. So i choose liferay as our CMS. The solution in my mind is that using an iframe in my web site to show news articles managed by liferay CMS. If i do so, is it convenient for our news editor to manage news articles with liferay CMS? Shall he/she switched to liferay to do this? It seems that the preview function of liferay CMS could guarantee only the inline iframe's visual effect is nice, am i right here?
Besides, could you please advise me a better solution other than iframe based solution?
I am looking forward for your comments, any help here would be appreciated!
Maybe it's better that liferay includes the existing Web app.

Including facebook.php in tomcat + liferay

I want to make a site for me in which I can use the facebook api features.
I got a tomcat webserver ans liferay is installed on it.
Now I need to implement the facebook.php to this but I don't know where to put it.
I wrote some code in php to get for example my id or to post into my own profile. But liferay oder tomcat couldn't load the things from facebook.php so the server doesn't know the methods and can't do what I want him to do.
Can anybody tell me how to solve this problem?
I've never actually done it before because I've tried to keep PHP code off Liferay and used other methods to access 3rd APIs. However the Tomcat wiki has a post on it:
Installing PHP on Tomcat
Or what maybe a better option is you use the Facebook JavaScript API and you create a new Liferay portlet which uses this API instead of using PHP.
How can I use Facebook JAVA API in my application? will help you find the java api for facebook. With regards to getting started with programming: That one is far beyond what can be answered here. But basically: Try to access the API in the language that you're working in. Don't bridge to a different language in order to bridge then to an external system.
There are a lot more hits when you google for facebook java api in case that link doesn't help.

Dojo Restful server access

How to implement restful access from Dojo client to java server running in tomcat?
I need to make restful request to server and get data (json or xml format) and update the grid. How to do it?
I read the following posts, but i couldn't understand anything.
http://www.sitepen.com/blog/2008/06/13/restful-json-dojo-data/
http://www.sitepen.com/blog/2008/11/21/effective-use-of-jsonreststore-referencing-lazy-loading-and-more/
Can anyone give me complete source code and the explanation ?
Since I am new to Dojo I feel hard to do this. I don't want web services to be included.
For the REST part, you can use the Wizard of Netbeans (the tutorial is on Glassfish, but I don't see any reason why this should not work on Tomcat as well). See here the tutorial:
http://netbeans.org/kb/docs/websvc/rest.html .
For the dojo part, I have posted a complete example (which integrates perfectly with the REST implementation provided by Netbeans) here:
Dojo grid nested json
EDITED
In the Netbeans' tutorial there is a link for Tomcat users.

Assign Portlet Macro Path in eea.facetednavigation

I want to add a 'Plone portlet' widget in Faceted criteria config screen. In particular, here I need a static portlet to add URL links. How do I fill the 'Portlet macro' field for a static portlet? Helper message is 'Path to portlet macro', and I already try values like 'here/portlet_static/macros/portlet' and 'here/portlet_recent/macros/portlet', all failed.
Plone 4.0.2 + eea.facetednavigation 4.0rc1
I don't know anything about eea.facetednavigation but it sounds to me like you have a bad mix of portlet technologies.
The /macros/portlet slot was only available in classic portlets based on simple templates as used in Plone 2.5. Since Plone 3 we have a completely different portlet machinery which no longer has any TAL macros in them.
As far as I know the EEA site is still using Plone 2.5 - so I wouldn't be surprised if many of their add-ons aren't compatible with later versions of Plone.

gwt seam application doubt

i have an application running on JBoss Seam 2, which uses rich faces as its presentation layer.
My question is can I do away with rich faces and use gwt.
what are the stuff that must take into account ?
Is it possible ?
You can use gwt instead of richfaces if you would like to. You can start by reading Chapter 22 of the seam reference guide.