Warning: Declaration of LJXP_Walker_Category_Checklist::start_lvl(&$output, $depth, $args) should be compatible with Walker::start_lvl(&$output, $depth = 0, $args = Array) in /home/victorsergienko/victorsergienko.com/wp-content/plugins/lj-xp/lj-xp-options.php on line 796

Warning: Declaration of LJXP_Walker_Category_Checklist::end_lvl(&$output, $depth, $args) should be compatible with Walker::end_lvl(&$output, $depth = 0, $args = Array) in /home/victorsergienko/victorsergienko.com/wp-content/plugins/lj-xp/lj-xp-options.php on line 796

Warning: Declaration of LJXP_Walker_Category_Checklist::start_el(&$output, $category, $depth, $args) should be compatible with Walker::start_el(&$output, $object, $depth = 0, $args = Array, $current_object_id = 0) in /home/victorsergienko/victorsergienko.com/wp-content/plugins/lj-xp/lj-xp-options.php on line 796

Warning: Declaration of LJXP_Walker_Category_Checklist::end_el(&$output, $category, $depth, $args) should be compatible with Walker::end_el(&$output, $object, $depth = 0, $args = Array) in /home/victorsergienko/victorsergienko.com/wp-content/plugins/lj-xp/lj-xp-options.php on line 796

Warning: Cannot modify header information - headers already sent by (output started at /home/victorsergienko/victorsergienko.com/wp-content/plugins/lj-xp/lj-xp-options.php:796) in /home/victorsergienko/victorsergienko.com/wp-content/plugins/wp-super-cache/wp-cache-phase2.php on line 60
code name / Couple of Grails tricks to remember: reload scaffolding and fieldValue formatting
Skip to content

Couple of Grails tricks to remember: reload scaffolding and fieldValue formatting


  • Grails doesn’t reload scaffolding on-the-fly if you change local templates. But you can open a Groovy console inside application and run in it:
    org.codehaus.groovy.grails.scaffolding.view.
        ScaffoldingViewResolver.scaffoldedViews.clear()
  • In order to change default g:fieldValue formatting for, say, BigDecimal, have a CustomEditorRegistrar in your resources.groovy, and register custom PropertyEditor:
    registry.registerCustomEditor(BigDecimal.class, 'myProperty',
        new OurBigDecimalEditor(BigDecimal.class))

3 Comments

  1. It was refreshing, given the misfortune I just lately had of making an attempt to
    program the remote management that got here with my cable set-high field, which
    is about as enjoyable as doing your tax returns.

    Posted on 09-Jun-16 at 04:14 | Permalink
  2. Building on our more than ninety-yr history of revolutionary product improvement, we produce a diverse
    array of products with over a hundred and fifty totally different activated carbon formulations engineered from a variety of raw supplies.

    Posted on 21-Jul-16 at 16:39 | Permalink
  3. If you’re taking any prescription medicines, it could be the cause of your thriller muscle twitches.

    Posted on 05-Sep-16 at 07:22 | Permalink

Post a Comment

Your email is never published nor shared.