4 Replies Latest reply on Mar 10, 2010 5:26 PM by Matt Wringe

    Edit / Refresh a portlet in Gatein

    daniel carpio contreras Newbie

      Hi again,

       

      I have just test a very basic portlet which prints a simple message "Hello world!!!" and i added it to the GateIn portal ( http://localhost:8080/portal ). Now i made some modifications in the portlet's source code and added it to the GateIn again (the .war file copied to the folder GATEIN_HOME/server/default/deploy and replaced previous .war)

       

      The point is when i click Groups > Administration > Register and then click Auto Import (on GateIn portal) there is no new deployed portlet, it's the same with the "Hello world!!!" message.

        • 1. Re: Edit / Refresh a portlet in Gatein
          Matt Wringe Master

          you shouldn't need to do any changes if you are over writing the portlet war. You should just be able to redeloy the portlet (by overwriting the file) and have its updated content in the portal.

           

          Is there an issue with your new content not being displayed? or were you just expecting a change in the application registry?

          • 2. Re: Edit / Refresh a portlet in Gatein
            daniel carpio contreras Newbie

            Thanks por your answer Matt. But, as you say, there is no change in the portlet's content updated. I mean, i write another message and this is not being displayed.

            • 3. Re: Edit / Refresh a portlet in Gatein
              Soren Schmidt Newbie

              Hola Daniel,

              gracias por tu mensaje.

               

              Have you re-compiled the modified source code (I know a stupid question, but that happens) for the new war?

              Have you restarted your application server in order to see if your changes are taken into account?

              If you do a hot deploy of your war - have you seen messages in the application server's traces that the war has been replaced?

               

              There is no need to re-import your portlet with "Auto-Import" if the name of the portlet and the name of the war remains unchanged.

              On the other hand, if you want to see the changement you might just rename the name of your war in order to see the difference when executing "Auto-Import".

               

              Saludos

              Soren

              • 4. Re: Edit / Refresh a portlet in Gatein
                Matt Wringe Master

                ok, I have just tested this and it works for me.

                 

                I have a portlet, I add it in the application registry, create a page and add the portlet to the page.

                 

                I make an update to the portlet, rebuild the portlet and overwrite the portlet war in the deploy directory of the server

                 

                I then refresh the page with the portlet on it and see the update I made.


                Can you give some more information on the steps you are taking?