Package pt.ist.fenixWebFramework.renderers.components

Examples of pt.ist.fenixWebFramework.renderers.components.HtmlFormComponent


    protected HtmlComponent createTextField(Object object, Class type) {

        Teacher teacher = (Teacher) object;
        String number = teacher.getPerson().getUsername();

        HtmlFormComponent formComponent = (HtmlFormComponent) super.createTextField(number, type);
        formComponent.setConverter(new TeacherNumberConverter());

        return formComponent;
    }
View Full Code Here


        Person person = (Person) object;
        String username = (person != null) ? person.getUsername() : null;

        final HtmlComponent container = super.createTextField(username, type);
        final HtmlFormComponent formComponent = (HtmlFormComponent) container.getChild(new Predicate<HtmlComponent>() {
            @Override
            public boolean apply(HtmlComponent input) {
                return input instanceof HtmlFormComponent;
            }
        });
        formComponent.setConverter(new PersonUsernameConverter());

        return formComponent;
    }
View Full Code Here

TOP

Related Classes of pt.ist.fenixWebFramework.renderers.components.HtmlFormComponent

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.