On 08-10-15 15:49, Christine wrote:
The page has a submit button, that doesn't seem to do anything.
The problem seems to be in regexp. This works:
<t:textfield t:id="port" t:validate="required" />
but this doesn't:
<t:textfield t:id="port" t:validate="required,regexp" />
(I do have the regexp definition in a properties file).
When I put
<t:textfield t:id="port" t:validate="required,regexp='^[0-9]+$'" />
I get an error message for the input, always.
dagdag
Christine
This is the error I get,
Form validiation/submit error `TypeError: input.match is not a
function', in form ElementWrapper[<form data-validate="submit"
action="/gossipUI/admin/addserver.addserverform" method="post"
id="addServerForm" class="has-error">], triggering
t5:field:input-validation event on ElementWrapper[<input title="Port
does not match pattern '^[0-9]+$'." pattern="^[0-9]+$"
data-regexp-message="Port does not match pattern '^[0-9]+$'."
data-validate-regexp="^[0-9]+$" data-max-length-message="You may
provide at most 5 characters for Port." data-validate-max-length="5"
data-required-message="You must provide a value for Port."
data-optionality="required" data-translation-message="You must provide
an integer value for Port." data-translation="integer"
data-validation="true" value="0" id="port" class="form-control"
name="port" type="text">]
together with this one
TypeError: input.match is not a function(…)
defaultValidateAndSubmit @ core.js:443
wrapped @ core.js:413
jQuery.event.dispatch @ core.js:230
jQuery.event.add.elemData.handle @ core.js:220
a jar "js.jar" is on my classpath, do I need to have that?
dagdag
Christine
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org