org.apache.cocoon.forms.event.impl
Class RequiredControl

java.lang.Object
  extended by org.apache.cocoon.forms.event.impl.RequiredControl
All Implemented Interfaces:
EventListener, Configurable, ProcessingPhaseListener, WidgetListener

public class RequiredControl
extends Object
implements ProcessingPhaseListener, Configurable

This processing phase listener can be used to dynamically change the required fields in a form. A field can be required depending on the value of another field or depending on the pressed submit button.

Version:
$Id: RequiredControl.html 1304258 2012-03-23 10:09:27Z ilgrosso $

Nested Class Summary
protected static class RequiredControl.RequiredDescription
           
 
Field Summary
protected  List descriptions
           
 
Constructor Summary
RequiredControl()
           
 
Method Summary
 void configure(Configuration config)
           
 void phaseEnded(ProcessingPhaseEvent event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

descriptions

protected final List descriptions
Constructor Detail

RequiredControl

public RequiredControl()
Method Detail

configure

public void configure(Configuration config)
               throws ConfigurationException
Specified by:
configure in interface Configurable
Throws:
ConfigurationException
See Also:
Configurable.configure(org.apache.avalon.framework.configuration.Configuration)

phaseEnded

public void phaseEnded(ProcessingPhaseEvent event)
Specified by:
phaseEnded in interface ProcessingPhaseListener
See Also:
ProcessingPhaseListener.phaseEnded(org.apache.cocoon.forms.event.ProcessingPhaseEvent)


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.