Package org.apache.click.util

Examples of org.apache.click.util.User


        HiddenField hiddenField = new HiddenField("timestamp", Timestamp.class);
        form.add(hiddenField);

        hiddenField.bindRequestValue();

        User user = new User();

        form.copyTo(user, true);
        assertEquals(hiddenField.getValueObject(), user.getTimestamp());

        // set up the form for copyFrom
        form = new Form("sample");
        hiddenField = new HiddenField("timestamp", Timestamp.class);
        form.add(hiddenField);

        user = new User();
        user.setTimestamp(new Timestamp(new Date().getTime()));
        form.copyFrom(user);

        assertEquals(user.getTimestamp(), hiddenField.getValueObject());
    }
View Full Code Here

TOP

Related Classes of org.apache.click.util.User

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.