Re: doSubmitAndLock

Jancsi Farkas <[email protected]> Fri, 09 Jan 2004 17:34:04 +0200
Newsgroups gmane.comp.java.enhydra.barracuda.general
Message-ID <[email protected]>
Hello

    We had this problem some time ago. The barracuda was working OK. The 
problem appeared only on one form, perhaps the component was created in 
different way than we did for another forms. We solved this problem by 
ripping the function from barracuda core, as we did not have enough time 
to investigate it, and this quick (and dirty) fix was OK ..

    Jancsi

Jacob Kjome wrote:

>Quoting Paul Heath <[email protected]>:
>
>  
>
>>I already had all that in web.xml.
>>
>>The only way I can get this to work is to include FormControl.js
>>directly in my application using <SCRIPT> tags in HTML.
>>
>>    
>>
>
>I think Christian or someone else had this issue for a bit.  I'm pretty sure it
>was a configuration problem.  Does the Barracuda application itself work for
>you?  It does for me.  So do the contrib apps.  If these all work for you and
>your application doesn't, then it simply has to be a config issue with your
>application.  I can't see any other reason for it not working.
>
>Let me know what you find.  If you send me a sample, I can verify tonight
>whether it works or not and try to work out the issue.
>
>Jake
>
>  
>
>>-----Original Message-----
>>From: [email protected]
>>[mailto:[email protected]] On Behalf Of Jacob Kjome
>>Sent: Friday, January 09, 2004 12:08 AM
>>To: [email protected]
>>Subject: Re: [Barracuda] doSubmitAndLock
>>
>>When in doubt, try brute force.  Add all these to your web.xml...
>>
>>     <!-- If you are going to use BAction components on HTML Forms,
>>-->
>>     <!-- you must specify the FormGateway
>>-->
>>     <servlet>
>>         <servlet-name>FormGateway</servlet-name>
>>
>><servlet-class>org.enhydra.barracuda.core.comp.helper.FormGateway</servl
>>et-class>
>>     </servlet>
>>
>>     <!-- If you want to support disabling the back button on HTML Forms
>>-->
>>     <!-- you must specify the ParamGateway
>>-->
>>     <servlet>
>>         <servlet-name>ParamGateway</servlet-name>
>>
>><servlet-class>org.enhydra.barracuda.core.helper.servlet.ParamGateway</s
>>ervlet-class>
>>     </servlet>
>>
>>     <!-- Barracuda can load static resources (like images and scripts)
>>-->
>>     <!-- from a jar file in the classpath by using the ResourceGateway.
>>-->
>>     <servlet>
>>         <servlet-name>ResourceGateway</servlet-name>
>>
>><servlet-class>org.enhydra.barracuda.core.helper.servlet.ResourceGateway
>></servlet-class>
>>     </servlet>
>>
>>     <!-- This is needed for the FormGateway
>>-->
>>     <servlet-mapping>
>>         <servlet-name>FormGateway</servlet-name>
>>         <url-pattern>*.form_forward</url-pattern>
>>     </servlet-mapping>
>>
>>     <!-- This is needed for the ParamGateway
>>-->
>>     <servlet-mapping>
>>         <servlet-name>ParamGateway</servlet-name>
>>         <url-pattern>*.param_map</url-pattern>
>>     </servlet-mapping>
>>
>>     <!-- This is needed for the ResourceGateway
>>-->
>>     <servlet-mapping>
>>         <servlet-name>ResourceGateway</servlet-name>
>>         <url-pattern>/xlib/*</url-pattern>
>>     </servlet-mapping>
>>
>>
>>Things should work.
>>
>>Jake
>>
>>At 12:27 PM 1/8/2004 -0600, you wrote:
>>
>>    
>>
>>>Just upgraded to Barracuda 1.2.5 and forms in my app are not working
>>>      
>>>
>>the
>>    
>>
>>>doSubmitAndLock Javascript function appears to be new (from 1.1.1) and
>>>based on the 2 entries I have found in the archives, the resolution is
>>>      
>>>
>>to
>>    
>>
>>>ensure the entries below are in web.xml.
>>>
>>>
>>>
>>>Since I already have those, am I missing something ?
>>>
>>>
>>>
>>>Thanks
>>>Paul
>>>
>>>
>>>
>>>
>>>
>>><servlet>
>>>
>>>        <servlet-name>ResourceGateway</servlet-name>
>>>
>>>
>>><servlet-class>org.enhydra.barracuda.core.helper.servlet.ResourceGatewa
>>>      
>>>
>>y</servlet-class>
>>    
>>
>>></servlet>
>>>
>>>
>>>
>>><servlet-mapping>
>>>
>>>        <servlet-name>ResourceGateway</servlet-name>
>>>
>>>        <url-pattern>/xlib/*</url-pattern>
>>>
>>></servlet-mapping>
>>>      
>>>
>>_______________________________________________
>>Barracuda mailing list
>>[email protected]
>>http://barracudamvc.org/lists/listinfo/barracuda
>>
>>
>>_______________________________________________
>>Barracuda mailing list
>>[email protected]
>>http://barracudamvc.org/lists/listinfo/barracuda
>>    
>>
>_______________________________________________
>Barracuda mailing list
>[email protected]
>http://barracudamvc.org/lists/listinfo/barracuda
>
>.
>
>  
>