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/views/importer/common/_properties_horizontal.gsp

    r1430 r1443  
    3232    <table>
    3333          <g:each var="stdentity" in ="${importer_importableentities}">
    34               <% if (importer_selectedentities.any { it.name.toLowerCase() == stdentity.value.entity.toLowerCase() } && stdentity.value.entity!="") { %>
     34              <% if (importer_selectedentities.any { it.name.toLowerCase() == stdentity.entity.toLowerCase() } && stdentity.entity!="") { %>
    3535           
    36               <tr><td colspan="3"><h4>${stdentity.value.name}</h4></td></tr>
     36              <tr><td colspan="3"><h4>${stdentity.name}</h4></td></tr>
    3737                <tr>
    3838            <td class="header" width="25px"><input id="clearselect" type="button" value="clear" name="clearselect"></td>
    3939            <g:each var="selentity" in="${importer_selectedentities}">
    40               <g:if test="${selentity.name.toLowerCase()==stdentity.value.entity.toLowerCase()}">
     40              <g:if test="${selentity.name.toLowerCase()==stdentity.entity.toLowerCase()}">
    4141                            <td class="header" width="200px">
    4242                                <b>${importer_header[selentity.columnindex.toInteger()].name}</b>
     
    6060                </g:each>
    6161
    62           <% } %> <!-- end of JSP if-->
    63           </g:each>             
     62          <% }  %> <!-- end of JSP if-->
     63          </g:each>
    6464    </table>
Note: See TracChangeset for help on using the changeset viewer.