Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9180077
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T17:57:28+00:00 2026-06-17T17:57:28+00:00

I have been trying to use grails with the jquery-ui plug-in, I have created

  • 0

I have been trying to use grails with the jquery-ui plug-in, I have created a simple controller along with a gsp page that uses a datepicker, I have not been able to get the date picker to show a list of dates. I have read the plug in documentation + articles on forums etc. but have not found a resolution.

Plug in documentation – http://grails.org/plugin/jquery-ui

Dev environment = grails 2.2.0, JDK 7, GGTS latest version

Any pointers to getting this working would be great.

(I have tried copying/renaming files in web app/other folders but have not been successful)

Steps
1. Created a new grails project

  1. installed the jQuery-ui plug in

  2. Created a controller and gsp page – per the documentation

  3. When I navigate to the page it gives me the following error

    ERROR resource.ResourceMeta – Resource not found: /plugins/jquery-ui-1.8.24/jquery-ui/themes/darkness/jquery-ui-1.8.24.custom.css
    | Error ERROR [/Test2].[default] – Servlet.service() for servlet [default] in context with path [/Test2] threw exception
    Message: It looks like you are missing some calls to the r:layoutR

The correct solution on 23-jan-13 that worked in my environment as described in the original post is shown below, I found the code posted on the grails website does not necessarily work as is – hence this edit. (if anyone has any edits do let me know directly)

GSP Code:

<html>
    <head>
        <title>Simple GSP page</title>
        <g:javascript library="jquery" />
        <g:javascript library="jquery-ui"/>

        <script type="text/javascript">

            $(document).ready(function() { 
               $("#datepicker").datepicker({dateFormat: 'yy/mm/dd'}); }) 
        </script>
 <r:layoutResources/>   
 </head>
    <body>
        <div>
            <p> Between <input type="text" id="datepicker"> </p>        
        </div>
      <r:layoutResources/>
    </body>
</html>

Controller code:

def testDatePicker = { 
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T17:57:29+00:00Added an answer on June 17, 2026 at 5:57 pm

    Note – I incorrectly edited my original question along with providing the answer, the original question also has the solution description.

    I finally was successful integrating jquery-ui and grails, faced some issue which allow the solution to runs. Steps.

    1. Create new Grails project (my environment grails 2.2.0, JDK 7, GGTS latest version)
    2. Install jquery-ui plug-in, edit BuildConfig add runtime “:jquery-ui:1.8.24”.
    3. Create a controller and gsp page, using grails

    GSP Page content

     <html>
        <head>
    
        <title>Simple GSP page</title>
        <g:javascript library="jquery" />
        <g:javascript library="jquery-ui"/>
    
        <r:layoutResources/>   
    
        <script type="text/javascript">
    
           $(document).ready(function() { 
               $("#datepicker").datepicker({dateFormat: 'yy/mm/dd'}); }) 
        </script>
    
    
         </head>
            <body>
                <div>
                    <p> Between <input type="text" id="datepicker"> </p>        
                </div>
              <r:layoutResources/>
            </body>
        </html>
    

    Controller code:

        def testDatePicker = { 
        }
    

    4. Run the solution in grails, navigate to the date picker on your page, it should show you the sleek date picker

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been trying to use a simple jQuery operation to dynamically match and
I have been trying to use localstorage to store Jquery-min but I am unable
I have been trying to use Hibernate for a while. I like hibernate that
I have been trying to use JQuery UI but cant seem to get any
I have been trying to use the BigInteger type, that is supposedly new in
I have been trying to use Android's AudioManager.setMicrophoneMute() without much success. That is, it
I have been trying to use extern in order to use variable that is
I have been trying to use a formula that is used to work out
I have been trying to use date_format , however as far as I know,
I have been trying to use array_unique to remove duplicates from the search results

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.