Thanks Musachy, I found that page during my searching.  I have the DWR plugin
set up and included, and I've verified that the server side object exposure
works using the DWR test page.

What I'm not seeing is how the validator.doPost() method gets called from
the JSP when using the plugin (assuming that validator is the name of the
client-side object in the dwr.xml file (<create creator="new"
javascript="validator">).  I've unpacked the DWR and several struts2 jar
files, then looked for .js files that set up params for and make a call to
"validator.doPost" but I didn't find anything.  So I'm missing the linkage
somehow.

Page 6 of the example you provided explicitly uses dojoType="struts:Bind"
and I'm trying to avoid that.


Musachy Barroso wrote:
> 
> You can re-implement that example using DWR as you mentioned, or use
> the built in support for DWR in the DWR plugin, for which there are
> some examples around:
> 
> http://www.javaworld.com/javaworld/jw-10-2008/jw-10-struts2validation.html?page=5
> 
> musachy
> 
> On Fri, Feb 13, 2009 at 11:42 AM, lllewell <laura.llewel...@gfs.com>
> wrote:
>>
>> Greetings all -
>>
>> I inherited a struts2 webapp that is using the "simple" theme all the way
>> through.  I'd like to add some Ajax validation to one of the pages using
>> DWR.  I'm interested in doing this without DOJO (theme="ajax").
>>
>> I see an example of how to do Prototype validation without DOJO here:
>> http://struts.apache.org/2.1.6/docs/ajax-validation.html .  I can use
>> that
>> as a basis, but I'm wondering if anyone has done something similar using
>> DWR
>> that you would be willing to share, or links to other reference materials
>> that would help me out.  I have googled this extensively and haven't had
>> much luck.
>>
>> I'm planning to use Struts 2.1.6 and DWR 2.0.x (since DWR 3 isn't ready
>> for
>> prime time yet).
>>
>> Thanks in advance!
>> Laura
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/AJAX-with-DWR-but-without-DOJO--tp22000168p22000168.html
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>>
>>
> 
> 
> 
> -- 
> "Hey you! Would you help me to carry the stone?" Pink Floyd
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/AJAX-with-DWR-but-without-DOJO--tp22000168p22000824.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to