Mercurial > dive4elements > river
diff flys-artifacts/src/main/java/de/intevation/flys/artifacts/WINFOArtifact.java @ 624:929137ee8154
ISSUE-62 (part I/II) States are no longer filled with data - if a state needs user input, it needs to query the owner artifact.
flys-artifacts/trunk@1982 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Mon, 23 May 2011 15:11:55 +0000 |
parents | af1b64ec7250 |
children | acf3b49ec31f |
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/WINFOArtifact.java Mon May 23 14:32:17 2011 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/WINFOArtifact.java Mon May 23 15:11:55 2011 +0000 @@ -75,6 +75,10 @@ public Document describe(Document data, CallContext context) { logger.debug("Describe: the current state is: " + getCurrentStateId()); + if (logger.isDebugEnabled()) { + dumpArtifact(); + } + FLYSContext flysContext = null; if (context instanceof FLYSContext) { flysContext = (FLYSContext) context; @@ -178,6 +182,7 @@ List<Output> list = state.getOutputs(); if (list == null || list.size() == 0) { + logger.debug("-> No output modes for this state."); continue; } @@ -226,9 +231,8 @@ for (String stateId: stateIds) { logger.debug("Append static data for state: " + stateId); DefaultState state = (DefaultState) engine.getState(stateId); - state = (DefaultState) fillState(state); - ui.appendChild(state.describeStatic(doc, ui, context, uuid)); + ui.appendChild(state.describeStatic(this, doc, ui, context, uuid)); } }