At one point the JavaScript load order when using Prototype was significant; I had to put the tag before loading prototype. Note that Prototype does not always play well with other libraries. d. --- Moacir Cardoso wrote: > Hello people, > > I was unable to make my ajax s:form submit to work. > Then I tried to create a simple application from > struts2-blank-2.0.9.war > like this: > > <%@ taglib prefix="s" uri="/struts-tags" %> > <%@ page language="java" contentType="text/html; > charset=ISO-8859-1" > pageEncoding="ISO-8859-1"%> > Transitional//EN" > "http://www.w3.org/TR/html4/loose.dtd"> > > > > Hello Jsp > > > > > > > targets="div1"> >
> Div1:
>
> > > > The result was fine, but if I add scriptaculous and > prototype.js an > error occurs. > > > > > ... > > FATAL exception raised: Could not load > 'struts.widget.Bind'; last tried > '__package__.js' > > So, probably dojo have some problems with > scriptaculous or prototype.js. > Note that the tag theme="ajax"/> will output some > dojo scripts. > > Becouse that I will not use dojo anymore and start > with scriptaculous > and prototype.js. > > Bye. > > > Dave Newton escreveu: > > If you set the debug flag do you get any error > > messages? > > > > --- Moacir Cardoso wrote: > > > > > >> Yes I do. > >> > >> > >> > >> Dave Newton wrote: > >> > >>> Do you have an tag? > >>> > >>> --- Moacir Cardoso wrote: > >>> > >>> > >>> > >>>> Hi, > >>>> I'm unable to make my ajax form work > >>>> > >>>> > >>>> > >>>>
initial content
> >>>> >>>> id="theForm2" > >>>> cssStyle="border: 1px solid green;" > >>>> > >>>> action="cadastro/pessoa_salvarEndereco.action" > >>>> method="post" > >>>> theme="ajax"> > >>>> > >>>> value='Struts > >>>> User'> > >>>> > >>>> >>>> targets="two"/> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> It's making a normal http request and not using > >>>> > >> ajax > >> > >>>> calls. > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > > > --------------------------------------------------------------------- > > > >>> > >>> > >>>> To unsubscribe, e-mail: > >>>> user-unsubscribe@struts.apache.org > >>>> For additional commands, e-mail: > >>>> user-help@struts.apache.org > >>>> > >>>> > >>>> > >>>> > >>> > >>> > > > --------------------------------------------------------------------- > > > >>> To unsubscribe, e-mail: > >>> > >> user-unsubscribe@struts.apache.org > >> > >>> For additional commands, e-mail: > >>> > >> user-help@struts.apache.org > >> > >>> > >>> > >>> > >> > >> > > > --------------------------------------------------------------------- > > > >> To unsubscribe, e-mail: > >> user-unsubscribe@struts.apache.org > >> For additional commands, e-mail: > >> user-help@struts.apache.org > >> > >> > >> > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > user-unsubscribe@struts.apache.org > > For additional commands, e-mail: > user-help@struts.apache.org > > > > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > user-unsubscribe@struts.apache.org > For additional commands, e-mail: > user-help@struts.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org