Ignore:
Timestamp:
Jan 26, 2011, 9:47:40 PM (10 years ago)
Author:
work@…
Message:
  • refactored the importer to use the dynamic entities of gdt, instead of the hardcoded entities in Config.groovy
  • removed the hardcoded 'importable entities' from Config.groovy
  • added xbean.jar which seems to be required for the importer to be able to import xml
  • updated gdt to 0.0.5 which is required by the refactored importer
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/taglib/dbnp/importer/ImporterTagLib.groovy

    r1430 r1443  
    2424        static namespace = 'importer'
    2525        def ImporterService
     26        def GdtService
    2627
    2728        /**
     
    168169                def res = "<select style=\"font-size:10px\" name=\"${name}.index.${custval}\">"
    169170
    170                 grailsApplication.config.gscf.domain.importableEntities.each { e ->
    171                         res += "<option value=\"${e.value.name}\""
    172                         res += (e.value.type == sel) ? " selected" : ""
    173                         res += ">${e.value.name}</option>"
     171                GdtService.getTemplateEntities().each { e ->
     172                        res += "<option value\"${e.name}\""
     173                        res += ">${e.name} bla</option>"
    174174                }
    175175
Note: See TracChangeset for help on using the changeset viewer.