* @param scalarName The label for the input
* @param formGroup The form group element
*/
protected void applyLabelAtRule(Label scalarName, MarkupContainer formGroup) {
final LabelAtFacet facet = getModel().getFacet(LabelAtFacet.class);
// TODO mgrigorov: Remove this. It is for debugging
scalarName.add(new AttributeModifier("title", "labelAt=" + (facet != null? facet.value(): "(null)")));
if (facet != null) {
switch (facet.value()) {
case LEFT:
formGroup.add(new CssClassAppender("label-left"));
break;
case NONE:
scalarName.setVisible(false);