9 Replies Latest reply on Feb 4, 2005 9:59 PM by paarsar

    Template System

    techn9ne

      I was just checking out : http://www.onjava.com/lpt/a/3904 . It appears that Nukes doesn't currently use a template system and is just embedding html in the java which is a a bit messy. Is there plans to intergrate a template system of some sort?

        • 1. Re: Template System

          we plan to integrate JSPs very soon.

          julien

          • 2. Re: Template System
            techn9ne

            Sounds Good. You guys have done an incredible job considering how old JBOSS Nukes is. I have a semi-large web site that I plan on moving to Jboss Nukes when gallery and news modules are complete.

            • 3. Re: Template System
              dexter

              Hi,
              have you considered using a real template engine like Velocity? I think it would be great to let people who don't know jsps or java to create new themes.
              The danger of mixing code with layout would be lower and changes yould be visible without waiting for the compilation of the jsp.
              And, in my opinion, the templates would be a lot more readable..

              Just my 2 cent

              Dexter

              • 4. Re: Template System

                thing is that we don't obligate anyone to do something well defined. if you want to use velocity in nukes you can do it easily.

                julien

                • 5. Re: Template System
                  ericmacau

                  Hi,

                  If it use JSPs, will it still enable to deploy Block/Module/Theme dynamically in run-time ???

                  Eric

                  • 6. Re: Template System

                    actually, to use jsp, you have to declare a block/module/theme deploy a class for it that you create and instead of coding operations on them like :

                    public void op(Page page) { // .... }

                    you create a JSP in the directory where the component reside and you name it like the operation :

                    op.jsp

                    then it will be called by the module instead of forwarding the operation to the mbean.

                    subsequently you can still redeploy components

                    julien

                    • 7. Re: Template System
                      ericmacau

                      Hi,

                      One of the inerested feature of JBossNukes is hot deployment.

                      If useing JSP causes to redeploy, I prefer using Template Engine such as Velocity.

                      Anyway, will Nukes support contents customization or personalize preferences in the future version??

                      Eric

                      • 8. Re: Template System

                        > Hi,
                        >
                        > One of the inerested feature of JBossNukes is hot
                        > deployment.
                        >
                        > If useing JSP causes to redeploy, I prefer using
                        > Template Engine such as Velocity.

                        jsp enables you to have code within it, a template engine won't for the sake of MVC.

                        >
                        > Anyway, will Nukes support contents customization or
                        > personalize preferences in the future version??
                        >

                        again could you be more precise ?

                        > Eric

                        • 9. Re: Template System
                          paarsar

                          Has any successfully deployed velocity with NUKES
                          if so i would love to see an example