comparison flys-client/src/main/java/de/intevation/flys/client/server/CollectionItemAttributeServiceImpl.java @ 1329:b18b32269a3f

Set the correct index when saving changed attributes. flys-client/trunk@2973 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Raimund Renkert <raimund.renkert@intevation.de>
date Fri, 14 Oct 2011 13:35:21 +0000
parents 974c6b3700de
children ab8eb2f544f2
comparison
equal deleted inserted replaced
1328:ab93960ac2fb 1329:b18b32269a3f
172 for (int i = 0; i < attributes.getNumStyles(); i++) { 172 for (int i = 0; i < attributes.getNumStyles(); i++) {
173 Style s = attributes.getStyle(i); 173 Style s = attributes.getStyle(i);
174 Element theme = creator.create("theme"); 174 Element theme = creator.create("theme");
175 theme.setAttribute("name", s.getName()); 175 theme.setAttribute("name", s.getName());
176 theme.setAttribute("facet", s.getFacet()); 176 theme.setAttribute("facet", s.getFacet());
177 theme.setAttribute("index", String.valueOf(i)); 177 theme.setAttribute("index", String.valueOf(s.getIndex()));
178 for (int j = 0; j < s.getNumSettings(); j++) { 178 for (int j = 0; j < s.getNumSettings(); j++) {
179 StyleSetting set = s.getSetting(j); 179 StyleSetting set = s.getSetting(j);
180 Element field = creator.create("field"); 180 Element field = creator.create("field");
181 field.setAttribute("name", set.getName()); 181 field.setAttribute("name", set.getName());
182 field.setAttribute("display", set.getDisplayName()); 182 field.setAttribute("display", set.getDisplayName());

http://dive4elements.wald.intevation.org