After some chatting in the IRC channel (everyone should check that out) and some reading, it seems that a mixin was the way to go. Now I've successfully implemented my text monitor as a mixin and am working on ways to make it quickly usable but also customizable. Does anyone know if its possible to create modules of mixins as drop-in jar files, as can be done with component libraries?

thanks!
chris

Chris Lewis wrote:
Hello,

I'm working on a component that can be used to accompany text components (text and textarea). My component will provide a client-side count of characters in the box (using JS), as well as enforce limits on the size. I know most of what I need to do, but I want to be able 'attach' my component to another component in a similar way that the label component is attached. Specifically, if the id provided in the label's for parameter doesn't exist, an exception is thrown. I'd like to be able to do this but I dont know how its done. The label component doesnt really help because it receives the component to be labeled as a Field type, which I assume is handled/verified by the framework. Well, this won't work for me because (unfortunately) the Field interface doesn't provide a way to deduce the client side id. Any suggestions?

sincerely,
chris

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to