Skip to content

Instantly share code, notes, and snippets.

[EventHandler( event="com.foo.events.UserEvent.ADD_USER" )]
public function handleAddUserEvent( event:UserEvent ):void
{
// do stuff
}
public class BaseCompositeChain extends AbstractChain implements IChain
{
public function BaseCompositeChain( mode:String = ChainType.SEQUENCE, stopOnError:Boolean = true )
{
super( mode, stopOnError );
}
public function doProceed():void
{
<swiz:Swiz>
<swiz:beanProviders>
<local:MyBeans />
</swiz:beanProviders>
<swiz:loggingTargets>
<swiz:SwizTraceTarget id="myTraceTarget" />
</swiz:loggingTargets>
<swiz:config>
@brian428
brian428 / Ext.ux.MultiCellSelectionModel.js
Created September 11, 2012 00:28 — forked from anonymous/Ext.ux.MultiCellSelectionModel.js
Multiple cell selection model for the Ext JS grid component.
/**
* Original version by harley.333
* Updated 5/6/2011 by taylorbarstow
*
* FOUND HERE: http://www.sencha.com/forum/showthread.php?53118-Multiple-Cells-Selection-Model
*
* @class Ext.ux.MultiCellSelectionModel
* @extends Ext.grid.AbstractSelectionModel
* Supports multiple selections and keyboard selection/navigation.
* @constructor
import org.codehaus.groovy.grails.plugins.springsecurity.SpringSecurityUtils
import org.codehaus.groovy.grails.plugins.springsecurity.SecurityFilterPosition
class BootStrap {
def init = { servletContext ->
// Add the bean 'j2eePreAuthenticatedProcessingFilter' into the filter chain
SpringSecurityUtils.clientRegisterFilter('j2eePreAuthenticatedProcessingFilter', SecurityFilterPosition.PRE_AUTH_FILTER)
}
new Person( firstname: "John", lastname: "Doe", age: 12 )
/**
* InputTextMask script used for mask/regexp operations.
* Mask Individual Character Usage:
* 9 - designates only numeric values
* L - designates only uppercase letter values
* l - designates only lowercase letter values
* A - designates only alphanumeric values
* X - denotes that a custom client script regular expression is specified</li>
* All other characters are assumed to be "special" characters used to mask the input component.
* Example 1:
/**
* InputTextMask script used for mask/regexp operations.
* Mask Individual Character Usage:
* 9 - designates only numeric values
* L - designates only uppercase letter values
* l - designates only lowercase letter values
* A - designates only alphanumeric values
* X - denotes that a custom client script regular expression is specified</li>
* All other characters are assumed to be "special" characters used to mask the input component.
* Example 1:
@brian428
brian428 / .gitignore
Last active August 29, 2015 14:16 — forked from plong0/.gitignore
schema form custom validation
.DS_Store
bower_components/