RE: Error: doSubmitAndLock is not defined

"Christian Cryder" <[email protected]>
Newsgroups gmane.comp.java.enhydra.barracuda.general
Message-ID <[email protected]>
> BTW, did you clear your browser cache, shut down the browser, and
> then try it again?  Might this now be a browser caching problem?

Yeah, this is what I was going to suggest. I'd be really surprised if
Barracuda is NOT correctly handling this, provided everything is correct in
the web.xml...

CHristian

----------------------------------------------
Christian Cryder
Internet Architect, ATMReports.com
Project Chair, BarracudaMVC - http://barracudamvc.org
----------------------------------------------
"Coffee? I could quit anytime, just not today"


> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]]On Behalf Of Jacob Kjome
> Sent: Friday, September 05, 2003 1:34 PM
> To: [email protected]
> Subject: RE: [Barracuda] Error: doSubmitAndLock is not defined
>
>
> Hmm.....
>
> I don't see anything wrong in your web.xml.
>
> I'd really like you to try out deploying the /Barracuda context in
> Tomcat.  It really won't take much time.  Just stop tomcat, copy the
> "Barracuda" directory (and its contents) into
> CATALINA_HOME/webapps, start
> Tomcat, and check out something like the BConfig app (linked from the
> indexdetails.html page) which uses the ResourceGateway extensively.  In
> fact, you will know immediately if the ResourceGateway is not working
> because you won't see any images on the page as their paths are all
> prefixed with "xlib/".  Then try clicking the "update" button to
> update the
> logging configuration.  That button has a listener which will call
> doSubmitAndLock().
>
> Can you do one more thing?  Please send a copy of the resulting html page
> which you are seeing the doSubmitAndLock() error.  Just do a view-source
> and send that (zipped up) to the list (or to me directly if you feel more
> comfortable with that).  I want to see if the <script> element is
> added to
> get the FormControl.js page and how doSubmitAndLock() is written.
>
> BTW, did you clear your browser cache, shut down the browser, and
> then try
> it again?  Might this now be a browser caching problem?
>
> Jake
>
> At 06:49 PM 9/5/2003 +0300, you wrote:
> >Hello Jake!
> >
> >Here is the web.xml file, gziped.
> >No, I have not tried to run barracuda itself, as I did not have enough
> >time for testing, I was kinda busy with the project.
> >
> >
> >         Jancsi
> >
> >On Fri, 2003-09-05 at 17:42, Jacob Kjome wrote:
> > >
> > > Can you send the web.xml file to the list (preferably zipped
> up).  Have
> > you
> > > tried running Barracuda itself under your install of Tomcat?
> Does it work
> > > there?
> > >
> > > Jake
> > >
> > > At 02:46 PM 9/5/2003 +0300, you wrote:
> > > >Yup, restarted the tomcat after changing the things in web.xml
> > > >
> > > >         Jancsi
> > > >
> > > >On Fri, 2003-09-05 at 13:30, Christian Cryder wrote:
> > > > > Did you restart Tomcat?
> > > > >
> > > > > ----------------------------------------------
> > > > > Christian Cryder
> > > > > Internet Architect, ATMReports.com
> > > > > Project Chair, BarracudaMVC - http://barracudamvc.org
> > > > > ----------------------------------------------
> > > > > "Coffee? I could quit anytime, just not today"
> > > > >
> > > > >
> > > > > > -----Original Message-----
> > > > > > From: [email protected]
> > > > > > [mailto:[email protected]]On Behalf Of Jancsi A.
> > > > > > Farkas(fx)
> > > > > > Sent: Friday, September 05, 2003 3:45 AM
> > > > > > To: barracuda
> > > > > > Subject: Re: [Barracuda] Error: doSubmitAndLock is not defined
> > > > > >
> > > > > >
> > > > > > I have enabled the resource gateway in the web.xml
> file, however
> > still
> > > > > > does not found the function. Any toughts?
> > > > > >
> > > > > >         Jancsi
> > > > > >
> > > > > > On Fri, 2003-09-05 at 02:17, Jacob Kjome wrote:
> > > > > > > At 01:45 AM 9/5/2003 +0300, you wrote:
> > > > > > > >The error message I sent was the one appeared in mozilla.
> > > > > > > >
> > > > > > > >My resource gateway was disabled in web.xml.
> > > > > > > >So in order to use the BAction, I have to enable it.
> However I
> > still
> > > > > > > >don't know, should I add a refference to
> FormControl.js or is
> > added by
> > > > > > > >framework, when is necessary?
> > > > > > >
> > > > > > > If you enable ResourceGateway as I specified below, then you
> > > > > > are good as
> > > > > > > gold.  No need to worry about FormControl.js.  The
> > > > > > HTMLActionRenderer will
> > > > > > > add that without any intervention from you.  Just return the
> > BAction
> > > > > > > component and you are done.
> > > > > > >
> > > > > > > >Anyway, thank you for the help
> > > > > > >
> > > > > > > No problem.
> > > > > > >
> > > > > > > Jake
> > > > > > >
> > > > > > > >         Jancsi
> > > > > > > >
> > > > > > > >On Thu, 2003-09-04 at 20:11, Jacob Kjome wrote:
> > > > > > > > > Ahhh... That is probably the whole issue.  The
> > > > > > ResourceGateway must be
> > > > > > > > > enabled if you are using BAction components.  The
> > > > > > HTMLActionRenderer counts
> > > > > > > > > on it being enabled unless you use a RenderStrategy of
> > > > > > NEVER_SCRIPT or
> > > > > > > > > CUSTOM_SCRIPT.  Note that anything in your page prefixed
> > > > > > with "xlib/" needs
> > > > > > > > > to be mapped to the resource gateway servlet.
> This is true
> > of all
> > > > > > > > > dynamically added script libraries and if you look at the
> > > > > > BConfig app, all
> > > > > > > > > resources including images are served by the resource
> > > > > > gateway.  It is not
> > > > > > > > > only "safer" to have it activated, it is
> absolutely necessary.
> > > > > > > > >
> > > > > > > > > It does not matter whether you use javascript on your own
> > > > > > or not.  If you
> > > > > > > > > return a BAction component from your model to be attached
> > to a form
> > > > > > > > > component, Javascript is used, by default, to submit the
> > > > > > form.  This allows
> > > > > > > > > for different form elements to submit to different action
> > > > > > url's and makes
> > > > > > > > > the gui more like a native Java gui with different
> > > > > > listeners attached to
> > > > > > > > > different form
> > > > > > > > > elements.
> > > > > > > > >
> > > > > > > > > Add the following to your web.xml...
> > > > > > > > >
> > > > > > > > >      <servlet>
> > > > > > > > >          <servlet-name>ResourceGateway</servlet-name>
> > > > > > > > >
> > > > > > > >
> > > > > >
> <servlet-class>org.enhydra.barracuda.core.helper.servlet.ResourceG
> > > > > > ateway</servlet-class>
> > > > > > > > >      </servlet>
> > > > > > > > >
> > > > > > > > >      <servlet-mapping>
> > > > > > > > >          <servlet-name>ResourceGateway</servlet-name>
> > > > > > > > >          <url-pattern>/xlib/*</url-pattern>
> > > > > > > > >      </servlet-mapping>
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > You can add other servlet mappings to the ResourceGateway
> > > > > > servlet, but this
> > > > > > > > > is needed at a minimum to support basic Barracuda
> > functionality.
> > > > > > > > >
> > > > > > > > > Jake
> > > > > > > > >
> > > > > > > > > At 09:56 AM 9/4/2003 -0700, you wrote:
> > > > > > > > > >I had a related problem that people might want to watch
> > > > > > out for.  When
> > > > > > > > > >I upgraded one of our apps to the latest from CVS (pulled
> > > > > > on Aug 30),
> > > > > > > > > >pages started throwing a javascript error that they were
> > unable to
> > > > > > > > > >locate FormControl.js.  In newer browsers I didn't even
> > > > > > notice but I
> > > > > > > > > >had a user tell me they were unable to load a
> page with older
> > > > > > > > > >versions of Netscape.  I uploaded the
> FormControl.js file
> > but I'm
> > > > > > > > > >wondering why the error suddenly appeared.  As far as I
> > > > > > know I'm not
> > > > > > > > > >using any of the JS features of Barracuda.  I do have the
> > > > > > > > > >ResourceGateway disabled though.  Is it safer to
> have that
> > > > > > activated?
> > > > > > > > > >
> > > > > > > > > >Ron
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >On Thursday 04 September 2003 5:37 am, Christian
> Cryder wrote:
> > > > > > > > > > > Hi Jansci!
> > > > > > > > > > >
> > > > > > > > > > > Hmmm...this is probably not a coincidence; I tweaked
> > > > > > the behavior
> > > > > > > > > > > of BScript yesterday, which could be related to this.
> > > > > > Can you give
> > > > > > > > > > > me some more background info: What version of
> Barracuda
> > are you
> > > > > > > > > > > using? (how recently have you pulled from cvs?) Where
> > > > > > exactly are
> > > > > > > > > > > you seeing the error? Are you guys using the default
> > > > > > approach with
> > > > > > > > > > > components (allowing scripting)? Or are you explicitly
> > > > trying to
> > > > > > > > > > > turn it off? What does the code that creates the
> > component look
> > > > > > > > > > > like? And what does the final markup look like?
> > > > > > > > > > >
> > > > > > > > > > > doSubmitAndLock is a Javascript call that Barracuda
> > uses when
> > > > > > > > > > > submitting from a button; the call gets
> embedded in the
> > > > > > markup, but
> > > > > > > > > > > when it's used, its supposed to actually include a
> > > > > > FormControl.js
> > > > > > > > > > > reference in the page (so that the function can be
> > resolved)...
> > > > > > > > > > >
> > > > > > > > > > > Christian
> > > > > > > > > > > ----------------------------------------------
> > > > > > > > > > > Christian Cryder
> > > > > > > > > > > Internet Architect, ATMReports.com
> > > > > > > > > > > Project Chair, BarracudaMVC - http://barracudamvc.org
> > > > > > > > > > > ----------------------------------------------
> > > > > > > > > > > "Coffee? I could quit anytime, just not today"
> > > > > > > > > > >
> > > > > > > > > > > > -----Original Message-----
> > > > > > > > > > > > From: [email protected]
> > > > > > > > > > > > [mailto:[email protected]]On
> Behalf Of
> > > > > > Jancsi A.
> > > > > > > > > > > > Farkas(fx)
> > > > > > > > > > > > Sent: Thursday, September 04, 2003 4:07 AM
> > > > > > > > > > > > To: barracuda
> > > > > > > > > > > > Subject: [Barracuda] Error: doSubmitAndLock is not
> > defined
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > > I have a strange javascriopt error: Error:
> > > > > > doSubmitAndLock is not
> > > > > > > > > > > > defined
> > > > > > > > > > > >
> > > > > > > > > > > > Until yesterday everything seemed to work ok, but
> > > > > > maybe some of
> > > > > > > > > > > > our developers added some code to a button, and for
> > now this
> > > > > > > > > > > > error pops up. How can I get rid of this error?
> > > > > > > > > > > >
> > > > > > > > > > > > Thank you
> > > > > > > > > > > >
> > > > > > > > > > > >     Jancsi
> > > > > > > > > > > >
>
> _______________________________________________
> 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.