You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wicket.apache.org by svenmeier <gi...@git.apache.org> on 2017/01/22 18:35:38 UTC

[GitHub] wicket issue #205: Add Option isQuietly to StatelessChecker

Github user svenmeier commented on the issue:

    https://github.com/apache/wicket/pull/205
  
    Thanks for your patch. What do you think about a hook method instead, that people can override to do whatever they like with a failing component?
    
    	/**
    	 * The given component claims to be stateless but isn't.
    	 * 
    	 * @param component component failing stateless check
    	 * @param reason explaining reason
    	 */
    	protected void fail(Component component, String reason)
    	{
    		throw new IllegalArgumentException("'" + component + "' claims to be stateless but isn't. " + reason);
    	}



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---