I tried to hide a label as follows :
Form form = new Form("form");
Label myLabel = new Label("myLabel", new ResourceModel("mylabel.text").getObject());
if(hide == true){
myLabel.setVisible(Boolean.FALSE);
}
form.add(myLabel);
..
but the label still appears. Does anyone know why?
You should override the isVisible method of your label.