Changeset 6003


Ignore:
Timestamp:
02/20/15 15:13:00 (9 years ago)
Author:
Twan Goosen
Message:

detaching of field name model
Refs #553

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vlo/trunk/vlo-web-app/src/main/java/eu/clarin/cmdi/vlo/wicket/components/FieldValueLabel.java

    r6002 r6003  
    3838    private final IModel<String> fieldModel;
    3939
     40    /**
     41     *
     42     * @param id component id
     43     * @param fieldModel model that provides the name of the field
     44     */
    4045    public FieldValueLabel(String id, IModel<String> fieldModel) {
    4146        super(id);
     
    4348    }
    4449
     50    /**
     51     *
     52     * @param id component id
     53     * @param model model that provides the field value for this label (which
     54     * may get converted on render)
     55     * @param fieldModel model that provides the name of the field
     56     */
    4557    public FieldValueLabel(String id, IModel<?> model, IModel<String> fieldModel) {
    4658        super(id, model);
     
    5971    }
    6072
     73    @Override
     74    public void detachModels() {
     75        super.detachModels();
     76        fieldModel.detach();
     77    }
     78
    6179}
Note: See TracChangeset for help on using the changeset viewer.