Hi,
I'm using maven, the version of maven is 2.0.8. The jvm version is
1.6.0_03. The struts version is 2.0.11 and the dwr version I changed to
1.1.3. The jetty version is 6.1H.5-beta.
I don't have the autocompleter in that page, although I'm going to use it
and I'll change the class to delivering in json formatted resultset, too.
But one problem at a time, right now, I just want to submit the form with
ajax and that's not working, snif. I changed the dwr from 1.1.4 to version
1.1.3 and then to 2.0.1 in the pom.xml, and it didn't work, although the
field validation is working fine.
The pom.xml file is attached.
Thanks,
Jeancarlo.
Happy new year!
2007/12/30, Martin Gainty <[EMAIL PROTECTED]>:
>
>
> what version jetty?
> what version maven?also could you attach poms to build with mavencheck the
> repositories for online status. if some of the repositories went offline
> then the build will break
> autocomplete has an href attribute which I would point to the action class
> delivering json formatted resultset..is your server class delivering in
> json?
> http://struts.apache.org/2.0.11/docs/autocompleter.html
> Nouvelle Année Heureuse
> Martin______________________________________________Disclaimer and
> confidentiality noteEverything in this e-mail and any attachments relates to
> the official business of Sender. This transmission is of a confidential
> nature and Sender does not endorse distribution to any party other than
> intended recipient. Sender does not necessarily endorse content contained
> within this transmission.> Date: Sun, 30 Dec 2007 13:27:41 -0200> From:
> [EMAIL PROTECTED]> To: user@struts.apache.org> Subject: Re: form
> submission doesn't work with ajax theme> > Hi,> > Thank you for your input.
> The jvm version is 1.6.0_03. The struts version> is 2.0.11 and dwr version
> is 1.1.4. I'm using maven to build the application> and jetty is the web
> server. Below there are snippets from some of the> configuration files.> >
> dwr.xml:> <dwr>> <allow>> <create creator="new" javascript="validator">>
> <param name="class" value="> org.apache.struts2.validators.DWRValidator"/>>
> </create>> <convert converter="bean" match=">
> com.opensymphony.xwork2.ValidationAwareSupport"/>> </allow>> >
> <signatures>> <![CDATA[> import java.util.Map;> import
> org.apache.struts2.validators.DWRValidator;> > DWRValidator.doPost(String,
> String, Map<String, String>);> ]]>> </signatures>> </dwr>> > the web.xml:>
> <servlet>> <servlet-name>dwr</servlet-name>> <servlet-class>
> uk.ltd.getahead.dwr.DWRServlet</servlet-class>> <init-param>>
> <param-name>debug</param-name>> <param-value>true</param-value>>
> </init-param>> </servlet>> > <servlet-mapping>>
> <servlet-name>dwr</servlet-name>> <url-pattern>/dwr/*</url-pattern>>
> </servlet-mapping>> > the struts.xml:> <action name="person.save"
> method="save" class="personAction" >> <result
> name="input">pages/person/insert.jsp</result>> <result
> name="success">pages/person/insert.jsp</result>> </action>> >
> http://localhost:8080/mywebapp/dwr/:> The dwr page worked fine, and the
> page suggested to use some javascripts> like:> > <script
> type="text/javascript"> src="/wancrm/dwr/interface/validator.js"></script>>
> <script type="text/javascript" src="/wancrm/dwr/engine.js"></script>> > And
> that was exactly what I saw in the html source of the generated page of> my
> application.> > And my insert.jsp page:> <html xmlns="
> http://www.w3.org/1999/xhtml">> <head>> <s:head theme="ajax"
> debug="true"/>> </head>> <body>> <s:form theme="ajax" action="person.save"
> validate="true">> <s:textfield label="Name" name="firstName" />>
> <s:textfield label="Last name" name="lastName" />> <s:submit value="Save"/>>
> </s:form>> </body>> </html>> > Just an observation: firstName and lastName
> are not strings, both are plain> java classes and I have properly configured
> converters for them and are> working fine.> > I'm just wondering what's
> wrong, am I missing something?> > Thank you,> Jeancarlo.> Happy new year!> >
> > 2007/12/29, Martin Gainty <[EMAIL PROTECTED]>:> >> >> > JVM?> > TC
> version?> > Struts version?> > implemented DWR? pleas display servlet
> configurationalso it would be> > helpful to see contents of dwr.xml> >
> display the contents of JS functions available> >
> athttp://localhost:8080/[YOUR-WEBAPP]/dwr/> >> > This troubleshhooting page
> may help somewhat with possible environmental> > issues> >
> http://getahead.org/dwr/fixes> >
> Thanks/Martin______________________________________________Disclaimer and> >
> confidentiality noteEverything in this e-mail and any attachments relates
> to> > the official business of Sender. This transmission is of a
> confidential> > nature and Sender does not endorse distribution to any party
> other than> > intended recipient. Sender does not necessarily endorse
> content contained> > within this transmission.> Date: Sat, 29 Dec 2007
> 12:30:46 -0200> From:> > [EMAIL PROTECTED]> To: user@struts.apache.org>
> Subject: form submission> > doesn't work with ajax theme> > Hello,> > I'm
> using struts version 2.0.11and dwr. The field validation and form>
> submission and everything work fine> > (I'm using the tag <s:head />
> without> any parameters). It did work until I> > wanted to use the
> autocomplete struts> tag. To use that I need to add> > theme="ajax" in the
> s:head tag, right?> However, when I did so, everything> > stopped to work:
> validation, form> submission. When I click in the> > submission button, it
> seems to work, because> I can see through the console> > that it goes to the
> server but the page> doesn't change. Am I missing> > something about how to
> configure the actions to> work with ajax/dwr?> >> > Thank you in advance,>
> Jeancarlo.> Happy new year!> >
> _________________________________________________________________> > The
> best games are on Xbox 360. Click here for a special offer on an Xbox> > 360
> Console.> > http://www.xbox.com/en-US/hardware/wheretobuy/
> _________________________________________________________________
> Don't get caught with egg on your face. Play Chicktionary!
> http://club.live.com/chicktionary.aspx?icid=chick_wlhmtextlink1_dec
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>br.com.wansoft</groupId>
<artifactId>wancrm-web-struts</artifactId>
<packaging>jar</packaging>
<version>1.0-SNAPSHOT</version>
<name>wancrm-web-struts</name>
<url>http://maven.apache.org</url>
<dependencies>
<dependency>
<groupId>br.com.wansoft</groupId>
<artifactId>wancrm-domain</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>opensymphony</groupId>
<artifactId>sitemesh</artifactId>
<version>2.3</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
<!--
<dependency>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-jsf-plugin</artifactId>
<version>2.0.11</version>
</dependency>
-->
<dependency>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-core</artifactId>
<version>2.0.11</version>
</dependency>
<dependency>
<groupId>dwr</groupId>
<artifactId>dwr</artifactId>
<version>1.1.3</version>
</dependency>
<dependency>
<groupId>com.googlecode.struts2scopeplugin</groupId>
<artifactId>struts2-scope-plugin</artifactId>
<version>1.0.4</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring</artifactId>
<version>2.0.7</version>
</dependency>
<dependency>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-spring-plugin</artifactId>
<version>2.0.11</version>
</dependency>
<dependency>
<groupId>c3p0</groupId>
<artifactId>c3p0</artifactId>
<version>0.9.1.2</version>
</dependency>
<dependency>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jsp-api-2.1</artifactId>
<version>6.1H.5-beta</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.derby</groupId>
<artifactId>derby</artifactId>
<version>10.3.1.4</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate</artifactId>
<version>3.2.2.ga</version>
</dependency>
<dependency>
<groupId>displaytag</groupId>
<artifactId>displaytag</artifactId>
<version>1.1.1</version>
</dependency>
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<version>2.3</version>
</dependency>
<!--
<dependency>
<groupId>opensymphony</groupId>
<artifactId>sitemesh</artifactId>
<version>2.3</version>
</dependency>
-->
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
<scope>provided</scope>
</dependency>
<!--
<dependency>
<groupId>xerces</groupId>
<artifactId>xercesImpl</artifactId>
<version>2.8.1</version>
</dependency>
-->
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
<version>1.1.2</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>maven-jetty-plugin</artifactId>
<configuration>
<contextPath>/wancrm</contextPath>
<connectors>
<connector
implementation="org.mortbay.jetty.nio.SelectChannelConnector">
<port>8081</port>
<maxIdleTime>60000</maxIdleTime>
</connector>
</connectors>
</configuration>
</plugin>
</plugins>
</build>
<repositories>
<repository>
<id>Maven Plugin Repository</id>
<url>
http://struts2plugin-maven-repo.googlecode.com/svn/trunk/
</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
<releases>
<enabled>true</enabled>
</releases>
</repository>
</repositories>
</project>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]