Do you have a testcase that you can attach to a jira issue?

This is strange because why is there a behaviorrequesttarget created
for that attribute modifier, that seems very strange

On 3/24/08, Miguel Munoz <[EMAIL PROTECTED]> wrote:
>
> Comrades,
>
>   I'm getting a strange exception. I created a SimpleAttributeModifier and
> added it to a TextField component, like this:
>
>   textField.add(modifier);
>
> When I run it, I get an exception that says this:
>
> java.lang.ClassCastException:
> org.apache.wicket.behavior.SimpleAttributeModifier cannot be cast to
> org.apache.wicket.behavior.IBehaviorListener
>      at
> org.apache.wicket.request.target.component.listener.BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:91)
>
> The line of code that generates the exception looks like this:
>
>       behaviorListener =
> (IBehaviorListener)component.getBehaviors().get(idAsInt);
>
> It appears to be extracting from a list of IBehaviors, so I have no idea why
> it's trying to cast it as an IBehaviorListener. Does anybody know what I'm
> doing wrong? Or is this a bug in Wicket?
> --
> View this message in context:
> http://www.nabble.com/Exception-adding-a-SimpleAttributeModifier-to-a-TextField-tp16262822p16262822.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> 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