Ignore:
Timestamp:
Jan 18, 2011, 3:51:25 PM (10 years ago)
Author:
t.w.abma@…
Message:
  • cleaned up importer service and controller (and removed flow variables for failed/succesfull entities)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/importer/pages/_final_page.gsp

    r1394 r1411  
    2323</p>
    2424
    25 ${importer_validatedsuccesfully} of ${importer_totalrows} rows were imported succesfully.
    26 
    27     <g:if test="${importer_failedtopersist}">
    28       <p>The following entities could not be persisted:</p>
    29       <table>
    30       <g:each var="entity" in="${importer_failedtopersist}">
    31         <tr>
    32         <g:each var="field" in="${entity.giveFields()}">
    33           <td>
    34             <g:if test="${entity.getFieldValue(field.name)!=null}">
    35               <b>${field.name}</b> ${entity.getFieldValue(field.name)}
    36             </g:if>
    37            <g:else><b>${field.name}</b> &#215;
    38             </g:else>
    39           </td>
    40         </g:each>
    41         <td>
    42            <g:each var="error" in="${entity.errors.allErrors}">
    43              <b>error</b>: field `${error.getField()}` rejected value: ${error.getRejectedValue()}</b>
    44         </g:each>
    45         </td>
    46       </tr>
    47       </g:each>
    48       </table>
    49     </g:if>
     25All rows were imported succesfully.
    5026
    5127    <g:if test="${importer_referer}">
Note: See TracChangeset for help on using the changeset viewer.