Giter Site home page Giter Site logo

joergrech / kickstartwithbootstrap Goto Github PK

View Code? Open in Web Editor NEW
65.0 65.0 52.0 3.69 MB

Kickstart is an extension for Grails in order to start your project with a good looking frontend. It is intended to be used in rapid application scenarios such as a Startup Weekend or a prototyping session with a customer. This plugin provides adapted scaffolding templates for standard CRUD pages using Twitter's CSS Framework Bootstrap and offers some basic pages for a web site.

Groovy 16.60% CSS 54.21% JavaScript 29.19%

kickstartwithbootstrap's Introduction

Hi, I'm Jörg.

I'm a Software Engineer & Technical Entrepreneur from Germany interested in the development of automated software systems and building innovative prototypes and companies. My current focus is the development of Technology Knowledge Graphs / Ontologies for Techmap.io using techniques such as Web Scraping and technologies like Next.js & React.js, Groovy & Java, MongoDB & Elasticsearch, as well as Docker & Kubernetes for the search engine itself.

Currently used Technologies & Tools

Previously used Technologies & Tools

👨🏼‍💻 Work

Currently, I'm CEO and Founder of Techmap.io - a workplace search engine to find companies using technologies they use internally in order to apply for a new job with technologies one loves.

In the past, I worked almost 10 years in applied research at Fraunhofer IESE and SAP Research before co-founded the Startup Talentwunder.

Twitter GitHub GitHub Reddit

My GitHub stats Top Langs

You can follow me at: and Techmap.io at:
@JoergRech on Twitter TechmapIO on Twitter
@JoergRech on Github @Techmap on Github
Joerg.Rech on Facebook Techmap.io on Facebook
JoergRech on Linkedin Techmap GmbH on Linkedin
Joerg_Rech on Xing Techmap GmbH on Xing

kickstartwithbootstrap's People

Contributors

burtbeckwith avatar duergner avatar joergrech avatar mukhanov avatar stlhrt avatar thomasbittermann avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

kickstartwithbootstrap's Issues

HTTPS Mixed Content Warnings IE

If plugin's host application uses SSL, IE will warn of mixed content on each page load.

This is caused by the following unsecure resource in kickstart.gsp:

<!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
<!--[if lt IE 9]>
    <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->

<%-- For Javascript see end of body --%>

My proposed solution is to use the https version of the js by default(there should be no adversie side-effects to non-ssl pages.

<!--[if lt IE 9]>
    <script src="https://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->

<%-- For Javascript see end of body --%>

Trailing space in CustomDateEditorRegistrar

There is a blank space after the filename, just before the extension in CustomDateEditorRegistrar .groovy. I've checked the repository and it seems to have been there forever but my application won't run complaining that it cannot find the class. If I rename the file (wipe the blank space) it works perfectly. Is there a reason for the space being there?

jQuery conflict

I see you have updated the plugin to use Bootstrap 3.0.2. This requires jQuery 1.9 or greater as seen here:

https://github.com/twbs/bootstrap/blob/v3.0.2/bower.json

which was referenced here:

http://getbootstrap.com/getting-started/#whats-included

I added to BuildConfig:

runtime ":jquery:1.10.2"

to take care of this. However, when combined with Kickstart:

compile ":kickstart-with-bootstrap:0.9.9"

I get an error during compilation:

| Installing zip jquery-1.8.3.zip.....
| Installed plugin jquery-1.8.3.....
| Error Fatal error during compilation org.apache.tools.ant.BuildException: srcdir "C:\Users\phil.grails\2.2.4\projects\test-grails-224\plugins\jquery-1.10.2\grails-app\taglib" does not exist! (Use --stacktrace to see the full trace)

It appears there's a hard dependency on jQuery 1.8.3, which according to the Bootstrap authors is incompatible. I'm not sure if there's a way to specify a dependency in Grails in terms of a minimum level (in this case 1.9), but that would be best. Otherwise, maybe leave out the dependency and instruct users to add it themselves like Spring Security UI does.

For reference, I'm using Grails 2.2.4 and testing with a brand new project generated by GGTS 3.4.

Unable to get the right national flag for zh_CN

I'm a Chinese and my locale is zh_CN. When the application starts, I get an error message in console.
| Error 2013-08-15 10:24:13,945 [http-bio-8080-exec-4] ERROR resource.ResourceMeta - Resource not found: /plugins/kickstart-with-bootstrap-0.9.6/images/flags/zh.png

I find that there's only cn.png under /plugins/kickstart-with-bootstrap-0.9.6/images/flags.

java.io.IOException

On running the generate-all for a domain class, we get this exception in the console.

"java.io.IOException: Cannot run program "git": CreateProcess error=2, The system cannot find the file specified"

Let me know, if you need any more details.

On a side note, great plugin! i was just looking for something to kickstart

Error: Script 'Kickstart' not found, did you mean:

Hi,

I am a beginner of programmin and also Groovy/Grails. Now I have installed a Grails 2.3.4 version and Groovy/Grails Tool Suite Version: 3.4.0 .

Now I am trying to install a Kickstart plug-in and I did set a dependency in BuildConfig.groovy like this: compile ": kickstart-with-bootstrap: 1.0.0"

However when I trying to call the script "kickstart" I get an error message:

Loading Grails 2.3.4
|Configuring classpath
|Running pre-compiled script

|Script 'Kickstart' not found, did you mean:

  1. Stats
  2. DbmListLocks
  3. TestApp
  4. DbmClearChecksums
  5. War
    Please make a selection or enter Q to quit:

Am I calling the script correctly or what might be the error reason?

Kind regards,

Sophie

problems with grails-2.3.RC1.

I create a new app with grails-2.3.RC1 then install kickstartWithBootstrap.
Create a new domain class, a new controller and then run generate-views mypackage.Mydomain.
The error:

Error Error running script generate-views supplierregister.Sector : groovy.lang.MissingMethodException: No signature of method: static org.codehaus.groovy.grails.orm.hibernate.cfg.GrailsDomainBinder.getMapping() is applicable for argument types: (org.codehaus.groovy.grails.commons.DefaultGrailsDomainClass) values: [Artefact > Sector]
Possible solutions: getMapping(java.lang.Class), getMapping(org.codehaus.groovy.grails.commons.GrailsDomainClass) (Use --stacktrace to see the full trace)

I have no problems without kickstartWithBootstrap.

Caused by IllegalArgumentException: No module found with name [bootstrap]

Con la nueva versión del plugin, hay que mantenerlo instalado. Como hago para no depender del plugin y que la aplicación funcione? Gracias.

| Running Grails application
| Error 2012-10-23 10:26:43,604 [localhost-startStop-1] ERROR resource.ResourceProcessor - Unable to load resources
Message: Cannot create resource /less/bootstrap/bootstrap.less, is not a supported type
Line | Method
->> 107 | newResourceFromArgs in org.grails.plugin.resource.ResourceModule


| 64 | doCall in org.grails.plugin.resource.ResourceModule$_closure1
| 58 | . . . . . . . . in org.grails.plugin.resource.ResourceModule
| 681 | defineModuleFromBuilder in org.grails.plugin.resource.ResourceProcessor
| 802 | doCall . . . . . . . . in org.grails.plugin.resource.ResourceProcessor$_loadModules_closure19
| 1075 | reloadAll in org.grails.plugin.resource.ResourceProcessor
| 172 | doCall . . . . . . . . in ResourcesGrailsPlugin$_closure3
| 303 | innerRun in java.util.concurrent.FutureTask$Sync
| 138 | run . . . . . . . . . . in java.util.concurrent.FutureTask
| 886 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker
| 908 | run . . . . . . . . . . in ''
^ 662 | run in java.lang.Thread
| Server running. Browse to http://localhost:8080/GrailsApplication6
| Error 2012-10-23 10:26:46,688 [http-bio-8080-exec-2] ERROR [/GrailsApplication6].[grails-errorhandler] - Servlet.service() for servlet grails-errorhandler threw exception
Message: Error applying layout : kickstart
Line | Method
->> 886 | runTask in \grails-app\views\layouts\kickstart.gsp


| 908 | run in ''
^ 662 | run . . in ''

Caused by GroovyPagesException: Error processing GroovyPageView: Error executing tag <r:layoutResources>: No module found with name [bootstrap]
->> 464 | runTask in \grails-app\views\layouts\kickstart.gsp


Caused by GrailsTagException: Error executing tag <r:layoutResources>: No module found with name [bootstrap]
->> 17 | doCall in C:/Users/globalr/Documents/NetBeansProjects/GrailsApplication6/grails-app/views/layouts/kickstart.gsp


Caused by IllegalArgumentException: No module found with name [bootstrap]
->> 1132 | getAllModuleNamesRequired in org.grails.plugin.resource.ResourceProcessor


| 398 | doCall in org.grails.plugin.resource.ResourceTagLib$_closure6
| 39 | doCall in C__Users_globalr_Documents_NetBeansProjects_GrailsApplication6_grails_app_views_layouts_kickstart_gsp$_run_closure2
| 44 | run in C__Users_globalr_Documents_NetBeansProjects_GrailsApplication6_grails_app_views_layouts_kickstart_gsp
| 886 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker
| 908 | run in ''
^ 662 | run . . in java.lang.Thread
| Error 2012-10-23 10:26:46,826 [http-bio-8080-exec-2] ERROR [Tomcat].[localhost] - Exception Processing ErrorPage[errorCode=404, location=/grails-errorhandler]
Message: Error applying layout : kickstart
Line | Method
->> 886 | runTask in \grails-app\views\layouts\kickstart.gsp


| 908 | run in ''
^ 662 | run . . in ''

Caused by GroovyPagesException: Error processing GroovyPageView: Error executing tag <r:layoutResources>: No module found with name [bootstrap]
->> 464 | runTask in \grails-app\views\layouts\kickstart.gsp


Caused by GrailsTagException: Error executing tag <r:layoutResources>: No module found with name [bootstrap]
->> 17 | doCall in C:/Users/globalr/Documents/NetBeansProjects/GrailsApplication6/grails-app/views/layouts/kickstart.gsp


Caused by IllegalArgumentException: No module found with name [bootstrap]
->> 1132 | getAllModuleNamesRequired in org.grails.plugin.resource.ResourceProcessor


| 398 | doCall in org.grails.plugin.resource.ResourceTagLib$_closure6
| 39 | doCall in C__Users_globalr_Documents_NetBeansProjects_GrailsApplication6_grails_app_views_layouts_kickstart_gsp$_run_closure2
| 44 | run in C__Users_globalr_Documents_NetBeansProjects_GrailsApplication6_grails_app_views_layouts_kickstart_gsp
| 886 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker
| 908 | run in ''
^ 662 | run . . in java.lang.Thread

Kickstart hardcoded in _navbar

${meta(name:'app.name')}

Kickstart v${meta(name:'app.version')}

In grails-app/views/_menu/_navbar.gsp Should be

${meta(name:'app.name')}

${meta(name:'app.name')} v${meta(name:'app.version')}

use of less

it would be good if this used the less versions of the stylesheets

Unable to load beans from resources

Hi. I have next issue with 0.9.8 version and grails 2.2.4

| Error 2013-10-03 15:38:17,465 [localhost-startStop-1] ERROR spring.GrailsRuntimeConfigurator  - [RuntimeConfiguration] Unable to load beans from resources.groovy
Message: No such property: CustomDateEditorRegistrar for class: resources
    Line | Method
->>    3 | doCall                    in resources$_run_closure1
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|    757 | invokeBeanDefiningClosure in grails.spring.BeanBuilder
|    584 | beans . . . . . . . . . . in     ''
|    757 | invokeBeanDefiningClosure in     ''
|    584 | beans . . . . . . . . . . in     ''
|    527 | invokeMethod              in     ''
|    334 | innerRun . . . . . . . .  in java.util.concurrent.FutureTask$Sync
|    166 | run                       in java.util.concurrent.FutureTask
|   1145 | runWorker . . . . . . . . in java.util.concurrent.ThreadPoolExecutor
|    615 | run                       in java.util.concurrent.ThreadPoolExecutor$Worker
^    722 | run . . . . . . . . . . . in java.lang.Thread

Any ideas, how can I fix it?

Kickstart 0.9.8 availability

Hi

Do you when the version 0.9.8 of Kickstart will be available from the Grails Plugins repository?

Thanks

Said

Versions 0.9.0 and 0.9.2 incompatible with grails 2.1.3

when I try to install the plugin I get the following error:

Error Plugin hibernate-2.2.0 requires version [2.2 > *] of Grails which your current Grails installation does not meet. Please try install a different version of the plugin or Grails.

0.8.6 i18n not found

When deploy it in tomcat 6 and 7, the next error arise:

caused by: java.io.FileNotFoundException: /Users/sfhynx/Desarrollo/apache-tomcat-6.0.35/bin/./grails-app/i18n
at org.codehaus.groovy.runtime.DefaultGroovyMethods.checkDir(DefaultGroovyMethods.java:15537)
at org.codehaus.groovy.runtime.DefaultGroovyMethods.eachFileRecurse(DefaultGroovyMethods.java:15616)
at org.codehaus.groovy.runtime.DefaultGroovyMethods.eachFileRecurse(DefaultGroovyMethods.java:15855)
at org.codehaus.groovy.runtime.dgm$179.invoke(Unknown Source)
at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:271)
at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:53)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
at KickstartWithBootstrapGrailsPlugin$_closure1.doCall(KickstartWithBootstrapGrailsPlugin.groovy:48)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
... 37 more

I thing the problem is in./KickstartWithBootstrapGrailsPlugin.groovy: new File("./grails-app/i18n").eachFileRecurse

Edit: if you comment the "doWithApplicationContext" it works.

IE Compatability Mode Issues

Using does not seem to work when using kickstart with bootstrap. This is for an intranet site in internet explorer. It seems like for that line to work it needs to be the first line in the head tag, and all the pages rendered through kickstart seem to always put a style tag before it, which causes it to fail. Anyway I can work around this and get the compatibility line first in the head?

Pure grails 2.0 support

I would love to see a version based on pure grails 2.0 scaffolding templates and support for the resource framework.
And I think the plugin would benefit a lot if it is kept simpler. Adding filters, changing UrlMappings, changing the way _form.gsp works etc. should be adressed elsewhere, I think.

plugins/resources-1.2/src/java" does not exist!

Hi,

I just tried to install ":kickstart-with-bootstrap:0.9.6" on grails 2.2.4 but I get this exception:

| Error Fatal error during compilation org.apache.tools.ant.BuildException: srcdir "/Volumes/hdd2/Users/devusr/.grails/2.2.4/projects/Kickstart1/plugins/resources-1.2/src/java" does not exist! (Use --stacktrace to see the full trace)
| Error org.codehaus.groovy.grails.cli.ScriptExitException
| Error at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
| Error at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
| Error at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
| Error at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
| Error at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:77)
| Error at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrapNoCoerce.callConstructor(ConstructorSite.java:102)
| Error at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:57)

Is this plugin compatible with 2.2.4?

Regards
Serano

kickstart.js does not work with jQuery.noConflict()

Hi
In my project I am using a Prototype.js based modal dialog plugin. In order to get this to work jQuery has to be in no conflict mode which means it won't be accessible via '$' but will only be available as 'jQuery'.
To enable the kickstart.js to work in this case you need to wrap your call to $(document.ready) in a function call that has $ as parameter and immediately call the function, passing it jQuery:
(function($) {
$(document.ready(function(){
//code here
}));
}(jQuery);

The code inside function($) can then use $ to refer to jQuery.
You can see examples of this pattern in the Bootstap javascript.

Register modal form: display issues

Hello

I have set Kickstart on a brand new Grails 2.2.4 projet.
I noticed that when I select "Sign in > Register", the modal form looks weird.
The entry fields and the register button are outside the modal form.

Any idea how to fix that ?

Thanks.

Said

No templates ?

Hello

I have created a new Grails 2.3.4 project.

I have used the version 1.0.0 of kickstart, refreshed the dependencies and ran "kickstart".

I was surprised to see that no templates have been installed in my project.

In addition, the views added with Spring Security Core (1.2.7.3) have not been replaced by kickstart.

Is it a known issues or did I missed something ?

Thanks

Said

Stuck at "Retrieving stats about the application"

When I run my GRAILS application for the first time with Kickstart, it runs fine. The WAR gets loaded, the web site pops up, everything's great.
If I shut it down and try to run it again, it gets stuck at "Retrieving stats about the application"

i.e.
Listening for transport dt_socket at address: 5005
| Loading Grails 2.2.0
| Configuring classpath
| Configuring classpath.
| Environment set to development
| Environment set to development.
| Environment set to development..
| Environment set to development...
| Environment set to development....
| Environment set to development.....
| Packaging Grails application
| Retrieving stats about the application

grails.resources.processing.enabled=false in development

When I deactivate the resources processing (grails.resources.processing.enabled=false) in order to be able to test my css changes without having to restart the app, the kickstart css resources are not loaded at all. The ones I have defined in my app are OK.

This seems to be linked to the use of less skins definitions: When I force the use of those resources:

'bootstrap' {
dependsOn 'jquery'
resource url: [dir: 'bootstrap/js', file: 'bootstrap.min.js']
resource url: [dir: 'bootstrap/css', file: 'bootstrap.css']
resource url: [dir: 'bootstrap/css', file: 'bootstrap-responsive.css']
}
// TODO: link a second static/compiled skin or remove the switch entries in layouts/Kickstart.gsp and /_menu/_config.gsp
'bootstrap_skinA' {
dependsOn 'jquery'
resource url: [dir: 'bootstrap/js', file: 'bootstrap.min.js']
resource url: [dir: 'bootstrap/css', file: 'bootstrap.css']
resource url: [dir: 'bootstrap/css', file: 'bootstrap-responsive.css']
}

Everything works fine.

Not sure why the less css is used in development and not in production.

Weblogic Deploy error

Fresh projects fail to deploy on Weblogic container.

java.io.FileNotFoundException: C:\bwl\user_projects\domains\WLSDomain.\grails-a
pp\i18n

Missing UrlMappings.groovy in the plugin zip file - version 0.8.0

When executing the grails kickstart command, the script try to copy the file UrlMappings.groovy from the plugins source folder but the file is missing.

It's look like when releasing the plugin the file was skipped from the plugin zip file.

It will be very interesing that you put the github link from your grails plugins page, this way it will be more faster to everyone to get the missing file or to be able to look more closely the plugin code.

A big thank you for your work! I like the idea :-)

Navbar brand alignment

The brand does not align with other items in the navbar due to a bug in the kickstart.css

Current:
.navbar .brand { padding: 2px 20px 10px 20px; }

Should change to:
.navbar .brand { padding: 7px 20px 10px 20px; }

Grails 2.0.0-console errors

Environment

Win7 Home Premium
jdk1.7.0_01
Grails 2.0.0

Symptoms

When starting a new application (here called: bootstripper) and installing the KickstartWithBootstrap Plugin, the following errors are shown when pulling up the homepage of the application:

Console Output

'''
E:\Grails\workspace\bootstripper>grails run-app
| Server running. Browse to http://localhost:8080/bootstripper
home.index: [controller:home, action:index]
| Error 2012-02-09 22:37:48,490 ["http-bio-8080"-exec-1] ERROR resource.ResourceMeta - Resource not found: /bootstrap/js/bootstrap-transition.js
| Error 2012-02-09 22:37:49,702 ["http-bio-8080"-exec-1] ERROR [/bootstripper].[gsp] - Servlet.service() for servlet [gsp] in context with path [/boo
tstripper] threw exception
Message: It looks like you are missing some calls to the r:layoutResources tag. After rendering your page the following have not been rendered: [defer
]
Line | Method
->> 1110 | runWorker in java.util.concurrent.ThreadPoolExecutor


| 603 | run in java.util.concurrent.ThreadPoolExecutor$Worker
^ 722 | run . . . in java.lang.Thread
'''

Stacktrace:

'''
2012-02-09 22:37:49,709 ["http-bio-8080"-exec-1] ERROR StackTrace - Full Stack Trace:
java.lang.RuntimeException: It looks like you are missing some calls to the r:layoutResources tag. After rendering your page the following have not been rendered: [defer]
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
at com.springsource.loaded.ri.ReflectiveInterceptor.jlrConstructorNewInstance(ReflectiveInterceptor.java:963)
at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:77)
at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrapNoCoerce.callConstructor(ConstructorSite.java:102)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:54)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:182)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:190)
at org.grails.plugin.resource.DevModeSanityFilter.doFilter(DevModeSanityFilter.groovy:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.codehaus.groovy.grails.web.servlet.mvc.GrailsWebRequestFilter.doFilterInternal(GrailsWebRequestFilter.java:69)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.codehaus.groovy.grails.web.filters.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:69)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:164)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:403)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:301)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:162)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:140)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:309)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
2012-02-09 22:37:49,713 ["http-bio-8080"-exec-1] ERROR StackTrace - Full Stack Trace:
java.lang.RuntimeException: It looks like you are missing some calls to the r:layoutResources tag. After rendering your page the following have not been rendered: [defer]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
'''

Fixes / Workarounds found

The first error can be fixed by copying bootstrap-transition.js found at
https://github.com/twitter/bootstrap/blob/master/js/bootstrap-transition.js

Suggestion - Rather than an issue

I think excellent work has gone into this plugin but just extending the though, how good it will be to provide an option for the logged in user to change the theme to suit their preferences and color tone?

Looking forward to this, whenever it is incorporated.

How to add additional params in the pagination tag?

Hi joergrech,

I have a search page for some domain. I hope the pagination can embed additional params, say keyword for query, in the pagination url.

For example, the key is "test", I hope the url be something like http://XXX/domain/search?q=test&max=10&offset=20 for page 3.

I tried <bs:paginate q="test" total="${domainInstanceTotal}" />, but it doesn't work, only generates url like http://XXX/domain/search?max=10&offset=20, missing the additional param.

Datepicker broken on grails 2.3.0

I'm using 0.9.6 and upgraded an app to grails 2.3.0, I managed to use jquery 1.8.3 as 1.10 is not working.

Datepicker is broken and dates are not parsed. Maybe new data binding in grails 2.3.0 ?

Bootstrap CSS not applied when i deploy to Tomcat 6 and 7 on Openshift PaaS

Hi,

i am deploying my Grails application on openshift cloud which provides Tomcat 6 and 7.
The application deploys and starts fine but when i display the page , the page doesn't look like it's expected ( Boostrap style and classes are not applied ).
I checked the head to verify if all css are there and it seems that's OK.
I am not sure, but i suspect the Less process.

StructuredDateEditor accepts 5-digit years

Hi Joerg,

This is more a request than a bug.
The registered StructuredDateEditor accepts this date 01/02/20135
even if the specified default.date.format is dd/MM/yyyy.
Validation goes well but when I save the instance holding this date I get the following exception:

MysqlDataTruncation: Data truncation: Incorrect datetime value: '20135-02-01 00:00:00'

I would either add this to the documentation so developers can decide how to handle it and avoid surprises or change the code to use StructuredDateEditor(DateFormat dateFormat, boolean allowEmpty, int exactDateLength) instead of StructuredDateEditor(DateFormat dateFormat, boolean allowEmpty) :

String dateFormat = messageSource.getMessage("default.date.format",null, 'dd/MM/yyyy', LocaleContextHolder.locale)
// do more logic here
SimpleDateFormat simpleDateFormat = new SimpleDateFormat(dateFormat)
simpleDateFormat.setLenient(false);
// Use StructuredDateEditor(DateFormat dateFormat, boolean allowEmpty, int exactDateLength)
// to give the exact date format length 
registry.registerCustomEditor(Date, new StructuredDateEditor(simpleDateFormat, true, dateFormat.length()))

For more on this issue check:
https://jira.springsource.org/browse/SPR-1049

Note that I am using version 0.6.1b (though i don't think is makes a difference if I update to the latest version)

Thank you.

No such property: TimeCategory (minor, suggested fix)

Environment

Win7 Home Premium
JDK 1.7.0_01
Grails 2.0.0
KickstartWithBootstrap Plugin 0.5.4

Symptoms

When starting a new application (here called: boot3) and installing the KickstartWithBootstrap Plugin, the following errors are shown (homepage and console) when calling the homepage of the application:

Console Output

home.index: [controller:home, action:index]
| Error 2012-02-15 00:11:17,720 ["http-bio-8080"-exec-2] ERROR errors.GrailsExceptionResolver - MissingPropertyException occurred when processing req
uest: [GET] /boot3/
No such property: TimeCategory for class: kickstart.KickstartFilters. Stacktrace follows:
Message: No such property: TimeCategory for class: kickstart.KickstartFilters
Line | Method
->> 16 | doCall in kickstart.KickstartFilters$_closure1_closure2_closure4$$ENOv49Kf
| 1110 | runWorker in java.util.concurrent.ThreadPoolExecutor
| 603 | run . . . in java.util.concurrent.ThreadPoolExecutor$Worker
^ 722 | run in java.lang.Thread

Suggested Fix

(already tested, seems to work fine)
in file \grails-app\conf\kickstart.groovy
insert the following after line 1:
import groovy.time.*

Resources not working in PROD mode

image resources are not working with PROD mode or PAAS deployment (clound foundry). If I comment out KickstartResources.groovy skin definitions without less, then it works in PROD with run-war, but not in PAAS. Prod tries to load images from /APP/images/frontpage/bs-docs-twitter-github.png and PAAS /images/frontpage/bs-docs-twitter-github.png (cloud foundry install apps in ROOT context, so it works right).
If you can point out problem, I can make the fix.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.