Thanks I had missed the link in the documentation to this page and just followed the link to the examples page where this problem is not mentioned.
As specifying the current namespace is the default on the form tag, could the generation of the validation code use the default namespace when an action only is supplied, instead of failing to generate the code ? Nick Musachy Barroso-2 wrote: > > S2 needs to know the exact namespace of the action. If you do this: > > > <s:form method="post" validate="true" action="quizClient" > namespace="/validation"> > <s:textfield label="Name" name="name"/> > <s:textfield label="Age" name="age"/> > <s:textfield label="Favorite color" name="answer"/> > <s:submit/> > </s:form> > > then it works. Here is some doc: > > http://www.opensymphony.com/webwork/wikidocs/Client%20Side%20Validation.html > > regards > musachy > > Nick Tucker wrote: >> Hi >> >> I have been having trouble with client side validation for some time. >> I am not sure if this usage case has been reported before, or even if >> this >> is the >> right place to report it, as it is an old problem from webwork. >> >> On experimenting with the quiz_client.jsp in the showcase application I >> found that if I changed >> the form tag to include an action attribute, then the javascript for the >> form validation was not >> generated. This was also the case when I switched to using freemarker >> rather >> than jsp. >> >> i.e. >> >> <s:form method="post" validate="true" action="quizClient.action"> >> <s:textfield label="Name" name="name"/> >> <s:textfield label="Age" name="age"/> >> <s:textfield label="Favorite color" name="answer"/> >> <s:submit/> >> </s:form> >> >> or >> >> [EMAIL PROTECTED] method="post" validate="true"] >> [EMAIL PROTECTED] label="Name" name="name"/] >> [EMAIL PROTECTED] label="Age" name="age"/] >> [EMAIL PROTECTED] label="Favorite color" name="answer"/] >> [EMAIL PROTECTED]/] >> [/@s.form] >> >> So a simple work around for some of the client validation problems would >> be >> to >> only supply the action attribute when absolutely necessary. >> >> I hope that this will be of some use. >> >> Nick Tucker >> >> >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/-S2--client-validation-problem-tf2902376.html#a8116752 Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]