Results 1 to 10 of 14

Thread: gsp generic template

Hybrid View

  1. #1

    Default 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 at 02:02 PM.

  2. #2
    Join Date
    Aug 2008
    Location
    Vancouver, BC
    Posts
    750

    Default

    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?
    Andrew Eisenberg, Ph.D.
    SpringSource, a division of VMware
    SpringSource Tools Team
    More about AJDT, Groovy-Eclipse, and Grails tooling

  3. #3
    Join Date
    Aug 2008
    Location
    Vancouver, BC
    Posts
    750

    Default

    Quote 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?
    Andrew Eisenberg, Ph.D.
    SpringSource, a division of VMware
    SpringSource Tools Team
    More about AJDT, Groovy-Eclipse, and Grails tooling

  4. #4

    Default

    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

  5. #5
    Join Date
    Aug 2008
    Location
    Vancouver, BC
    Posts
    750

    Default

    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
    Andrew Eisenberg, Ph.D.
    SpringSource, a division of VMware
    SpringSource Tools Team
    More about AJDT, Groovy-Eclipse, and Grails tooling

  6. #6
    Join Date
    Aug 2008
    Location
    Vancouver, BC
    Posts
    750

    Default

    Also, please let me know what you'd expect to see for templates.
    Andrew Eisenberg, Ph.D.
    SpringSource, a division of VMware
    SpringSource Tools Team
    More about AJDT, Groovy-Eclipse, and Grails tooling

  7. #7

    Default

    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.

  8. #8

    Default

    Quote 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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •