I have a JSP like this:

-------------------------------------------------------------------------
<h:form id="testForm" onsubmit="return ValidateForm(this);">
                        ....
                                <h:panelGroup>
                                        <h:inputText id="currentconfig"
                                                
value="#{sizeTableHandler.currentconfig}" required="true"
                                                size="10">
                                                <s:commonsValidator 
type="required" arg="currentconfig"
                                                        server="false" 
client="true" />
                                        </h:inputText>
                                </h:panelGroup>
                        ....
        <s:validatorScript functionName="ValidateForm" />
</h:form>
---------------------------------------------------------------------------

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???


--
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.


· · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · ·
· · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · ·
· · · ·




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to