9 Replies Latest reply on Mar 7, 2006 6:00 AM by xmaniac

    Portlet example released

    xmaniac

      I would have loved to finish it in time (quite a lot of things in the todo list yet) but it wasn't posible. Unfortunately I won't be able to work on it on regular basis from now on so I'm releasing it as is.

      This project was developed from scratch to learn about the JBOSS environment. It has not been tested in any way.

      Features:
      * Portlet & servlet development in a web app
      * Spring M2
      * Hibernate
      * i18n
      * WYSIWYG FCKEditor
      * Transparent menus
      * Layout and themes
      * JBOSS deployment

      All in all it served me well to understand all the portal infrastructure. Specially those areas where the documentation alone was not enough. Beware that some things are not done following the JBOSS patterns (specially the 3-column layout!)

      It's been developed using Netbeans. I'm quite sure you'll need it to compile.

      Known Issues:
      * To be able to change the Locale you'll have to patch JBOSS Portal sources with http://www.jboss.com/index.html?module=bb&op=viewtopic&t=77394

      Download:
      SRC: http://www.internna.es/opensource/InternnaPortal_src.rar
      BIN: http://www.internna.es/opensource/InternnaPortal.war

      Installation:
      * First of all, you need to have a working installation of JBOSS Portal v2.2 (better from CVS sources) and MySQL 4.1 (at least, this is what I use)
      * If using the WAR provided just deploy it, create a role named Editor and assign it to any user. You should have a new Page created (News).
      * If compiling from sources, download Spring (nightly build recommended http://www.springframework.org/snaphots), download JSTL from Apache, open Netbeans, open the project, add libraries as needed and compile. Once you have the WAR follow the above steps.

      I hope all this helps someone!! :-)

        • 1. Re: Portlet example released
          sitongia

          What's a rar file? Why not package it as a zip or something more common?

          ==Leonard

          • 2. Re: Portlet example released
            vjmohan

            xmaniac,
            Yeh its really helpful,Thanx.I really appreciate your efforts and expectiog lot more stuff from you

            • 3. Re: Portlet example released
              csarmientom

              Hello xmaniac
              I'm new in jboss portal, and i was reading your code, i want to change the DB from MySQL to Oracle for run your project, could you explain me how i can do that
              Thanks for you help!
              Claudia

              • 4. Re: Portlet example released
                silicio

                 

                "csarmientom" wrote:
                Hello xmaniac
                I'm new in jboss portal, and i was reading your code, i want to change the DB from MySQL to Oracle for run your project, could you explain me how i can do that
                Thanks for you help!
                Claudia

                Interests me too...

                • 5. Re: Portlet example released

                  Hi
                  Do I need Netbeans to run this application?

                  thanks
                  ilango

                  • 6. not able to access the site

                    Hi
                    I am not able to access the site for downloading your application

                    thanks
                    ilango

                    • 7. Re: Portlet example released
                      csarmientom

                      Hello:
                      I can change the DB from MySql to Oracle, only had to modify the applicationContext.xml in hibernateProperties :
                      org.hibernate.dialect.Oracle9Dialect

                      and then in News.hbm.xml the word <generator class="native" />


                      Now it runs ok in Oracle but don't save the new in the table, only the sequence, i'm reading the code and i not found the part when populate the object news to save
                      Is it this part for implement?
                      Thanks
                      Claudia

                      • 8. Re: Portlet example released

                        Hi
                        Can I use Eclipse to compile the application? Has anybody worked on this?

                        thanks in advance

                        • 9. Re: Portlet example released
                          xmaniac

                          Sorry for the late answers.

                          I'm afraid that you need Netbeans to compile. You can try Eclipse or Ant directly but that approach would need some work. Anyway, in theory, you could use the build.xml / build-impl.xml to compile.

                          All the DB code is generated by Spring/Hibernate. I've written no code to save to the DB. Those changes (News.hbm.xml, applicationContext.xml) should be enough. Was the table created on startup?

                          Great that at least someone found it useful :-)