commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Libbrecht <>
Subject Re: [JELLY] Key listeners
Date Tue, 22 Jul 2003 20:38:07 GMT
Sean Ferguson wrote:
> Thanks for the tip on using j:new.  I really wish there was some good 
> documentation on Jelly.
> One thing I think I should point out that may or may not be a bug is 
> that if I put the code inside the declaration of the textfield, it 
> doesn't catch events.
> <textField var="customerId" text="" columns="10">
>   <core:new var="keyAdapter" className="JellyKeyAdapter"/>
>   ${customerId.addKeyListener(keyAdapter)}
> </textField>
> But if I move the code block outside of the declaration, it works fine.
> <textField var="customerId" text="" columns="10"/>
> <core:new var="keyAdapter" className="JellyKeyAdapter"/>
> ${customerId.addKeyListener(keyAdapter)}
> I know I don't understand fully how Jelly works, but I would have 
> thought it would work both ways.

That looks like a bug to me... can you try to make this into a 
test-case? Note that it's not at all specific of textfield or even swing 
but of the UseBeanTag, going through the javadoc should allow you to 
find other subclasses of this tag.


View raw message