The simple answer is that it isn’t possible. The more complex answer leads into unsupported customizations and would require for you to have a good knowledge of wicket, jcr, and brxm to get it to to work.
You might look at some alternative mechanism to achiev what you want.
Those are both supported extension points and thus would allow you to create functionality like you desire, if not 100% in the place you want it.