Announcement Announcement Module
Collapse
No announcement yet.
gsp generic template Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • gsp generic template

    when I create a gsp I get a blank page

    where can I create a generic gsp template in the
    sts 2.3 editor?

    also , if I type a tag and close that tag, then hit enter, the editor only brings the tag to the next line
    which I have to hit enter again to be able to type between the open and close tag.
    Last edited by douglasv; Jan 25th, 2010, 03:02 PM.

  • #2
    The new GSP wizard does not support templates. However, this is a very reasonable feature to have, and perhaps we should implement it.

    What kind of templates would you like to see?

    Comment


    • #3
      Originally posted by douglasv View Post
      also , if I type a tag and close that tag, then hit enter, the editor only brings the tag to the next line
      which I have to hit enter again to be able to type between the open and close tag.
      I'm not exactly sure what you mean here, and what is the behavior that you expect to see?

      What are the steps you are taking? Do they include content assist?

      Comment


      • #4
        using say netbeans

        if I type def user = {

        }

        if I type def user = and an opening brace , then hit enter,
        I get the above syntax, my cursor blinking between the braces

        Comment


        • #5
          Editor support for closing braces and other things like indentation and formatting are on the roadmap for Groovy-Eclipse 2.1. This is work that we will get to. See the roadmap:

          http://docs.codehaus.org/display/GRO...clipse+Roadmap

          Comment


          • #6
            Also, please let me know what you'd expect to see for templates.

            Comment


            • #7
              normally I've been getting stubs; controller, services, domain...
              which is all that is expected

              again in netbeans, for .gsp files you get
              a full blown html stub file, waiting to be edited.

              also, something no-one seems to have is support for
              the -"g namespace"- which includes code and angle-bracket completion.

              as well as the ability to recognize any name spaces I create
              since this is convention , this should be a piece of cake.

              Comment


              • #8
                Originally posted by douglasv View Post
                normally I've been getting stubs; controller, services, domain...
                which is all that is expected

                again in netbeans, for .gsp files you get
                a full blown html stub file, waiting to be edited.
                This is not available yet, but could be something we will implement in the future. I will raise an enhancement request for this.

                Originally posted by douglasv View Post
                also, something no-one seems to have is support for
                the -"g namespace"- which includes code and angle-bracket completion.

                as well as the ability to recognize any name spaces I create
                since this is convention , this should be a piece of cake.
                This is basically available in the current snapshot version. Custom taglibs and taglibs from plugins that define their own namespaces are available in content assist. There are some quirks, but it is mostly available.

                Comment


                • #9
                  Also, after typing a $ , curly braces and any nested quotes etc
                  usually do not close, but the ide types the single keystroke,
                  if preceeded by a char you wouldn't expect that though

                  Comment


                  • #10
                    Originally posted by Andrew E View Post
                    Also, please let me know what you'd expect to see for templates.
                    Is the following possible?

                    vmware's guest on the host machine can speak directly to the "CPU' for time/memory allocation!

                    can you use their (code gizmo) to read the cpu's register's directly
                    to populate the ide's editor,
                    (after first running it by the framework's specific enforcer.)

                    Then the fog produced could be sent to be clarified before being sent
                    to the cpu

                    Thus, Isolating frameworks from leaking on each other
                    under the presumption of rain.

                    Comment


                    • #11
                      Douglas,

                      I'm not sure what you are trying to say. I was hoping that you could provide some kind of text for a template that you would like to see. I have already contacted the Grails team and this is a feature that we expect to implement shortly.

                      Comment


                      • #12
                        <%@ page contentType="text/html;charset=UTF-8" %>
                        <html>
                        <head>
                        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
                        <meta name="layout" content="main"/>
                        <title>A Good Title Needed</title>
                        </head>
                        <body>
                        Your Special Code goes here.
                        </body>
                        </html>


                        bypassing the o/s etc

                        Comment


                        • #13
                          Thanks. That's exactly what I was looking for. I am planning on adding templates to the new GSP wizard. If you are interested in tracking the progress of this feature, see here:

                          https://issuetracker.springsource.com/browse/STS-791

                          Comment


                          • #14
                            Since VMWare made the Correct decision in getting involved with SpringSource
                            and indirectly with Grails.

                            It comes as a great Supprise that the "sts ide" is not installed via
                            "A Virtual Appliance! The vmplayer will work on most o/s.

                            Grails, has this option to create it's own Grails appliance!
                            stripping out the ide for grails exclusive use.

                            The environment would be pre-configured and updates would be installed with
                            removing one zip file for another.(zip file contains o/s and whatever you feature)

                            For configuring operating scenerio's though, the Isolation, cloning, and security
                            for the virtual operating system,"guest", would have to be "SOLARIS".

                            Rapid development and immediately creating any type environment
                            to run it in for a look see.

                            Comment

                            Working...
                            X