final FieldsetPanel fs = new FieldsetPanel("stayLoggedIn", "").suppressLabelForWarning();
add(fs);
final CheckBoxPanel stayLoggedInCheckBox = fs.addCheckBox(new PropertyModel<Boolean>(this, "stayLoggedIn"), null);
final DivPanel divPanel = new DivPanel(fs.newChildId());
fs.add(divPanel);
final LabelPanel labelPanel = new LabelPanel(divPanel.newChildId(), getString("login.stayLoggedIn"));
labelPanel.setLabelFor(stayLoggedInCheckBox.getCheckBox().getMarkupId());
divPanel.add(labelPanel);
WicketUtils.addTooltip(labelPanel.getLabel(), getString("login.stayLoggedIn"), getString("login.stayLoggedIn.tooltip"));
stayLoggedInCheckBox.setTooltip(getString("login.stayLoggedIn"), getString("login.stayLoggedIn.tooltip"));
}
final Button loginButton = new Button(SingleButtonPanel.WICKET_ID, new Model<String>("login")) {
@Override
public final void onSubmit()