org.apache.taglibs.rdc.dm
Class RuleBasedDirectedDialog

java.lang.Object
  extended by org.apache.taglibs.rdc.dm.DialogManagerImpl
      extended by org.apache.taglibs.rdc.dm.RuleBasedDirectedDialog
All Implemented Interfaces:
DialogManager

public class RuleBasedDirectedDialog
extends DialogManagerImpl

A dialog management strategy for the RDC group container which defines a rule based directed dialog. This dialog management strategy is:


Navigation rules are specified in an XML document whose URI is the config attribute of the <group> tag.

Author:
Rahul Akolkar

Nested Class Summary
static interface RuleBasedDirectedDialog.Condition
          Condition interface Implementing classes must also define an accessible method of the following signature: static Map getAttrPropMap()
static class RuleBasedDirectedDialog.ConditionImpl
          Java Object corresponding to an individual condition defined within a rule in the XML navigation rules structure.
static class RuleBasedDirectedDialog.Navigation
          Java Object encapsulating the XML navigation rules.
static class RuleBasedDirectedDialog.NavigationRule
          Java Object corresponding to an individual XML navigation rule defined in the XML navigation rules structure.
 
Field Summary
 
Fields inherited from class org.apache.taglibs.rdc.dm.DialogManagerImpl
groupState, groupTag, stack, stateMap
 
Constructor Summary
RuleBasedDirectedDialog()
           
 
Method Summary
 void collect(javax.servlet.jsp.JspContext ctx, javax.servlet.jsp.tagext.JspFragment bodyFragment)
          Collect the required information from the user
 boolean initialize(javax.servlet.jsp.JspContext ctx, javax.servlet.jsp.tagext.JspFragment bodyFragment)
          Initialiaze this doTag() invocation
 
Methods inherited from class org.apache.taglibs.rdc.dm.DialogManagerImpl
confirm, finish, setGroupTag, setPropertyChildren, setStateChildren
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuleBasedDirectedDialog

public RuleBasedDirectedDialog()
Method Detail

initialize

public boolean initialize(javax.servlet.jsp.JspContext ctx,
                          javax.servlet.jsp.tagext.JspFragment bodyFragment)
                   throws javax.servlet.jsp.JspException,
                          java.io.IOException
Description copied from class: DialogManagerImpl
Initialiaze this doTag() invocation

Specified by:
initialize in interface DialogManager
Overrides:
initialize in class DialogManagerImpl
Parameters:
ctx - the JspContext
bodyFragment - The JspFragment indicating the body of this group
Throws:
javax.servlet.jsp.JspException
java.io.IOException

collect

public void collect(javax.servlet.jsp.JspContext ctx,
                    javax.servlet.jsp.tagext.JspFragment bodyFragment)
             throws javax.servlet.jsp.JspException,
                    java.io.IOException
Collect the required information from the user

Specified by:
collect in interface DialogManager
Specified by:
collect in class DialogManagerImpl
Parameters:
ctx - the JspContext
bodyFragment - The JspFragment indicating the body of this group
Throws:
javax.servlet.jsp.JspException
java.io.IOException


Copyright © 2004-2009 The Apache Software Foundation. All Rights Reserved.