Support extends GenericForwardComposer or other Composer #34

Closed
xiaochong opened this Issue Oct 29, 2011 · 0 comments

Projects

None yet

1 participant

@xiaochong
Owner

Support extends GenericForwardComposer or other Composer

So in grails-app/composers

class TestComposer extends GenericForwardComposer {

    TestComposer() {
        super('_' as char)
    }

    @Override
    void doAfterCompose(Component comp) {
        super.doAfterCompose(comp)
        // initialize components here
    }

}

Equivalent to the following

class TestComposer {

    def afterCompose = {comp ->
        // initialize components here
    }
}
@xiaochong xiaochong was assigned Oct 29, 2011
@xiaochong xiaochong added a commit that closed this issue Oct 29, 2011
@xiaochong fix #34 2913acb
@xiaochong xiaochong closed this in 2913acb Oct 29, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment