for (Map.Entry<String,Class> entry : this.fieldsPresent.entrySet()) { Class fieldClass = entry.getValue(); if (InputSelectTag.class.isAssignableFrom(fieldClass) || InputCheckBoxTag.class.isAssignableFrom(fieldClass)) { namesToInclude.add(entry.getKey());
if (isWizard()) { namesToInclude.addAll(this.fieldsPresent.keySet()); } else { for (Map.Entry<String,Class> entry : this.fieldsPresent.entrySet()) { Class fieldClass = entry.getValue(); if (InputSelectTag.class.isAssignableFrom(fieldClass) || InputCheckBoxTag.class.isAssignableFrom(fieldClass)) { namesToInclude.add(entry.getKey()); }
    protected void writeFieldsPresentHiddenField(JspWriter out) throws IOException {        // Write out an encoded list of the field names in the form        Set<String> namesToInclude = new HashSet<String>();        for (Map.Entry<String,Class> entry : this.fieldsPresent.entrySet()) {            Class fieldClass = entry.getValue();            if (InputSelectTag.class.isAssignableFrom(fieldClass)                    || InputCheckBoxTag.class.isAssignableFrom(fieldClass)) {                namesToInclude.add(entry.getKey());            }        }        String hiddenFieldValue = HtmlUtil.combineValues(namesToInclude);        out.write("<input type=\"hidden\" name=\"");        out.write(StripesConstants.URL_KEY_FIELDS_PRESENT);        out.write("\" value=\"");        out.write(hiddenFieldValue);        out.write("\" />");    }