5 Replies Latest reply on Apr 11, 2006 10:14 AM by Rali Genova

    Portlet from Creator studio to Jboss Portal

    auré manga Novice

      Hi all,

      I surf on the web and I find a solution in order to create easily a portlet(creator studio 2). Now, I want to put my portlet in the JBoss portal. I have seen that I must add some xml files. Which one? and what I must to put in? Because When I take from the example Helloworld, Jboss-app, and Jboss-web and remplace the information of helloworld by my portlet information. When I copied my war in the deploy folder I hadn't any link in order to open my new portlet, so I can't use it on Jboss Portal. What must I do? help me and give me if exist some links in order to understand how I must create these xml files.

      Thank you for your help and clues


      Antitrust1982

        • 1. Re: Portlet from Creator studio to Jboss Portal
          Thomas Heute Master

          Please read the doc.
          Hint: You need a file "-objects.xml"

          • 2. Re: Portlet from Creator studio to Jboss Portal
            auré manga Novice

            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
              auré manga Novice

              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
                auré manga Novice

                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 Novice

                  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