Ignore:
Timestamp:
Apr 28, 2010, 4:28:39 PM (9 years ago)
Author:
duh
Message:
  • reverted changes of revisions 386, 387 and 388 as they completely broke the repository (you need to get cake now! ;)
  • committed development version of modified study capture wizard (works until events)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/taglib/dbnp/studycapturing/WizardTagLib.groovy

    r383 r389  
    209209         */
    210210        def baseElement = {inputElement, attrs, help ->
    211 println ".rendering " + inputElement + " with name " + attrs.get('name')
     211println ".rendering [" + inputElement + "] with name [" + attrs.get('name') + "] and value [" + ((attrs.value) ? attrs.get('value').toString() : "-") + "]"
    212212                // work variables
    213213                def description = attrs.remove('description')
     
    599599                // got result?
    600600                if (attrs.from.size() > 0) {
     601                        // transform all values into strings
     602                        def from = []
     603                        attrs.from.each { from[ from.size() ] = it.toString() }
     604                        attrs.from = from
     605                        attrs.value = (attrs.value) ? attrs.value.toString() : ''
     606
     607                        // output select element
    601608                        out << select(attrs)
    602609                } else {
     
    682689                def renderType  = attrs.remove('renderType')
    683690                def entity              = (attrs.get('entity'))
     691                println entity
     692                println entity.class
     693                println entity instanceof TemplateEntity
    684694                def template    = (entity && entity instanceof TemplateEntity) ? entity.template : null
    685695                def inputElement= null
Note: See TracChangeset for help on using the changeset viewer.