Bugs item #1501275, was opened at 2006-06-05 22:21 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1501275&group_id=119783
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: core Group: 1.2 Status: Open Resolution: None Priority: 5 Submitted By: Jose Luis Casas Serradilla (jlcasas) Assigned to: Nobody/Anonymous (nobody) Summary: Form appendDefaultButtonField producing extra double quote Initial Comment: In file wicket.markup.html.form.Form.java the before last line is writing an extra double quote. You can check it live in wicket-library http://www.wicket-library.com/wicket-examples/wizard, click on "wizard for creating a new user" and if you use "view source" in your browser you'll see the line than reads <form ... style="display: none"" /> ^^ protected void appendDefaultButtonField(final MarkupStream markupStream, final ComponentTag openTag) { String nameAndId = getHiddenFieldId(); AppendingStringBuffer buffer = new AppendingStringBuffer(); // get the value, first seeing whether the value attribute is set // by a model String value = defaultButton.getModelObjectAsString(); if (value == null || "".equals(value)) { // nope it isn't; try to read from the attributes // note that we're only trying lower case here value = defaultButton.getMarkupAttributes().getString("value"); } // append the button String userAgent = ((WebClientInfo)getSession().getClientInfo()).getUserAgent(); buffer.append("<input type=\"submit\" value=\"").append(value).append("\" name=\"").append( defaultButton.getInputName()).append("\""); if (userAgent != null && userAgent.indexOf("MSIE") != -1) { buffer.append("style=\"width: 0px\""); } else { buffer.append(" style=\"display: none\""); } buffer.append("\" />"); getResponse().write(buffer); } ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1501275&group_id=119783 _______________________________________________ Wicket-develop mailing list Wicket-develop@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-develop