Package org.apache.shale.dialog.basic.model

Examples of org.apache.shale.dialog.basic.model.Dialog


         *
         * @exception Exception if a processing exception occurs
         */
        public void end(String namespace, String name) throws Exception {

            Dialog dialog = (Dialog) getDigester().peek();
            Map map = (Map) getDigester().peek(1);
            map.put(dialog.getName(), dialog);

        }
View Full Code Here


    /** {@inheritDoc} */
    public DialogContext create(FacesContext context, String name, DialogContext parent) {

        // Look up the specified dialog configuration
        Map dialogs = dialogs(context);
        Dialog dialog = (Dialog) dialogs.get(name);
        if (dialog == null) {
            throw new IllegalArgumentException("No definition for dialog name '"
                                               + name + "' can be found");
        }

View Full Code Here

                SubdialogState sstate = (SubdialogState) state;
                if (log().isTraceEnabled()) {
                    log().trace("-->SubdialogState(dialogName="
                              + sstate.getDialogName() + ")");
                }
                Dialog subdialog = (Dialog) dialogs(context).get(sstate.getDialogName());
                if (subdialog == null) {
                    throw new IllegalStateException("Cannot find dialog definition '"
                      + sstate.getDialogName() + "'");
                }
                start(subdialog);
View Full Code Here

     *
     * @return The current {@link State} within the owning {@link Dialog}
     */
    State getState() {
        if (this.state == null) {
            Dialog dialog = getDialog();
            if (dialog == null) {
                return null;
            }
            this.state = dialog.findState(this.stateName);
        }
        return this.state;
    }
View Full Code Here

TOP

Related Classes of org.apache.shale.dialog.basic.model.Dialog

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.