RE: addEventlistener question
David R Robison <[email protected]>
| Newsgroups | gmane.comp.java.enhydra.barracuda.general |
|---|---|
| Message-ID | <[email protected]> |
Thanks for your quick response...
1) The code is rendered as:
<input checked="checked" id="ByRoadway" name="ByRoadway"
onclick="this.disabled=true;
document.EditForm.action='ActionEvent.event?$eid=HistoricalVosDataScreen$SelectByRoadwayHandler';document.EditForm.submit();
return false;" type="checkbox" value="true">
2) I'm using Netscape 7.02
3) The error I get is:
Error: EventException
There was an unexpected error while servicing this request...please contact your
application administrator and notify them of the problem.
Error dispatching request: Unhandled Event - a reponse was required but no
response event was handled!
Exception:
org.enhydra.barracuda.core.event.UnhandledEventException: Unhandled Event - a
reponse was required but no response event was handled! at
org.enhydra.barracuda.core.event.DefaultEventDispatcher.dispatchEvent(DefaultEventDispatcher.java:132)
at
org.enhydra.barracuda.core.event.DefaultEventBroker.dispatchEvent(DefaultEventBroker.java:494)
at
org.enhydra.barracuda.core.event.ApplicationGateway.handleDefaultExt(ApplicationGateway.java:415)
at
org.enhydra.barracuda.core.event.ApplicationGateway.handleDefault(ApplicationGateway.java:240)
at com.orci.ADMSVirginia.MainGateway.handleDefault(MainGateway.java:149) at
org.enhydra.barracuda.core.event.ApplicationGateway.doGet(ApplicationGateway.java:643)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
org.apache.tomcat.core.ServiceInvocationHandler.method(Unknown Source) at
org.apache.tomcat.core.ServletWrapper.handleInvocation(Unknown Source) at
org.apache.tomcat.core.ServletWrapper.handleRequest(Unknown Source) at
org.apache.tomcat.core.Context.handleRequest(Unknown Source) at
org.enhydra.servlet.servletManager.ServletManager.service(Unknown Source) at
org.enhydra.servlet.connectionMethods.http.HttpHandler.doARequest(Unknown
Source) at
org.enhydra.servlet.connectionMethods.http.HttpHandler.processRequests(Unknown
Source) at org.enhydra.servlet.connectionMethods.http.HttpHandler.run(Unknown
Source) at java.lang.Thread.run(Thread.java:536)
Parameters:
key:SpatialSelectionPredefinedSelect value:- Predefined Roadway Selections -
key:TemporalSelectionPredefinedSelect value:- Predefined Aggregations -
key:DateFilterFrom value:
key:TimeFilterPredefinedSelect value:- Predefined Time Range -
key:DateFilterPredefinedSelect value:- Predefined Date Range -
key:Date2FilterTo value:
key:DateFilterCustom value:
key:ByRoadway value:true
key:DateFilterTo value:
key:Date2FilterFrom value:
RequestURI:/ADMSVirginia/ActionEvent.event
ServletPath:/ActionEvent.event
PathInfo:null
PathTranslated:null
4) I'm having trouble getting log4j to find any appenders. I used the web.xml
and log4j.xml from the latest BarracudaDiscRack as an example. I tried to
sepecify logging of debug message, but I got nothing conclusive.
Here are a few questions?
Since the Event Listeners are not associated with a specific application event
(from events.xml) do I need to somehow register them with the ApplicationGateway?
Do the event listener classes need to be declared as public classes?
David Robison
Quoting Christian Cryder <[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
>
> _______________________________________________
> Barracuda mailing list
> [email protected]
> http://barracudamvc.org/lists/listinfo/barracuda
>