Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

[S2 Snapshot] Ajax-Validation with XHTML-theme

Sandro Giessl

2007-07-30

Replies:

Hi,

I wonder if anyone here has successfully used Struts 2.1 ajax-validation
(http://struts.apache.org/2.x/docs/ajax-validation.html) with a s:form tag
that is 'xhtml'-themed.

I tried it, but I only get a bunch of javascript popup messages like "do not
validate:registerForm_login".
I see that <sx:head /> includes two Java Scripts:
<script language="JavaScript" src="/test/struts/xhtml/validation.js"
type="text/javascript"></script>
<script language="JavaScript" src="/test/struts/css_xhtml/validation.js"
type="text/javascript"></script>
It seems to me that the error message is caused by css_xhtml/validation.js.

<s:form> with theme="css_xhtml" works fine for me.

Thanks for any advice.
Bye, Sandro

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.