Quantcast

Can't get RichUI to work at all

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Can't get RichUI to work at all

Kenneth Kousen
I installed the richui plugin in my grails app.  I wanted to try out the dateChooser component, so in my create.gsp file I added:

<resource:include components="dateChooser" />  (at the top of the file)

and in the region where I used to have a date picker I now have:

<richui:dateChooser name="startDate" format="dd.MM.yyyy" />

When I run the application, the date chooser field is just a text box.  If I check the javascript console, I get 
"Uncaught ReferenceError: DateChooser is not defined" at the line where I added the dateChooser tag.

Am I missing a step?  Do I need to select a JavaScript library, or something like that?  I thought all of that was handled in the plugin.

I can verify that the plugin is indeed installed.  Anything else to try?

Ken
--
Kenneth A. Kousen
President
Kousen IT, Inc.

Email: [hidden email]
Site: http://www.kousenit.com
Blog: http://kousenit.wordpress.com
Twitter: @kenkousen
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Can't get RichUI to work at all

Andreas Schmitt
Hi Kenneth,

you have to place the resource tag within the <head> tags of your gsp
page, to include the required JavaScript and CSS files.
Hope that helps.

Best Regards,
Andreas

2010/2/21 Kenneth Kousen <[hidden email]>:

> I installed the richui plugin in my grails app.  I wanted to try out the
> dateChooser component, so in my create.gsp file I added:
> <resource:include components="dateChooser" />  (at the top of the file)
> and in the region where I used to have a date picker I now have:
> <richui:dateChooser name="startDate" format="dd.MM.yyyy" />
> When I run the application, the date chooser field is just a text box.  If I
> check the javascript console, I get
> "Uncaught ReferenceError: DateChooser is not defined" at the line where I
> added the dateChooser tag.
> Am I missing a step?  Do I need to select a JavaScript library, or something
> like that?  I thought all of that was handled in the plugin.
> I can verify that the plugin is indeed installed.  Anything else to try?
> Ken
> --
> Kenneth A. Kousen
> President
> Kousen IT, Inc.
>
> Email: [hidden email]
> Site: http://www.kousenit.com
> Blog: http://kousenit.wordpress.com
> Twitter: @kenkousen
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Can't get RichUI to work at all

JerryShea
In reply to this post by Kenneth Kousen
Check the plugin page - richui uses <resource:dateChooser />


On 22 February 2010 08:32, Kenneth Kousen <[hidden email]> wrote:
I installed the richui plugin in my grails app.  I wanted to try out the dateChooser component, so in my create.gsp file I added:

<resource:include components="dateChooser" />  (at the top of the file)

and in the region where I used to have a date picker I now have:

<richui:dateChooser name="startDate" format="dd.MM.yyyy" />

When I run the application, the date chooser field is just a text box.  If I check the javascript console, I get 
"Uncaught ReferenceError: DateChooser is not defined" at the line where I added the dateChooser tag.

Am I missing a step?  Do I need to select a JavaScript library, or something like that?  I thought all of that was handled in the plugin.

I can verify that the plugin is indeed installed.  Anything else to try?

Ken
--
Kenneth A. Kousen
President
Kousen IT, Inc.

Email: [hidden email]
Site: http://www.kousenit.com
Blog: http://kousenit.wordpress.com
Twitter: @kenkousen

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Can't get RichUI to work at all

Andreas Schmitt
Both are correct, <resource:include components="dateChooser" /> is the
new syntax for <resource:dateChooser />. The only thing is that both
have to be put between the <head> tags in the gsp, which I just made
more obvious in the documentation.

Best Regards,
Andreas

2010/2/21 Jerry Shea <[hidden email]>:

> Check the plugin page - richui uses <resource:dateChooser />
>
> On 22 February 2010 08:32, Kenneth Kousen <[hidden email]> wrote:
>>
>> I installed the richui plugin in my grails app.  I wanted to try out the
>> dateChooser component, so in my create.gsp file I added:
>> <resource:include components="dateChooser" />  (at the top of the file)
>> and in the region where I used to have a date picker I now have:
>> <richui:dateChooser name="startDate" format="dd.MM.yyyy" />
>> When I run the application, the date chooser field is just a text box.  If
>> I check the javascript console, I get
>> "Uncaught ReferenceError: DateChooser is not defined" at the line where I
>> added the dateChooser tag.
>> Am I missing a step?  Do I need to select a JavaScript library, or
>> something like that?  I thought all of that was handled in the plugin.
>> I can verify that the plugin is indeed installed.  Anything else to try?
>> Ken
>> --
>> Kenneth A. Kousen
>> President
>> Kousen IT, Inc.
>>
>> Email: [hidden email]
>> Site: http://www.kousenit.com
>> Blog: http://kousenit.wordpress.com
>> Twitter: @kenkousen
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Can't get RichUI to work at all

Kenneth Kousen
I hadn't realized the <resource:include /> tag belonged in the <head> section.  That took care of the problem.

Thanks,

Ken

On Sun, Feb 21, 2010 at 5:30 PM, Andreas Schmitt <[hidden email]> wrote:
Both are correct, <resource:include components="dateChooser" /> is the
new syntax for <resource:dateChooser />. The only thing is that both
have to be put between the <head> tags in the gsp, which I just made
more obvious in the documentation.

Best Regards,
Andreas

2010/2/21 Jerry Shea <[hidden email]>:
> Check the plugin page - richui uses <resource:dateChooser />
>
> On 22 February 2010 08:32, Kenneth Kousen <[hidden email]> wrote:
>>
>> I installed the richui plugin in my grails app.  I wanted to try out the
>> dateChooser component, so in my create.gsp file I added:
>> <resource:include components="dateChooser" />  (at the top of the file)
>> and in the region where I used to have a date picker I now have:
>> <richui:dateChooser name="startDate" format="dd.MM.yyyy" />
>> When I run the application, the date chooser field is just a text box.  If
>> I check the javascript console, I get
>> "Uncaught ReferenceError: DateChooser is not defined" at the line where I
>> added the dateChooser tag.
>> Am I missing a step?  Do I need to select a JavaScript library, or
>> something like that?  I thought all of that was handled in the plugin.
>> I can verify that the plugin is indeed installed.  Anything else to try?
>> Ken
>> --
>> Kenneth A. Kousen
>> President
>> Kousen IT, Inc.
>>
>> Email: [hidden email]
>> Site: http://www.kousenit.com
>> Blog: http://kousenit.wordpress.com
>> Twitter: @kenkousen
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email





--
Kenneth A. Kousen
President
Kousen IT, Inc.

Email: [hidden email]
Site: http://www.kousenit.com
Blog: http://kousenit.wordpress.com
Twitter: @kenkousen
Loading...