diff options
Diffstat (limited to 'server/src/com/vaadin/ui/Flash.java')
-rw-r--r-- | server/src/com/vaadin/ui/Flash.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/server/src/com/vaadin/ui/Flash.java b/server/src/com/vaadin/ui/Flash.java index 2d0f188b84..6e99d2fe35 100644 --- a/server/src/com/vaadin/ui/Flash.java +++ b/server/src/com/vaadin/ui/Flash.java @@ -15,6 +15,7 @@ */ package com.vaadin.ui; +import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.Map; @@ -236,7 +237,15 @@ public class Flash extends AbstractEmbedded { @Override public void writeDesign(Element design, DesignContext designContext) { super.writeDesign(design, designContext); + + // Parameters, in alphabetic order + ArrayList<String> paramNames = new ArrayList<String>(); for (String param : getParameterNames()) { + paramNames.add(param); + } + + Collections.sort(paramNames); + for (String param : paramNames) { design.appendElement("parameter").attr("name", param) .attr("value", getParameter(param)); } |