RE: addEventlistener question

"Christian Cryder" <[email protected]>
Newsgroups gmane.comp.java.enhydra.barracuda.general
Message-ID <[email protected]>
Hi David,

Can you gove us a little more information:

a) what's the actual rendered markup look like?
b) what browser are you trying this in?
c) when you click it, is it initiating a request to the server? (ie. do you
see the "loading" icon start churning in the browser?)
d) if c = yes, have you tried turning on debugging in ApplicationGateway to
see where the incoming event is getting routed?

Answers to these qeustions should give us enough info to solve the problem.

Christian
----------------------------------------------
Christian Cryder [[email protected]]
Internet Architect, ATMReports.com
Barracuda - http://barracudamvc.org
----------------------------------------------
"Coffee? I could quit anytime, just not today"

> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]]On Behalf Of David R Robison
> Sent: Tuesday, March 04, 2003 9:25 AM
> To: [email protected]
> Subject: [Barracuda] addEventlistener question
>
>
> I'm having trouble using addEventlistener on a checkbox. I define
> the listener as:
>
> private ListenerFactory selectByRoadwayFactory = new
> DefaultListenerFactory() {
> public BaseEventListener getInstance() { return new
> SelectByRoadwayHandler(); }
> public String getListenerID() { return
> getID(SelectByRoadwayHandler.class); }};
>
> I attach the listener as:
>
> Boolean selected = (fm!=null ? fm.getBooleanVal(EditForm.BYROADWAY, new
> Boolean(false)) : new Boolean(false));
> BToggleButton b = new BToggleButton("CHECKBOX",
> EditForm.BYROADWAY, "true",
> selected.booleanValue());
> b.addEventListener(selectByRoadwayFactory);
>
> Yet, when I click on the checkbox, the class
> SelectByRoadwayBandler does not get
> called. I'm sure its something simple... Any ideas?
>
> David Robison
>
>
> _______________________________________________
> Barracuda mailing list
> [email protected]
> http://barracudamvc.org/lists/listinfo/barracuda
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.