Package org.apache.click.examples.service

Examples of org.apache.click.examples.service.ClientService


    @Override
    public boolean onFinish() {
        if (getForm().isValid()) {

            // Store client and associated address in the database
            ClientService service = new ClientService();
            service.saveClient(client);

            // Set a flash success message
            getContext().setFlashAttribute("message", "The client "
                + client.getName() + " was successfully created.");
View Full Code Here


            // Only create client if no client was loaded from the session in this
            // Step's constructor. This allows the user to freely navigate backwards
            // and forwards through the wizard without overwriting a previous Client
            // instance
            if (client == null) {
                ClientService service = getClientService();
                client = service.createNewClient();
                Address address = service.createNewAddress();
                client.setAddress(address);
            }
            getForm().copyTo(client);
            WizardUils.saveClientInSession(client);
View Full Code Here

        return true;
    }

    public ClientService getClientService() {
        if (clientService == null) {
            clientService = new ClientService();
        }
        return clientService;
    }
View Full Code Here

    @Override
    public boolean onFinish() {
        if (getForm().isValid()) {

            // Store client and associated address in the database
            ClientService service = new ClientService();
            service.saveClient(client);

            // Set a flash success message
            getContext().setFlashAttribute("message", "The client "
                + client.getName() + " was successfully created.");
View Full Code Here

            // Only create client if no client was loaded from the session in this
            // Step's constructor. This allows the user to freely navigate backwards
            // and forwards through the wizard without overwriting a previous Client
            // instance
            if (client == null) {
                ClientService service = getClientService();
                client = service.createNewClient();
                Address address = service.createNewAddress();
                client.setAddress(address);
            }
            getForm().copyTo(client);
            WizardUils.saveClientInSession(client);
View Full Code Here

        return true;
    }

    public ClientService getClientService() {
        if (clientService == null) {
            clientService = new ClientService();
        }
        return clientService;
    }
View Full Code Here

        return false;
    }

    public ClientService getClientService() {
        if (clientService == null) {
            clientService = new ClientService();
        }
        return clientService;
    }
View Full Code Here

TOP

Related Classes of org.apache.click.examples.service.ClientService

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.