-
1. Re: Portlet from Creator studio to Jboss Portal
theute Apr 4, 2006 10:14 AM (in response to antitrust1982)Please read the doc.
Hint: You need a file "-objects.xml" -
2. Re: Portlet from Creator studio to Jboss Portal
antitrust1982 Apr 4, 2006 11:11 AM (in response to antitrust1982)hi,
I read the doc but I don't understand what is important to put in my "-object.xml".
my file is this one:<?xml version="1.0" encoding="UTF-8" ?> - <deployments> - <deployment> <if-exists>overwrite</if-exists> <parent-ref>default</parent-ref> <properties /> - <page> <page-name>My Portlet</page-name> <properties /> - <window> <window-name>MyPortletWindow</window-name> <instance-ref>MyPortletInstance</instance-ref> <region>center</region> <height>0</height> </window> </page> </deployment> - <deployment> <if-exists>overwrite</if-exists> - <instance> <instance-name>MyPortletInstance</instance-name> <component-ref>MyPortlet.MyPortlet</component-ref> </instance> </deployment> </deployments>
and I have error when I run my portlet. I think I don't put the good element or the good things in there, it's why I ask to somebody a link where I can find all the step in order to create these files and what is important to put in and not.
and I try to inspire me too from this source http://www.sqli.com/ressources/files/Etude_Chopard_portlets_en_Java.pdf
thank you for your help
Antitrust1982 -
3. Re: Portlet from Creator studio to Jboss Portal
antitrust1982 Apr 5, 2006 4:41 AM (in response to antitrust1982)hello all,
I read the reference manual and user guide, and I tried to create a portlet which can works on the JBoss Portal, who named "portlet".
My portlet is a page with a bouton in a portlet page, just this. I create this page with Java Creator Studio. Then I generate it and deploy it on the server of creator studio. It works in.
After, I go in my projet of portlet and change the build/web folder name to portlet, and create a portlet-object.xml in /portlet/WEB-INF
here is my code of portlet-object.xml:<?xml version="1.0" encoding="UTF-8"?> <deployments> <deployment> <if-exists>overwrite</if-exists> <parent-ref>default</parent-ref> <properties/> <page> <page-name>Hello World</page-name> <properties/> <window> <window-name>PortletWindow</window-name> <instance-ref>PortletInstance</instance-ref> <region>center</region> <height>0</height> </window> </page> </deployment> <deployment> <if-exists>overwrite</if-exists> <instance> <instance-name>PortletInstance</instance-name> <component-ref>Portlet.Portlet</component-ref> </instance> </deployment> </deployments>
After To do this I 'zipped" the portlet folder to portlet.war, and put it in the deploy folder of JbossPortal.
I don't have anylink to execute it. I forgot anything in my creation of portal? My portlet.xml is false? What must I do more in order to do working this portlet?
thank you for you help
If you have some questions I can respond in.
Antitrust1982 -
4. Re: Portlet from Creator studio to Jboss Portal
antitrust1982 Apr 11, 2006 5:39 AM (in response to antitrust1982)hi,
Nobody can explain me how I must write my xml files in order to be sure that is good. Because, I tried following the user guide but It's don't work. I want just the minimum in order to have my portlet works and appear on he Jboss portal.
Thank you for your help
Antitrust1982 -
5. Re: Portlet from Creator studio to Jboss Portal
rali.genova Apr 11, 2006 10:14 AM (in response to antitrust1982)there is a pretty big collection of portlets you could use as examples on
www.portletswap.com - maybe looking at their descriptors would give you a better idea of how you should write yours.
rali