Results 1 to 5 of 5

Thread: JSP Generation with ApplicationResources.properties

  1. #1

    Default JSP Generation with ApplicationResources.properties

    Hello:

    First time poster so I hope I have not violated some FAQ by asking this question.

    I am interested in using Roo. I was wondering if the JSP pages were going to eventually tie into an ApplicationResources property file so the JSP's were that much more flexible after Roo has created the JSP's. It would be great to be able to hit the ground running and have a JSP which was that much more flexible.

    Once again, sorry if I have transgressed or placed this in the wrong forum.

    -jason

  2. #2
    Join Date
    Mar 2008
    Location
    Sydney, AU
    Posts
    974

    Default

    Jason,

    Can you elaborate a little bit what you mean by flexibility? We are currently working on the following features related to jsps;

    - internationalization
    - theming
    - tiles based templating
    - XML compliance

    Most of this work is already checked into Roo trunk if you want to give it a whirl.

    Is this what you are referring too? If not, maybe you can make some suggestions in the Jira (see Roo-8).

    -Stefan

  3. #3

    Default

    Stefan:

    I do apologize for not elaborating more. First and foremost, Roo is quite amazing and does so many things for you right off the bat.

    Let me elaborate on the Wedding RSVP example found here http://blog.springsource.com/2009/05/27/roo-part-2/

    I would love to see the actual text being generated inside the various JSP's to have text rendered from ApplicationResource*.properties and not hard coded. That way it is very easy to change the default text across the board instead of going into the various generated JSP files and changing it there.

    When looking at \WEB-INF\jsp\rsvp\create.jsp I see that a great many things are wrapped

    Existing
    <code>
    Line 17 <label for="_email">Email:</label>
    Line 25 <label for="_attending">Attending:</label>
    Line 31 <label for="_specialRequests">Special Requests:</label>
    </code>

    Love to see:
    <code>
    Line 17 <label for="_email"><spring:message code="${rsvp.email}"/>:</label>
    Line 25 <label for="_attending"><spring:message code="${rsvp.attending}"/>:</label>
    Line 31 <label for="_specialRequests"><spring:message code="${rsvp.specialRequests}"/>:</label>
    </code>

    This is not a huge issue, but so long as so many of the heavy lifting is being done, I would love this feature to be included. Will I still use Roo regardless, most likely, but this would be a great feature to have built in.

    I will also look through more of the checked in trunk and through the issues.
    -Jason

  4. #4
    Join Date
    Mar 2008
    Location
    Sydney, AU
    Posts
    974

    Default

    Jason,

    This feature (among others) is already available in Roo trunk. If you check out the sources and build Roo you can see it in action. The next release will obviously contain this as well.

    Cheers,
    Stefan

  5. #5

    Default

    Stefan:

    Thank you very much for everything. I am looking forward to the next release of Roo. If you have not already heard it from the community, thank you for such a great product! You and the team did a great job. You probably hear a lot more from us when the product doesn't work. Let me thank you for all your efforts and products! Looking forward to using Spring and Spring products for years to come!

    -Jason

Tags for this Thread

Posting Permissions

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