It's Work :DDDDD.... many thanxs! :) -- Mariano G. Petrakovsky Programmer · Software Factory AXG Tecnonexo - www.tecnonexo.com
Development facilities:Av. Maipú 1252 8º (C1006ACT) · Buenos Aires · Argentina. Tel.: (54-11) 4878-0005 - Fax: (54-11) 4878-0065. Headquarters: 1604 Spring Hill Road, Suite 160 Vienna · VA 22182 · USA. Tel.: (202) 986-7541 - Fax: (202) 787-3891. · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · -----Mensaje original----- De: Manfred Klug [mailto:[EMAIL PROTECTED] Enviado el: Miércoles, 25 de Mayo de 2005 01:55 Para: user@struts.apache.org Asunto: [Shale] Re: Javascript validator > I have a JSP like this: > > ------------------------------------------------------------------------- > > .... > > > value="#{sizeTableHandler.currentconfig}" required="true" > size="10"> > > server="false" client="true" /> > > > .... > > > -------------------------------------------------------------------------- - > > when JSF generate mi static HMTL using Commons Validators, (for instance, > i'm not fill the "currentconfig" field), mi mozilla Javascript Console > capture this: "Error: v is not defined" > Then... looking source of this static page... I'm Found the javascript > generate like this: > > -------------------------------------------------------------------------- - > var bCancel = false; > function ValidateForm(form) { return bCancel || true > && validateRequired.js,v(form) > ;} > function required() { > this[0] = new Array("content:testForm:currentconfig", "currentconfig is > required.", new Function("x", "return {}[x];")); > } > -------------------------------------------------------------------------- - > Now... I'm asking... it's and bug of commons validator libraries or... it's > my error??? Neither commons validator nor you. It seems that the shale-validator makes some assumptions about the content of the script which are not correct for the scripts in the commons validator jar. Please use the validator-rules.xml from the shale use cases and it should work. Manfred Klug __________________________________________________________ Mit WEB.DE FreePhone mit hoechster Qualitaet ab 0 Ct./Min. weltweit telefonieren! http://freephone.web.de/?mc=021201 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]