Package org.apache.openmeetings.db.dao.user

Examples of org.apache.openmeetings.db.dao.user.SalutationDao


    //TODO should throw exception if non admin User edit somebody else (or make all fields read-only)
    add(passwordField = new PasswordTextField("password", new Model<String>()));
    ConfigurationDao cfgDao = getBean(ConfigurationDao.class);
    passwordField.setRequired(false).add(minimumLength(getMinPasswdLength(cfgDao)));

    SalutationDao salutDao = getBean(SalutationDao.class);
    FieldLanguageDao langDao = getBean(FieldLanguageDao.class);
    salutation = salutDao.get(getModelObject().getSalutations_id(), getLanguage());
    lang = langDao.getFieldLanguageById(getModelObject().getLanguage_id());
    add(new DropDownChoice<Salutation>("salutation"
        , new PropertyModel<Salutation>(this, "salutation")
        , salutDao.getUserSalutations(getLanguage())
        , new ChoiceRenderer<Salutation>("label.value", "salutations_id"))
      .add(new AjaxFormComponentUpdatingBehavior("onchange") {
        private static final long serialVersionUID = -6748844721645465468L;

        @Override
View Full Code Here


    add(passwordField = new PasswordTextField("password", new Model<String>()));
    ConfigurationDao cfgDao = getBean(ConfigurationDao.class);
    passwordField.setRequired(false).add(minimumLength(getMinPasswdLength(cfgDao)));

    updateModelObject(getModelObject());
    SalutationDao salutDao = getBean(SalutationDao.class);
    FieldLanguageDao langDao = getBean(FieldLanguageDao.class);
    add(new DropDownChoice<Salutation>("salutation"
        , new PropertyModel<Salutation>(this, "salutation")
        , salutDao.getUserSalutations(getLanguage())
        , new ChoiceRenderer<Salutation>("label.value", "salutations_id"))
      .add(new AjaxFormComponentUpdatingBehavior("onchange") {
        private static final long serialVersionUID = 1L;

        @Override
View Full Code Here

TOP

Related Classes of org.apache.openmeetings.db.dao.user.SalutationDao

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.