org.apache.wicket.request.handler
Class ListenerInvocationNotAllowedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.apache.wicket.request.handler.ListenerInvocationNotAllowedException
All Implemented Interfaces:
java.io.Serializable

public class ListenerInvocationNotAllowedException
extends java.lang.RuntimeException

Thrown when a listener invocation is attempted on a component or behavior that does not allow it. For example, somehow the user attempted to invoke link's onclick method on a disabled link.

Author:
igor
See Also:
Serialized Form

Constructor Summary
ListenerInvocationNotAllowedException(RequestListenerInterface iface, Component component, Behavior behavior, java.lang.String message)
          Constructor
 
Method Summary
 Behavior getBehavior()
           
 Component getComponent()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ListenerInvocationNotAllowedException

public ListenerInvocationNotAllowedException(RequestListenerInterface iface,
                                             Component component,
                                             Behavior behavior,
                                             java.lang.String message)
Constructor

Parameters:
iface -
component -
behavior -
message -
Method Detail

getComponent

public Component getComponent()
Returns:
component that was the target of invocation or hosted the behavior that was

getBehavior

public Behavior getBehavior()
Returns:
behavior that was the target of invocation or null


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.